From 194da1a78b11719d792d6d0734ba162695adc24b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Fri, 29 Aug 2025 15:16:22 +0200 Subject: [PATCH] ui look --- index.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index cffcb6a..8f78035 100644 --- a/index.html +++ b/index.html @@ -87,10 +87,15 @@ flex: 1; } + .initial { + text-align: right; + } + @media (min-width: 1000px) { body { font-size: 16px; } + .relayBox { width: 400px; } @@ -130,13 +135,15 @@ function updateState(relayTag, state) { const tag = relayTag.getElementsByClassName("state")[0]; if (state) { - tag.innerText = "Ein"; tag.classList.add("stateOn"); tag.classList.remove("stateOff"); + relayTag.classList.add("stateOn"); + relayTag.classList.remove("stateOff"); } else { - tag.innerText = "Aus"; tag.classList.add("stateOff"); tag.classList.remove("stateOn"); + relayTag.classList.add("stateOff"); + relayTag.classList.remove("stateOn"); } }