diff --git a/dashboard/static/index.html b/dashboard/static/index.html index 5f34ff8..ab28cb5 100644 --- a/dashboard/static/index.html +++ b/dashboard/static/index.html @@ -21,12 +21,9 @@
-
-
-

SNEK Dashboard

-

Live Sens'it uplink decoding

-
- +
+

SNEK Dashboard

+

Live Sens'it uplink decoding

@@ -241,22 +238,8 @@ async function bootstrap() { renderMessages(); } -function setConn(state) { - const dot = document.getElementById('conn-dot'); - const map = { - live: ['bg-emerald-500', 'connected'], - off: ['bg-rose-500', 'disconnected'], - idle: ['bg-slate-300', 'connecting'], - }; - const [color, title] = map[state] || map.idle; - dot.className = `w-2 h-2 rounded-full ${color}`; - dot.title = title; -} - function connectSSE() { const es = new EventSource('/events'); - es.onopen = () => setConn('live'); - es.onerror = () => setConn('off'); es.onmessage = (ev) => { try { const msg = JSON.parse(ev.data);