This commit is contained in:
parent
793a5ed08d
commit
334fbea381
1 changed files with 7 additions and 0 deletions
|
@ -10,11 +10,15 @@ fetch ("block.txt")
|
|||
fetch ("link.txt")
|
||||
.then(x => x.text())
|
||||
.then(y => document.getElementById("links").innerHTML = y);
|
||||
fetch ("lastquery.txt")
|
||||
.then(x => x.text())
|
||||
.then(y => document.getElementById("aichat").innerHTML = y);
|
||||
async function refresh(){
|
||||
// Refresh the HTML to show the spinners
|
||||
document.getElementById("run").innerHTML = "...";
|
||||
document.getElementById("blocked").innerHTML = "...";
|
||||
document.getElementById("links").innerHTML = "...";
|
||||
document.getElementById("aichat").innerHTML = "...";
|
||||
// Then fetch the values the same way as on the first part of the script.
|
||||
fetch ("run.txt")
|
||||
.then(x => x.text())
|
||||
|
@ -25,4 +29,7 @@ async function refresh(){
|
|||
fetch ("link.txt")
|
||||
.then(x => x.text())
|
||||
.then(y => document.getElementById("links").innerHTML = y);
|
||||
fetch ("lastquery.txt")
|
||||
.then(x => x.text())
|
||||
.then(y => document.getElementById("aichat").innerHTML = y);
|
||||
}
|
Loading…
Reference in a new issue