User blog comment:Caesar213/Adding a clock on the wiki/@comment-5007040-20131012223756

Hi, this is what you can Add to get a clock on the top bar of your wiki.

Add this to MediaWiki:Wikia.css on your wiki: Add this code to MediaWiki:Common.js on your wiki: // ============================================================ // displayTimer // ============================================================ var refreshDate; function addDate { var UTCDate = ((new Date).toUTCString).replace("GMT", "(UTC)"); $('#showdate').empty.append(' ' + UTCDate.substring(5) + ' '); window.clearTimeout(refreshDate); refreshDate = window.setTimeout(addDate, 1000); } $(document).ready(function {   if (skin == 'oasis')         $(' ').appendTo('#GlobalNavigation');    else        $('#p-personal ul').prepend(' ');    addDate;    refreshDate = window.setTimeout(addDate, 1000);    $('#displayTimer').css({'font-size': "12px"}); }); // Hope this helps you!
 * 1) displayTimer { font-size: 12px !important; }
 * 1) showdate a { color: white !important; }