Spaces:
Running
Running
| export function initUI() { | |
| const productionButton = document.getElementById('production-button'); | |
| const productionPanel = document.getElementById('production-panel'); | |
| if (productionButton && productionPanel) { | |
| productionButton.addEventListener('click', () => { | |
| // This toggles the 'open' class which is defined in your main.css | |
| productionPanel.classList.toggle('open'); | |
| }); | |
| } | |
| } |