變更

無編輯摘要
行 6: 行 6:  
  *
 
  *
 
  * Revision: November 2017
 
  * Revision: November 2017
 +
* Tweaked by local sysop on June 2020
 
  * Source: https://www.mediawiki.org/wiki/MediaWiki:Gadget-UTCLiveClock.js
 
  * Source: https://www.mediawiki.org/wiki/MediaWiki:Gadget-UTCLiveClock.js
 
  *
 
  *
行 45: 行 46:  
var mm = now.getUTCMinutes();
 
var mm = now.getUTCMinutes();
 
var ss = now.getUTCSeconds();
 
var ss = now.getUTCSeconds();
var time = padWithZeroes( hh ) + ':' + padWithZeroes( mm ) + ':' + padWithZeroes( ss );
+
var time = padWithZeroes( hh ) + ':' + padWithZeroes( mm ) + ':' + padWithZeroes( ss ) + ' UTC';
 
$target.text( time );
 
$target.text( time );
   行 65: 行 66:  
// Set CSS styles. We do this here instead of on the CSS page because some
 
// Set CSS styles. We do this here instead of on the CSS page because some
 
// wikis load this page directly, without loading the accompanying CSS.
 
// wikis load this page directly, without loading the accompanying CSS.
mw.util.addCSS( '#utcdate a { font-weight:bolder; font-size:120%; }' );
+
mw.util.addCSS( '#utcdate a { font-weight:bolder; }' );
    
// Reset whitespace that was set in the peer CSS gadget; this prevents the
 
// Reset whitespace that was set in the peer CSS gadget; this prevents the
161

次編輯