theme, plugins und config für die Webseite der Baptisten Hohenacker
https://baptisten-hohenacker.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
623 B
20 lines
623 B
function xor_crypt(data) { |
|
key="aodiajsoidjwqirqpwoewqpoekdpsaojrqoiwejwqoieposajdsndkjwqeoqiwjeidpsaoidjoqwiejpi"; |
|
res="" |
|
for (i = 0; i < data.length; i++) { |
|
outstr= String.fromCharCode(data.charCodeAt(i) ^ key.charCodeAt(i)); |
|
res+=outstr; |
|
} |
|
return res; |
|
} |
|
|
|
function dokumentGeladen (e) { |
|
//alert("Das Ereignis " + e.type + " ist passiert.") |
|
a=document.getElementsByClassName("mailto"); |
|
for (val of a) { |
|
instr=atob(val.getAttribute("href_crypt")); |
|
val.href=xor_crypt(instr);} |
|
|
|
} |
|
document.addEventListener("load", dokumentGeladen, false); |
|
document.addEventListener("DOMContentLoaded", dokumentGeladen, false);
|
|
|