thsf.net/maintenance/scripts/maintenance.js

14 lines
431 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;
}
};
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
);
}