From cac9148ebb2f72e031b7a934ec05cd26f98f57f3 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 18 Dec 2024 16:33:47 -0800 Subject: [PATCH] Update script.js --- script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script.js b/script.js index 42b8074..90654ea 100644 --- a/script.js +++ b/script.js @@ -12,13 +12,13 @@ fetch ("link.txt") .then(y => document.getElementById("links").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("run").innerHTML = "..."; + document.getElementById("blocked").innerHTML = "..."; + document.getElementById("links").innerHTML = "..."; // Then fetch the values the same way as on the first part of the script. fetch ("run.txt") .then(x => x.text()) - .then(y => document.getElementById("run").innerHTML = y) + .then(y => document.getElementById("run").innerHTML = y); fetch ("block.txt") .then(x => x.text()) .then(y => document.getElementById("blocked").innerHTML = y);