garaga page 17
This commit is contained in:
@@ -389,16 +389,16 @@
|
||||
label.textContent = currentPower ? 'Ein' : 'Aus';
|
||||
|
||||
// Status display
|
||||
const stateDisplay = document.createElement('div');
|
||||
stateDisplay.style.marginTop = '16px';
|
||||
stateDisplay.style.fontSize = '18px';
|
||||
stateDisplay.style.fontWeight = '600';
|
||||
stateDisplay.style.color = currentPower ? '#34c759' : '#666';
|
||||
// const stateDisplay = document.createElement('div');
|
||||
// stateDisplay.style.marginTop = '16px';
|
||||
// stateDisplay.style.fontSize = '18px';
|
||||
// stateDisplay.style.fontWeight = '600';
|
||||
// stateDisplay.style.color = currentPower ? '#34c759' : '#666';
|
||||
// stateDisplay.textContent = `Status: ${currentPower ? 'Eingeschaltet' : 'Ausgeschaltet'}`;
|
||||
|
||||
controlGroup.appendChild(toggleSwitch);
|
||||
controlGroup.appendChild(label);
|
||||
controlGroup.appendChild(stateDisplay);
|
||||
// controlGroup.appendChild(stateDisplay);
|
||||
|
||||
container.appendChild(controlGroup);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user