From 7a2fdec8d440f719c827174a783651ac07e1f53a Mon Sep 17 00:00:00 2001 From: mco-system Date: Sat, 27 May 2023 17:29:21 +1100 Subject: [PATCH] feat: status page + maintenance --- maintenance/scripts/maintenance.js | 4 +--- maintenance/style/maintenance.css | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/maintenance/scripts/maintenance.js b/maintenance/scripts/maintenance.js index 2a73e83..f212ec6 100644 --- a/maintenance/scripts/maintenance.js +++ b/maintenance/scripts/maintenance.js @@ -3,9 +3,7 @@ function reboot() { xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("logs").innerHTML = this.responseText; - setTimeout(function () { - document.location="https://www.thsf.net/thsf.net/maintenance/status.py"}, 5000 - ); + setTimeout(function () {location.reload()}, 5000); } }; xhttp.open("GET", "https://www.thsf.net/thsf.net/maintenance/reboot.py", true); diff --git a/maintenance/style/maintenance.css b/maintenance/style/maintenance.css index d5b3872..5656de3 100644 --- a/maintenance/style/maintenance.css +++ b/maintenance/style/maintenance.css @@ -55,7 +55,7 @@ } .container_log { text-align: left; - width: 48em; + width: 48.4em; padding: 0.2em; border-width: 1px; border-style: solid;