window.load=setTimeout(()=> { Delighters() },500) window.onscroll = function () { if (document.documentElement.scrollTop + document.body.scrollTop > 500) { document.getElementById("goTop").style.display = "block"; } else { document.getElementById("goTop").style.display = "none"; } } function scrollToTop () { const height = document.documentElement.scrollTop || document.body.scrollTop; if (height > 0) { window.requestAnimationFrame(scrollToTop); window.scrollTo(0, height - height / 8); } }