diff --git a/succbone/succd/index.html b/succbone/succd/index.html index 8175625..921cc87 100644 --- a/succbone/succd/index.html +++ b/succbone/succd/index.html @@ -52,16 +52,11 @@ td > span { height: 10em; } -.graph-container { - background-color: #e8e8e8; - text-align: center; -} - .main-grid { margin-top: 2em; margin-left: auto; margin-right: auto; - max-width: 160em; + max-width: 130em; clear: both; display: grid; @@ -69,25 +64,6 @@ td > span { column-gap: 2em; row-gap: 2em; } - -.has-hidden .hidden-text { - display: none; -} - -.has-hidden:hover .hidden-text { - display: block; - -@media only screen and (max-width: 700px) { - body { - font-size: 6px; - } - table { - font-size: 20px; - } - th { - font-size: 15px; - } -} @@ -122,13 +98,13 @@ td > span { - - + + + + + + +
Pirani Pressure -
{{ .Pirani.Mbar }}
-
- Voltage: {{ .Pirani.Volts }} -
-
Pirani GaugeVoltage{{ .Pirani.Volts }}
Pressure{{ .Pirani.Mbar }}
@@ -163,9 +139,9 @@ td > span { -
+

-

+

@@ -324,14 +300,6 @@ window.addEventListener("load", (_) => { let rpoff = document.querySelector("#rpoff"); canvas = document.querySelector("#graph").getContext("2d"); - let colors = { - default: "background-color: #e8e8e8", - highlightNeutral: "background-color: #8282ff", - highlightCaution: "background-color: #ff941a", - highlightFault: "background-color: #f06060", - highlightGood: "background-color: #60f060", - }; - // TODO(q3k): unhardcode this. historicalDraw(1024, 512); @@ -353,7 +321,7 @@ window.addEventListener("load", (_) => { connected = true; console.log("Socket connected!"); status.innerHTML = "Online"; - status.style = colors.default; + status.style = "background-color: #60f060;"; }); socket.addEventListener("message", (event) => { const data = JSON.parse(event.data); @@ -361,47 +329,47 @@ window.addEventListener("load", (_) => { mbar.innerHTML = data.Pirani.Mbar; if (data.Safety.Failsafe) { failsafe.innerHTML = "ON"; - failsafe.style = colors.highlightFault; + failsafe.style = "background-color: #f06060"; } else { failsafe.innerHTML = "OFF"; - failsafe.style = colors.default; + failsafe.style = "background-color: #60f060"; } if (data.Safety.HighPressure) { highpressure.innerHTML = "ON"; - highpressure.style = colors.default; + highpressure.style = "background-color: #f06060"; } else { highpressure.innerHTML = "OFF"; - highpressure.style = colors.default; + highpressure.style = "background-color: #60f060"; } if (data.Pumps.RPOn) { rp.innerHTML = "ON"; - rp.style = colors.default; + rp.style = "background-color: #60f060"; } else { rp.innerHTML = "OFF"; - rp.style = colors.highlightNeutral; + rp.style = "background-color: #f06060"; } if (data.Pumps.DPOn) { dp.innerHTML = "ON"; - dp.style = colors.highlightCaution; + dp.style = "background-color: #60f060"; } else { dp.innerHTML = "OFF"; - dp.style = colors.default; + dp.style = "background-color: #f06060"; } let t = []; if (data.Feedback.RoughReached) { trough.innerHTML = "OK"; - trough.style = colors.highlightGood; + trough.style = "background-color: #60f060"; } else { trough.innerHTML = "NOK"; - trough.style = colors.default; + trough.style = "background-color: #f06060"; } if (data.Feedback.HighReached) { thigh.innerHTML = "OK"; - thigh.style = colors.highlightGood; + thigh.style = "background-color: #60f060"; } else { thigh.innerHTML = "NOK"; - thigh.style = colors.default; + thigh.style = "background-color: #f06060"; } load.innerHTML = data.LoopLoad.toString() + "%"; historicalPush(data.Pirani.MbarFloat); @@ -409,7 +377,7 @@ window.addEventListener("load", (_) => { }); socket.addEventListener("close", (event) => { status.innerHTML = "Offline"; - status.style = colors.highlightFault; + status.style = "background-color: #f06060;"; if (connected) { console.log("Socket dead, reconnecting..."); }