feat: status page + maintenance

This commit is contained in:
mco-system 2023-05-27 17:29:21 +11:00
parent 674edf2bf2
commit 7a2fdec8d4
2 changed files with 2 additions and 4 deletions

View File

@ -3,9 +3,7 @@ function reboot() {
xhttp.onreadystatechange = function() { xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) { if (this.readyState == 4 && this.status == 200) {
document.getElementById("logs").innerHTML = this.responseText; document.getElementById("logs").innerHTML = this.responseText;
setTimeout(function () { setTimeout(function () {location.reload()}, 5000);
document.location="https://www.thsf.net/thsf.net/maintenance/status.py"}, 5000
);
} }
}; };
xhttp.open("GET", "https://www.thsf.net/thsf.net/maintenance/reboot.py", true); xhttp.open("GET", "https://www.thsf.net/thsf.net/maintenance/reboot.py", true);

View File

@ -55,7 +55,7 @@
} }
.container_log { .container_log {
text-align: left; text-align: left;
width: 48em; width: 48.4em;
padding: 0.2em; padding: 0.2em;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;