diff --git a/index.html b/index.html index eb64d79..1931222 100644 --- a/index.html +++ b/index.html @@ -47,10 +47,25 @@ - - search - BTC/USD - chevron_right + + + + menu + + + + + search + BTC/USD + chevron_right + + + + + search + BTC/USD + chevron_right + @@ -243,8 +258,10 @@ - - + + + menu + diff --git a/js/app.js b/js/app.js index 839bb38..a164d98 100644 --- a/js/app.js +++ b/js/app.js @@ -32,11 +32,23 @@ window.updateIndicatorCandles = drawIndicatorsOnChart; window.IndicatorRegistry = IndicatorRegistry; document.addEventListener('DOMContentLoaded', async () => { - // Attach toggle sidebar event listener + // Attach toggle sidebar event listeners const toggleBtn = document.getElementById('sidebarToggleBtn'); if (toggleBtn) { toggleBtn.addEventListener('click', toggleSidebar); } + + // Mobile menu button + const mobileMenuBtn = document.getElementById('mobileMenuBtn'); + if (mobileMenuBtn) { + mobileMenuBtn.addEventListener('click', (e) => { + e.stopPropagation(); + const sidebar = document.getElementById('rightSidebar'); + if (sidebar) { + sidebar.classList.toggle('collapsed'); + } + }); + } // Initialize timezone selector const timezoneSelect = document.getElementById('timezoneSelect');