Last active
September 19, 2025 16:52
-
-
Save hishaamn/e7b1942b61c6660cba695d3f2f92285f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| window.toggleOverlayPanel = function() {{ | |
| var panel = document.getElementById('scxmPanel'); | |
| if (!panel) return; | |
| var isOpen = panel.classList.toggle('open'); | |
| try {{ | |
| panel.setAttribute('aria-hidden', !isOpen); | |
| localStorage.setItem('scxmPanelOpen', isOpen ? '1' : '0'); | |
| }} catch(e) {{ | |
| console.log(e); | |
| }} | |
| }}; | |
| (function(){{ | |
| var btn = document.getElementById('openPanel'); | |
| if (btn) {{ | |
| btn.addEventListener('click', function() {{ | |
| window.toggleOverlayPanel(); | |
| }}); | |
| }} | |
| try {{ | |
| var prev = localStorage.getItem('scxmPanelOpen'); | |
| if (prev === '1') {{ | |
| var panel = document.getElementById('scxmPanel'); | |
| if (panel) panel.classList.add('open'); | |
| }} | |
| }} catch(e) {{ | |
| console.log(e); | |
| }} | |
| }})(); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment