更改

无编辑摘要
第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

个编辑