This commit is contained in:
@@ -565,12 +565,12 @@ function setDailyMessage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function startCountdown() {
|
function startCountdown() {
|
||||||
const target = new Date('2026-05-27T00:00:00');
|
const target = new Date('2026-08-01T00:00:00');
|
||||||
document.getElementById('countdownLabel').textContent = 'Eid';
|
document.getElementById('countdownLabel').textContent = 'Wedding';
|
||||||
function update() {
|
function update() {
|
||||||
const diff = target - new Date();
|
const diff = target - new Date();
|
||||||
if (diff <= 0) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
document.getElementById('cd-days').textContent = String(Math.floor(diff / 86400000)).padStart(3, '0');
|
document.getElementById('cd-days').textContent = String(Math.floor(diff / 86400000)).padStart(3, '0');
|
||||||
|
|||||||
Reference in New Issue
Block a user