thsf.net/maintenance/scripts/maintenance.js

14 lines
459 B
JavaScript
Raw Normal View History

2023-05-27 05:25:10 +02:00
function reboot() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("logs").innerHTML = this.responseText;
2023-05-27 08:19:40 +02:00
setTimeout(function () {
document.location="https://www.thsf.net/thsf.net/maintenance/status.py"}, 5000
);
2023-05-27 05:25:10 +02:00
}
};
2023-05-27 07:55:00 +02:00
xhttp.open("GET", "https://www.thsf.net/thsf.net/maintenance/reboot.py", true);
2023-05-27 05:25:10 +02:00
xhttp.send();
}