diff options
-rw-r--r-- | home/index.php | 3 | ||||
-rw-r--r-- | includes/tunnels/everfree.sh | 4 | ||||
-rw-r--r-- | includes/tunnels/zephyrheights.sh | 2 | ||||
-rw-r--r-- | index.php | 4 |
4 files changed, 12 insertions, 1 deletions
diff --git a/home/index.php b/home/index.php index a21b7e8..d785500 100644 --- a/home/index.php +++ b/home/index.php @@ -41,6 +41,9 @@ } document.getElementById("meta-<?= $name ?>").innerText = state === 1 ? "Syncing" : (state === 2 ? "Failed" : "Up to date"); + document.getElementById("meta-<?= $name ?>").classList.remove("text-primary"); + document.getElementById("meta-<?= $name ?>").classList.remove("text-danger"); + document.getElementById("meta-<?= $name ?>").classList.remove("text-success"); document.getElementById("meta-<?= $name ?>").classList.add(state === 1 ? "text-primary" : (state === 2 ? "text-danger" : "text-success")); } diff --git a/includes/tunnels/everfree.sh b/includes/tunnels/everfree.sh new file mode 100644 index 0000000..afec5c8 --- /dev/null +++ b/includes/tunnels/everfree.sh @@ -0,0 +1,4 @@ +#!/bin/bash +while true; do + ssh -p 52274 -L 8390:localhost:8384 -T root@everfree.equestria.dev +done
\ No newline at end of file diff --git a/includes/tunnels/zephyrheights.sh b/includes/tunnels/zephyrheights.sh index 9d20189..9f7fdaa 100644 --- a/includes/tunnels/zephyrheights.sh +++ b/includes/tunnels/zephyrheights.sh @@ -1,4 +1,4 @@ #!/bin/bash while true; do - ssh -L 8386:localhost:8384 -T root@zephyrheights.equestria.dev + ssh -p 2222 -L 8386:localhost:8384 -T root@zephyrheights.equestria.dev done
\ No newline at end of file @@ -34,9 +34,13 @@ if (result['online']) { document.getElementById("status-<?= $name ?>").classList.remove("bg-secondary"); + document.getElementById("status-<?= $name ?>").classList.remove("bg-danger"); + document.getElementById("status-<?= $name ?>").classList.remove("bg-success"); document.getElementById("status-<?= $name ?>").classList.add("bg-success"); } else { document.getElementById("status-<?= $name ?>").classList.remove("bg-secondary"); + document.getElementById("status-<?= $name ?>").classList.remove("bg-danger"); + document.getElementById("status-<?= $name ?>").classList.remove("bg-success"); document.getElementById("status-<?= $name ?>").classList.add("bg-danger"); } } |