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