change topic conf for button press

This commit is contained in:
Carsten Graf
2025-07-05 01:37:43 +02:00
parent fb4e4d2bb5
commit 6f0c91d0ee
4 changed files with 12 additions and 8 deletions

View File

@@ -87,7 +87,6 @@ const heartbeatTimeouts = {
// Set all heartbeats to red initially
["heartbeat1", "heartbeat2", "heartbeat3", "heartbeat4"].forEach(id => {
document.getElementById(id).classList.remove('active');
//document.getElementById(id).style.backgroundColor = "red";
});
// Handle WebSocket events
@@ -250,7 +249,6 @@ setInterval(() => {
].forEach(({button, id}) => {
if (now - heartbeatTimeouts[button] > 10000) {
document.getElementById(id).classList.remove('active');
//document.getElementById(id).style.backgroundColor = "red";
}
});
}, 1000);