thsf.net/maintenance/scripts/maintenance.js

8 lines
251 B
JavaScript
Raw Permalink Normal View History

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