Spaces:
Running
Running
Download script.js from dr-060/orderflow-pro-dashboard: direct link, hf CLI and curl.
- Browser
- Download file 766 Bytes
-
https://huggingface.co/spaces/dr-060/orderflow-pro-dashboard/resolve/main/script.js
- Command line
-
hf download hf://spaces/dr-060/orderflow-pro-dashboard/script.js
-
curl -L -o script.js https://huggingface.co/spaces/dr-060/orderflow-pro-dashboard/resolve/main/script.js
766 Bytes
| // Initialize tooltips | |
| document.addEventListener('DOMContentLoaded', () => { | |
| // Refresh feather icons after dynamic content loads | |
| feather.replace(); | |
| // Close mobile sidebar when clicking on nav items | |
| const navItems = document.querySelectorAll('[data-nav-item]'); | |
| navItems.forEach(item => { | |
| item.addEventListener('click', () => { | |
| const sidebar = document.querySelector('custom-sidebar'); | |
| if (window.innerWidth < 768) { | |
| sidebar.setAttribute('mobile-open', 'false'); | |
| } | |
| }); | |
| }); | |
| // Simulate loading data | |
| setTimeout(() => { | |
| const loadingRows = document.querySelectorAll('.loading-row'); | |
| loadingRows.forEach(row => row.remove()); | |
| }, 1500); | |
| }); |