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");
}
}
}
|