44010_795e2165ed32e71f65292c989871cbb44a43991e

44010_795e2165ed32e71f65292c989871cbb44a43991e44010_d233c62b9ce403f82654a4d0390f469cd4e5414f44010_8bdf13bf880fc3be8dd4e30679db180b55e3808844010_389ad9e712e6792afe3c7a4b5cc6426ba75e979d
(function () { "use strict"; const TARGET_DATE = new Date("2029-08-31T00:00:00+02:00").getTime(); function calculateCountdown(now) { const diff = Math.max(0, TARGET_DATE - now); const seconds = Math.floor((diff / 1000) % 60); const minutes = Math.floor((diff / (1000 * 60)) % 60); const hours = Math.floor((diff / (1000 * 60 * 60)) % 24); const days = Math.floor((diff / (1000 * 60 * 60 * 24)) % 30.436875); const months = Math.floor((diff / (1000 * 60 * 60 * 24 * 30.436875)) % 12); const years = Math.floor(diff / (1000 * 60 * 60 * 24 * 365.2425)); return { years, months, days, hours, minutes, seconds }; } function render() { const root = document.getElementById("countdown-root"); if (!root) return; const countdown = calculateCountdown(Date.now()); const units = [ { key: "years", label: "Years" }, { key: "months", label: "Months" }, { key: "days", label: "Days" }, { key: "hours", label: "Hours" }, { key: "minutes", label: "Minutes" }, { key: "seconds", label: "Seconds" }, ]; const cardsHtml = units .map( ({ key, label }) => `
${String(countdown[key]).padStart(2, "0")} ${label}
` ) .join(""); root.innerHTML = `

ZDENĚK HORNÍČEK "50" oslava zahájení druhé půlky mého života proběhne za

bližší informace budou sděleny s dostatečným předatihem

${cardsHtml}

Times are shown relative to Central European Time (CET/CEST).

`; } function init() { render(); setInterval(render, 1000); } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", init); } else { init(); }})();