MediaWiki:Monobook.js: Difference between revisions

m
no edit summary
m (Removing test code.)
mNo edit summary
Line 1: Line 1:
/*<nowiki>*/
/* Any JavaScript here will be loaded for users using the MonoBook skin */
/* Any JavaScript here will be loaded for users using the MonoBook skin */


/*<nowiki>*/
 
/** additional monobook scripts **/
/** additional monobook scripts **/
hookEvent( 'load', displayTimer );


/**** function displayTimer.js
/**** function displayTimer.js
  * by Patrick Westerhoff [poke]
  * by Patrick Westerhoff [poke]
  */
  */
function displayTimer ()
addOnloadHook(function ()
{
{
   if ( typeof( timerDisplay ) !== 'undefined' && timerDisplay === false )
   if ( typeof( timerDisplay ) !== 'undefined' && timerDisplay === false )
Line 55: Line 55:
     setInterval( actualizeCustom, 1000 );
     setInterval( actualizeCustom, 1000 );
   }
   }
}
});
/*</nowiki>*/
/*</nowiki>*/