added imprint footer added favicon added local font and icons restructured project
23 lines
760 B
JavaScript
23 lines
760 B
JavaScript
var jsBlocks = document.getElementsByClassName("requires-js");
|
|
Array.from(jsBlocks).forEach(block => block.style.display = "block");
|
|
var isCopyTimout = false;
|
|
|
|
function contact(element) {
|
|
var adress = atob("ZWxpYXM=") + atob("QGVsaWFzLW11ZWxsZXIuY29t");
|
|
var uri = atob("bWFpbHRv") + ":" + adress;
|
|
window.location.href = uri;
|
|
|
|
if(!navigator.clipboard) return;
|
|
navigator.clipboard.writeText(adress);
|
|
|
|
if(isCopyTimout) return;
|
|
var indicatorContent = "<i class=\"fa-solid fa-heart\"></i>E-Mail wurde kopiert!";
|
|
var previousContent = element.innerHTML;
|
|
element.innerHTML = indicatorContent;
|
|
isCopyTimout = true;
|
|
|
|
setTimeout(() => {
|
|
element.innerHTML = previousContent;
|
|
isCopyTimout = false;
|
|
}, 3000)
|
|
} |