feat: status page + maintenance

This commit is contained in:
mco-system
2023-05-27 17:19:40 +11:00
parent 204269b849
commit e76d9815c9
2 changed files with 10 additions and 9 deletions

View File

@@ -3,11 +3,11 @@ 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
);
}
};
xhttp.open("GET", "https://www.thsf.net/thsf.net/maintenance/reboot.py", true);
xhttp.send();
setTimeout(function () {
document.location="https://www.thsf.net/thsf.net/maintenance/status.py"}, 5000
);
}