MediaWiki:Gadget-UTCLiveClock.js: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 25:
* 5. Add the following code to your wiki's [[MediaWiki:Gadgets-definition]]:
*
* *
* *
*
*/
Line 42:
// Set the time.
var hh = now.
var mm = now.
var ss = now.
var time = padWithZeroes( hh ) + ':' + padWithZeroes( mm ) + ':' + padWithZeroes( ss );
$target.text( time );
Line 78:
mw.util.getUrl( null, { action: 'purge' } ),
'',
'
);
if ( !node ) {
|