thsf.net/maintenance/scripts/maintenance.js

9 lines
275 B
JavaScript

$("#reboot").on("click", function(){
console.log("vroom");
$.get("https://www.thsf.net/thsf.net/maintenance/reboot.py", function(data, status){
console.log(status);
$("#logs").html = data;
setTimeout(function () {document.location.reload()}, 5000);
});
});