forked from swee/MeowNex
Update script.js
This commit is contained in:
parent
ab9ef3dda8
commit
cac9148ebb
1 changed files with 4 additions and 4 deletions
|
@ -12,13 +12,13 @@ fetch ("link.txt")
|
||||||
.then(y => document.getElementById("links").innerHTML = y);
|
.then(y => document.getElementById("links").innerHTML = y);
|
||||||
async function refresh(){
|
async function refresh(){
|
||||||
// Refresh the HTML to show the spinners
|
// Refresh the HTML to show the spinners
|
||||||
document.getElementById("run").innerHTML = "..."
|
document.getElementById("run").innerHTML = "...";
|
||||||
document.getElementById("blocked").innerHTML = "..."
|
document.getElementById("blocked").innerHTML = "...";
|
||||||
document.getElementById("links").innerHTML = "..."
|
document.getElementById("links").innerHTML = "...";
|
||||||
// Then fetch the values the same way as on the first part of the script.
|
// Then fetch the values the same way as on the first part of the script.
|
||||||
fetch ("run.txt")
|
fetch ("run.txt")
|
||||||
.then(x => x.text())
|
.then(x => x.text())
|
||||||
.then(y => document.getElementById("run").innerHTML = y)
|
.then(y => document.getElementById("run").innerHTML = y);
|
||||||
fetch ("block.txt")
|
fetch ("block.txt")
|
||||||
.then(x => x.text())
|
.then(x => x.text())
|
||||||
.then(y => document.getElementById("blocked").innerHTML = y);
|
.then(y => document.getElementById("blocked").innerHTML = y);
|
||||||
|
|
Loading…
Reference in a new issue