From 8266d2703814afd9532dfbafa4c31c98cf50eaed Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Wed, 17 Jun 2026 23:17:48 -0400 Subject: [PATCH] Add cool stuff --- css/grafana.css | 2 +- index.html | 30 ++++++------------------------ js/live.js | 10 +++++----- 3 files changed, 12 insertions(+), 30 deletions(-) diff --git a/css/grafana.css b/css/grafana.css index 59a9ee8..d76edde 100644 --- a/css/grafana.css +++ b/css/grafana.css @@ -21,7 +21,7 @@ .grafana-embed iframe { display: block; width: 100%; - height: 200px; + height: 400px; border: 0; background: #000000; } diff --git a/index.html b/index.html index e270810..144c64c 100644 --- a/index.html +++ b/index.html @@ -34,32 +34,14 @@

Graphs

- -
+ +
- -
+ +
- -
+ +
diff --git a/js/live.js b/js/live.js index 0e0757c..7849942 100644 --- a/js/live.js +++ b/js/live.js @@ -106,13 +106,13 @@ statListeners.textContent = formatListeners(listeners); } if (statStatus) { - statStatus.textContent = formatStatus(data.status); + var statusText = formatStatus(data.status); + statStatus.textContent = statusText; statStatus.classList.remove("stat-value--ok", "stat-value--bad"); - var status = String(data.status || "").toLowerCase(); - if (status === "online" || status === "ok" || status === "up") { - statStatus.classList.add("stat-value--ok"); - } else if (status === "offline" || status === "down" || status === "error") { + if (statusText !== "---" && String(data.status).toLowerCase() !== "online") { statStatus.classList.add("stat-value--bad"); + } else if (statusText !== "---") { + statStatus.classList.add("stat-value--ok"); } } }