what happened to all the main links on the original website? don't remove them, i asked you to redesign them so that they are in alignment with said principles
810e258 verified Download script.js from dhruvprashbtech24/finfusion-flowtastic: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/spaces/dhruvprashbtech24/finfusion-flowtastic/resolve/main/script.js
- Command line
-
hf download hf://spaces/dhruvprashbtech24/finfusion-flowtastic/script.js
-
curl -L -o script.js https://huggingface.co/spaces/dhruvprashbtech24/finfusion-flowtastic/resolve/main/script.js
1.12 kB
| // Progressive disclosure implementation | |
| document.querySelectorAll('.disclosure-trigger').forEach(trigger => { | |
| trigger.addEventListener('click', () => { | |
| const content = trigger.nextElementSibling; | |
| content.style.maxHeight = content.style.maxHeight === '0px' ? `${content.scrollHeight}px` : '0px'; | |
| }); | |
| }); | |
| // Smooth scrolling for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| // Responsive table functionality | |
| function makeTableResponsive() { | |
| document.querySelectorAll('table').forEach(table => { | |
| const wrapper = document.createElement('div'); | |
| wrapper.className = 'table-responsive'; | |
| wrapper.style.overflowX = 'auto'; | |
| table.parentNode.insertBefore(wrapper, table); | |
| wrapper.appendChild(table); | |
| }); | |
| } | |
| document.addEventListener('DOMContentLoaded', () => { | |
| makeTableResponsive(); | |
| feather.replace(); | |
| }); |