diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-03 10:46:58 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-03 10:46:58 +0300 |
| commit | c397aabc09d35f95418351776cd73305a4c28fba (patch) | |
| tree | dd6f2d9e99073a119718f9817f2b55b62075c867 /web/js/app.js | |
| parent | 0f18fcd2dd98c9261f8c8ce1be1d895184567357 (diff) | |
Fix: Sidebar visibility on page load
Diffstat (limited to 'web/js/app.js')
| -rw-r--r-- | web/js/app.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/js/app.js b/web/js/app.js index 76436bb..1aab5ec 100644 --- a/web/js/app.js +++ b/web/js/app.js @@ -984,6 +984,14 @@ function initHelp() { modal?.addEventListener('click', (e) => { if (e.target === modal) modal.classList.remove('open'); }); } +function toggleSidebar() { + const sidebar = document.getElementById('sidebar'); + const page = document.querySelector('.page'); + if (!sidebar) return; + sidebar.classList.toggle('open'); + page?.classList.toggle('has-sidebar', sidebar.classList.contains('open')); +} + function toggleHelp() { const modal = document.getElementById('help-modal'); if (!modal) return; |
