User:Equazcion/utcClock.js

var linkPurge = mw.config.get( 'wgScript' ) + '?title=' + encodeURIComponent( mw.config.get( 'wgPageName' ) ) + '&action=purge'; var clockStyle = 'font-weight:bolder; color:#fff; font-size:170%;';

$('.netbar-right').prepend('' +    ''); var $target = $('.dateNode'); showTime;

function showTime { var now = new Date; var hh = now.getUTCHours; var mm = now.getUTCMinutes; var ss = now.getUTCSeconds; var time = ( hh < 10 ? '0' + hh : hh ) + ':' + ( mm < 10 ? '0' + mm : mm ) + ':' + ( ss < 10 ? '0' + ss : ss ); $target.text( time ); var ms = now.getUTCMilliseconds; setTimeout( function {		showTime;	}, 1100 - ms ); }