|
|
|
@ -8,13 +8,45 @@ res="" |
|
|
|
return res; |
|
|
|
return res; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function isNative(fn) { |
|
|
|
|
|
|
|
return (/\{\s*\[native code\]\s*\}/).test('' + fn); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
function trackSupport(){ |
|
|
|
|
|
|
|
if (window.sessionStorage.supportTracked !== "V2") |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
console.log("tracking") |
|
|
|
|
|
|
|
window.sessionStorage.supportTracked = "V2"; |
|
|
|
|
|
|
|
var payload = {}; |
|
|
|
|
|
|
|
payload.type = "browserSupportInfo" |
|
|
|
|
|
|
|
payload.dnt = (window.doNotTrack == 1 || navigator.doNotTrack == 1); |
|
|
|
|
|
|
|
payload.arrayFrom = typeof(Array.from) !== 'undefined' && isNative(Array.from); |
|
|
|
|
|
|
|
payload.fetch = typeof(fetch) !== 'undefined'; |
|
|
|
|
|
|
|
payload.beacon = typeof(navigator.sendBeacon) !== 'undefined'; |
|
|
|
|
|
|
|
payload.storage = typeof(Storage) !== 'undefined'; |
|
|
|
|
|
|
|
var xhr = new XMLHttpRequest(); |
|
|
|
|
|
|
|
xhr.open("POST", "/aufnahmen/track.php"); |
|
|
|
|
|
|
|
xhr.send(JSON.stringify(payload)); |
|
|
|
|
|
|
|
console.log(payload) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function dokumentGeladen (e) { |
|
|
|
function dokumentGeladen (e) { |
|
|
|
|
|
|
|
trackSupport(); |
|
|
|
//alert("Das Ereignis " + e.type + " ist passiert.")
|
|
|
|
//alert("Das Ereignis " + e.type + " ist passiert.")
|
|
|
|
a=document.getElementsByClassName("mailto"); |
|
|
|
a=document.getElementsByClassName("mailto"); |
|
|
|
for (val of a) { |
|
|
|
Array.from(a).forEach(function(elem){ |
|
|
|
|
|
|
|
var instr=atob(elem.getAttribute("href_crypt")); |
|
|
|
|
|
|
|
elem.href=xor_crypt(instr); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
/*for (val of a) { |
|
|
|
instr=atob(val.getAttribute("href_crypt")); |
|
|
|
instr=atob(val.getAttribute("href_crypt")); |
|
|
|
val.href=xor_crypt(instr);} |
|
|
|
val.href=xor_crypt(instr); |
|
|
|
|
|
|
|
}*/ |
|
|
|
} |
|
|
|
} |
|
|
|
document.addEventListener("load", dokumentGeladen, false); |
|
|
|
document.addEventListener("load", dokumentGeladen, false); |
|
|
|
document.addEventListener("DOMContentLoaded", dokumentGeladen, false); |
|
|
|
document.addEventListener("DOMContentLoaded", dokumentGeladen, false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|