MediaWiki:Monobook.js: Difference between revisions

From Bulbanews, your community Pokémon newspaper.
Jump to navigationJump to search
m (Undo revision 19898 by Immewnity (Talk) :-()
No edit summary
 
Line 53: Line 53:
/*<nowiki>*/
/*<nowiki>*/
/** additional monobook scripts **/
/** additional monobook scripts **/
hookEvent( 'load', displayTimer );
$(document).ready(function() { displayTimer(); });


/**** function displayTimer.js
/**** function displayTimer.js
Line 67: Line 67:
   var timerLink  = document.createElement( 'a' );
   var timerLink  = document.createElement( 'a' );
   var timerObj    = document.createElement( 'li' );
   var timerObj    = document.createElement( 'li' );
   timerLink.href              = '/wiki/' + wgPageName + '?action=purge';
   timerLink.href              = '/wiki/' + mw.config.get("wgPageName") + '?action=purge';
   timerLink.title              = 'Purge the server cache and update the contents of this page.'
   timerLink.title              = 'Purge the server cache and update the contents of this page.'
   timerObj.id                  = 'pt-timer';
   timerObj.id                  = 'pt-timer';