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