開啟主選單
首頁
隨機
登入
設定
關於Akarin
免責聲明
Akarin
搜尋
變更
← 較舊編輯
MediaWiki:Gadget-UTCLiveClock.js
(檢視原始碼)
於 2020年6月2日 (二) 10:57 的修訂
增加 32 位元組
、
2020年6月2日 (二) 10:57
小
無編輯摘要
第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
One-Six
161
次編輯