const DESTINATION = "https://aleksandrakozlowska.com/"; const DELAY_SEC = 5; (function () { const overlay = document.getElementById("redirect-overlay"); const numEl = document.getElementById("countdown-num"); const ring = document.getElementById("ring"); const link = document.getElementById("go-now-link"); const CIRCUMF = 2 * Math.PI * 30; link.href = DESTINATION; requestAnimationFrame(() => requestAnimationFrame(() => overlay.classList.add("visible")), ); let remaining = DELAY_SEC; function updateRing(secs) { const fraction = secs / DELAY_SEC; ring.style.strokeDashoffset = CIRCUMF * (1 - fraction); } ring.style.strokeDashoffset = 0; const timer = setInterval(() => { remaining -= 1; numEl.textContent = remaining; updateRing(remaining); if (remaining <= 0) { clearInterval(timer); window.location.href = DESTINATION; } }, 1000); link.addEventListener("click", () => clearInterval(timer)); })();
Makeup fryzury kolor logo
Makeup fryzury kolor logo