MediaWiki:Gadget-utcclock.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
(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

Navigation menu