Signed-off-by: 南通一次元科技有限公司 <guwangtu@icimeta.com>
This commit is contained in:
commit
b91954df4a
106 files changed
+43359
No files matched your search
@@ -0,0 +1,11 @@
|
||||
// ==================== 启动 ====================
|
||||
function tickClock(){ const d=new Date(); qs('clock').textContent=d.toLocaleDateString('zh-CN')+' '+d.toLocaleTimeString('zh-CN',{hour12:false}); }
|
||||
setInterval(tickClock,1000); tickClock();
|
||||
(function init(){
|
||||
const qp = new URLSearchParams(location.search);
|
||||
const qtab = qp.get('tab');
|
||||
const h = (location.hash || '').replace('#','');
|
||||
if (qtab && TAB_META[qtab]) switchTab(qtab);
|
||||
else if (TAB_META[h]) switchTab(h);
|
||||
else switchTab('dashboard');
|
||||
})();
|
||||
Reference in new issue
Block a user