const countdownDate = new Date("July 19, 2025 19:00:00").getTime();
const updateCountdown = () => {
const now = new Date().getTime();
const distance = countdownDate - now;
if (distance < 0) {
document.querySelector(".countdown-boxes").innerHTML = "
LIVE NOW!
";
return;
}
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById("days").innerText = days.toString().padStart(2, '0');
document.getElementById("hours").innerText = hours.toString().padStart(2, '0');
document.getElementById("minutes").innerText = minutes.toString().padStart(2, '0');
document.getElementById("seconds").innerText = seconds.toString().padStart(2, '0');
};
setInterval(updateCountdown, 1000);
updateCountdown();