1
0
Fork 0
forked from swee/MeowNex

Update script.js

This commit is contained in:
Nova Cat 2024-12-06 18:28:49 -08:00
parent 525bd85283
commit 7e99e73011

View file

@ -6,6 +6,9 @@ fetch ("run.txt")
fetch ("block.txt")
.then(x => x.text())
.then(y => document.getElementById("blocked").innerHTML = y);
fetch ("link.txt")
.then(x => x.text())
.then(y => document.getElementById("links").innerHTML = y);
async function refresh(){
// Refresh the HTML to show the spinners
document.getElementById("run").innerHTML = "..."
@ -17,4 +20,7 @@ async function refresh(){
fetch ("block.txt")
.then(x => x.text())
.then(y => document.getElementById("blocked").innerHTML = y);
fetch ("link.txt")
.then(x => x.text())
.then(y => document.getElementById("links").innerHTML = y);
}