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 = "E-Mail wurde kopiert!"; var previousContent = element.innerHTML; element.innerHTML = indicatorContent; isCopyTimout = true; setTimeout(() => { element.innerHTML = previousContent; isCopyTimout = false; }, 3000) } var now = new Date(); document.getElementById("age").textContent = now.getFullYear() - 2003 - (now.getMonth() < 8 ? 1 : 0); document.getElementById("linux-years").textContent = now.getFullYear() - 2017;