Bureaucrats, editor, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
47,390
edits
(Created page with "→* * Adapted from https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js: ( function () { function padWithZeroes( num ) { // Pad a number with zeroes. The number must be an integer where // 0 <= num < 100. return num < 10 ? '0' + num.toString() : num.toString(); } function showTime( $target ) { var now = new Date(); // Set the time. var hh = now.getUTCHours(); var mm = now.getUTCMinutes(); var time = padWithZeroes( hh ) + ':' + pad...") |
No edit summary Tag: Reverted |
||
Line 36:
function liveClock() {
// Add the portlet link.
var node = mw.mw.util.addPortletLink(
'p-personal', // portletId
'#', // href
|