change topic conf for button press
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user