MediaWiki:Gadget-UTCLiveClock.js: Difference between revisions
Content deleted Content added
Allow configuring where the clock goes |
m formatting |
||
Line 1:
function liveClock()
{
liveClock.node = addPortletLink( portletId, wgServer + wgScriptPath + '/index.php?title=' + encodeURIComponent(wgPageName) + '&action=purge', '', 'utcdate', undefined, undefined, nextNode );
liveClock.node.style.fontSize = 'larger';
Line 19:
return;
}
var hh = now.getUTCHours();
var mm = now.getUTCMinutes();
Line 26:
dateNode.firstChild.replaceChild( document.createTextNode( time ), dateNode.firstChild.firstChild );
}
|