document.addEventListener("DOMContentLoaded", function() { var promise = document.getElementById("autoplay").play(); if (promise !== undefined) { promise.then(function() {}).catch(function(error) { var autoplayCover = document.createElement("div"); autoplayCover.id = "autoplay-cover"; autoplayCover.innerHTML = `

Something has obfuscated their voices once more...

You may click to LISTEN

`; document.body.appendChild(autoplayCover); autoplayCover.addEventListener("click", function() { autoplayCover.className = "hide"; setTimeout(function() { document.body.removeChild(autoplayCover); }, 500); document.getElementById("autoplay").play(); }); }); } }); window.addEventListener("load", function() { var cursorContainer = document.createElement("div"); cursorContainer.id = "cursor-container"; var cursor = document.createElement("div"); cursor.id = "cursor"; cursorContainer.appendChild(cursor); document.body.appendChild(cursorContainer); window.addEventListener("mousemove", function(event) { cursor.style.transform = "translate(" + (event.pageX - 13) + "px," + (event.pageY - 13) + "px)"; }); window.addEventListener("mouseover", function(event) { var isHover = false; for (var i=0; i