()
| 485 | |
| 486 | // Advanced panel toggle logic |
| 487 | const toggleAdvanced = () => { |
| 488 | showAdvanced = !showAdvanced; |
| 489 | advancedPanel.classList.toggle('hidden', !showAdvanced); |
| 490 | document.getElementById('advanced-btn-label').textContent = showAdvanced ? t('common.less') : t('common.advanced'); |
| 491 | }; |
| 492 | |
| 493 | // Add tools panel and advanced panel to container first before accessing their elements |
| 494 | container.appendChild(toolsPanel); |