diff --git a/public/index.html b/public/index.html index 724ce56..eaa553f 100644 --- a/public/index.html +++ b/public/index.html @@ -56,7 +56,9 @@ button.refresh{background:#20a53a;color:#fff;border:none;border-radius:3px;paddi
磁盘
网络
-v1.2.8 +v1.3.2 + + 资享导航站 开源地址
@@ -186,7 +188,12 @@ document.getElementById('netinfo').innerHTML=`
出口 ${esc(NW } }catch(e){if(manual)alert('加载失败: '+e)} } -load(true);setInterval(()=>load(false),3000); +load(true); +let ivalSec=3,timer=null,paused=false; +function startTimer(){if(timer)clearInterval(timer);if(!paused)timer=setInterval(()=>load(false),ivalSec*1000)} +function setIval(v){ivalSec=+v;startTimer()} +function togglePause(){paused=!paused;document.getElementById('pauseBtn').textContent=paused?'▶ 恢复刷新':'⏸ 停止刷新';startTimer()} +startTimer();