forked from swee/MeowNex
Update script.js
This commit is contained in:
parent
525bd85283
commit
7e99e73011
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue