From 429e2d221e95cef8f3e77be6e2f0bcfeef2dd36c Mon Sep 17 00:00:00 2001 From: mco-system Date: Sat, 27 May 2023 18:05:19 +1100 Subject: [PATCH] feat: status page + maintenance --- maintenance/scripts/maintenance.js | 4 ++-- maintenance/style/maintenance.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/maintenance/scripts/maintenance.js b/maintenance/scripts/maintenance.js index 24dffb5..13ba714 100644 --- a/maintenance/scripts/maintenance.js +++ b/maintenance/scripts/maintenance.js @@ -1,6 +1,6 @@ -$("reboot").click(function(){ +$("#reboot").click(function(){ $.get("https://www.thsf.net/thsf.net/maintenance/reboot.py", function(data, status){ - document.getElementById("logs").innerHTML = data; + $("#logs").innerHTML = data; setTimeout(function () {document.location.reload()}, 5000); }); }); diff --git a/maintenance/style/maintenance.css b/maintenance/style/maintenance.css index e8a83b0..3bf99ba 100644 --- a/maintenance/style/maintenance.css +++ b/maintenance/style/maintenance.css @@ -55,7 +55,7 @@ } .container_log { text-align: left; - width: 48.6em; + width: 48.8em; padding: 0.2em; border-width: 1px; border-style: solid;