thsf.net/maintenance/scripts/maintenance.js

9 lines
275 B
JavaScript
Raw Normal View History

2023-05-27 09:46:33 +02:00
$("#reboot").on("click", function(){
console.log("vroom");
2023-05-27 08:58:14 +02:00
$.get("https://www.thsf.net/thsf.net/maintenance/reboot.py", function(data, status){
2023-05-27 09:22:38 +02:00
console.log(status);
2023-05-27 09:46:33 +02:00
$("#logs").html = data;
2023-05-27 08:58:14 +02:00
setTimeout(function () {document.location.reload()}, 5000);
});
});