This commit is contained in:
@@ -565,12 +565,12 @@ function setDailyMessage() {
|
||||
}
|
||||
|
||||
function startCountdown() {
|
||||
const target = new Date('2026-05-27T00:00:00');
|
||||
document.getElementById('countdownLabel').textContent = 'Eid';
|
||||
const target = new Date('2026-08-01T00:00:00');
|
||||
document.getElementById('countdownLabel').textContent = 'Wedding';
|
||||
function update() {
|
||||
const diff = target - new Date();
|
||||
if (diff <= 0) {
|
||||
document.getElementById('countdownDisplay').innerHTML = '<p style="color:var(--green);font-weight:700">Eid is now</p>';
|
||||
document.getElementById('countdownDisplay').innerHTML = '<p style="color:var(--green);font-weight:700">Nikah is now</p>';
|
||||
return;
|
||||
}
|
||||
document.getElementById('cd-days').textContent = String(Math.floor(diff / 86400000)).padStart(3, '0');
|
||||
|
||||
Reference in New Issue
Block a user