feat: status page + maintenance

This commit is contained in:
mco-system
2023-05-27 14:25:10 +11:00
parent a7a52e7d4c
commit 614c16750d
6 changed files with 144 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
function reboot() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("logs").innerHTML = this.responseText;
}
};
xhttp.open("GET", "https://www.thsf.net/maintenance/reboot.py", true);
xhttp.send();
setTimeout(function () {
document.location="https://www.thsf.net/maintenance/status.py"}, 5000
);
}