打开主菜单
首页
随机
登录
设置
关于Akarin
免责声明
Akarin
搜索
更改
←上一编辑
MediaWiki:Gadget-UTCP8LiveClock.js
(查看源代码)
2020年6月3日 (三) 01:00的版本
删除49字节
、
2020年6月3日 (三) 01:00
小
// Edit via Wikiplus
第25行:
第25行:
// Set the time.
// Set the time.
var hh = (now.getUTCHours() + 8);
var hh = (now.getUTCHours() + 8);
−
while(hh > 24) {hh -= 24;}
+
while(hh >
=
24) {hh -= 24;}
var mm = now.getUTCMinutes();
var mm = now.getUTCMinutes();
var ss = now.getUTCSeconds();
var ss = now.getUTCSeconds();
第48行:
第48行:
// 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 { width: 7.55em; }' );
mw.util.addCSS( '#utcdate a { font-weight:bolder; }' );
mw.util.addCSS( '#utcdate a { font-weight:bolder; }' );
One-Six
161
个编辑