MediaWiki:Common.js/displayTimer.js

/* Any JavaScript here will be loaded for all users on every page load. */ var refreshDate; function showTime { var	now = new Date, hh = now.getUTCHours, mm = now.getUTCMinutes, ss = now.getUTCSeconds, time = ( hh < 10 ? '0' + hh : hh ) + ':' + ( mm < 10 ? '0' + mm : mm ) + ':' + ( ss < 10 ? '0' + ss : ss ); $('#showdate').empty.append(' ' + time + ' ');   window.clearTimeout(refreshDate);    refreshDate = window.setTimeout(showTime, 1000); } $(document).ready(function {    if (skin == 'oasis')         $(' ').appendTo('#AccountNavigation');    else        $('#p-personal ul').prepend(' ');    showTime;    refreshDate = window.setTimeout(showTime, 1000);    $('#displayTimer').css({ color: '#FFF', fontWeight: 'normal', fontSize: '10px', letterSpacing: '2px', marginLeft: '3px' }) });