MediaWiki:Common.js: Difference between revisions

m
seems I pasted an old version of the code.
m (adding the countdown clock javescripting from Bulbanews.)
m (seems I pasted an old version of the code.)
Line 139: Line 139:
}
}


if (document.getElementById('countdown'))
function startCountdown()
{
{
document.getElementById('countdown-target').innerHTML = 'to ' + formatDate(new Date(T + tzOffset)) + ' ' + tz;
document.getElementById('countdown').style.display = 'block';
updateClocks();
updateClocks();
document.getElementById('countdown-target').innerHTML = 'to ' + formatDate(new Date(T + tzOffset)) + ' ' + tz;
}
}


/* </pre> */
/* </pre> */
2,743

edits