update 2026-10-29 18:46:39

This commit is contained in:
action committed 2026-10-29 18:46:39 +08:00
1 parent e2f86e09f4
commit 95f76f26d3
5034 files changed
+2043234

No files matched your search

@@ -0,0 +1,23 @@
<%+cbi/valueheader%>
<input type="checkbox" id="checkbox1" checked><%:Auto refresh%></input>
<textarea id="logview" class="cbi-input-textarea" style="width: 100%" rows="30" readonly="readonly"></textarea>
<script type="text/javascript">
const LOG_URL = '<%=luci.dispatcher.build_url("admin", "services", "cloudflarespeedtest","getlog")%>';
function getlog(){
XHR.get(LOG_URL, null, function(x, data) {
logview.value = data.log;
if(document.getElementById("checkbox1").checked == true){
logview.scrollTop = logview.scrollHeight;
}
});
}
getlog()
setInterval(() => {
if(document.getElementById("checkbox1").checked == true){
getlog()
}
}, 2000);
</script>
<%+cbi/valuefooter%>