const countdownConfig = { targetDate: "2026-06-08T00:00:00", theme: { background: "#2563eb", textColor: "#fff", borderRadius: "12px", fontSize: "22px", boxShadow: "0 4px 15px rgba(0,0,0,0.3)" }, format: "{days}d {hours}h {minutes}m {seconds}s until kickoff!" }; function renderCountdown(){ const now = new Date(); const target = new Date(countdownConfig.targetDate); const diff = target - now; const el = document.getElementById("wcCountdown"); if(diff <= 0){ el.innerText = "The World Cup is live!"; el.style.backgroundColor = "#16a34a"; // Green when live el.style.color = "#fff"; return; } const days = Math.floor(diff/(1000*60*60*24)); const hours = Math.floor((diff/(1000*60*60))%24); const minutes = Math.floor((diff/(1000*60))%60); const seconds = Math.floor((diff/1000)%60); el.innerText = countdownConfig.format .replace("{days}", days) .replace("{hours}", hours) .replace("{minutes}", minutes) .replace("{seconds}", seconds); el.style.backgroundColor = countdownConfig.theme.background; el.style.color = countdownConfig.theme.textColor; el.style.borderRadius = countdownConfig.theme.borderRadius; el.style.fontSize = countdownConfig.theme.fontSize; el.style.boxShadow = countdownConfig.theme.boxShadow; } setInterval(renderCountdown,1000); renderCountdown();
Some items are no longer available. Your cart has been updated.
This discount code cannot be used in conjunction with other promotional or discounted offer.
Your cart is empty.
Comment