Copyright © Somang Entertainment, All rights reserved

00
MONTHS
00
DAYS
00
HOURS
00
MINUTES
00
SECONDS
(function () { const target = new Date("2027-03-23T18:00:00+01:00"); function calculateCalendarDifference(now, targetDate) { let months = (targetDate.getFullYear() - now.getFullYear()) * 12 + (targetDate.getMonth() - now.getMonth()); let anchor = new Date(now); anchor.setMonth(anchor.getMonth() + months); if (anchor > targetDate) { months--; anchor = new Date(now); anchor.setMonth(anchor.getMonth() + months); } const remainingMs = targetDate - anchor; const days = Math.floor( remainingMs / (1000 * 60 * 60 * 24) ); const hours = Math.floor( (remainingMs / (1000 * 60 * 60)) % 24 ); const minutes = Math.floor( (remainingMs / (1000 * 60)) % 60 ); const seconds = Math.floor( (remainingMs / 1000) % 60 ); return { months, days, hours, minutes, seconds }; } function updateCountdown() { const now = new Date(); if (now >= target) { document.getElementById("cd-months").textContent = "00"; document.getElementById("cd-days").textContent = "00"; document.getElementById("cd-hours").textContent = "00"; document.getElementById("cd-minutes").textContent = "00"; document.getElementById("cd-seconds").textContent = "00"; return; } const time = calculateCalendarDifference(now, target); document.getElementById("cd-months").textContent = String(time.months).padStart(2, "0"); document.getElementById("cd-days").textContent = String(time.days).padStart(2, "0"); document.getElementById("cd-hours").textContent = String(time.hours).padStart(2, "0"); document.getElementById("cd-minutes").textContent = String(time.minutes).padStart(2, "0"); document.getElementById("cd-seconds").textContent = String(time.seconds).padStart(2, "0"); } updateCountdown(); setInterval(updateCountdown, 1000); })();