Spaces:
Running
Running
Download script.js from rtik007/aiaas-visualizer-pro: direct link, hf CLI and curl.
- Browser
- Download file 845 Bytes
-
https://huggingface.co/spaces/rtik007/aiaas-visualizer-pro/resolve/main/script.js
- Command line
-
hf download hf://spaces/rtik007/aiaas-visualizer-pro/script.js
-
curl -L -o script.js https://huggingface.co/spaces/rtik007/aiaas-visualizer-pro/resolve/main/script.js
845 Bytes
| document.addEventListener('DOMContentLoaded', () => { | |
| // Animate cards on scroll | |
| const observer = new IntersectionObserver((entries) => { | |
| entries.forEach(entry => { | |
| if (entry.isIntersecting) { | |
| entry.target.classList.add('animate-fade-in'); | |
| } | |
| }); | |
| }, { threshold: 0.1 }); | |
| document.querySelectorAll('.service-card, infographic-card').forEach(card => { | |
| observer.observe(card); | |
| }); | |
| // Feather icons replacement | |
| feather.replace(); | |
| }); | |
| // Helper function for dynamic content | |
| function toggleAccordion(element) { | |
| element.classList.toggle('active'); | |
| const content = element.nextElementSibling; | |
| if (content.style.maxHeight) { | |
| content.style.maxHeight = null; | |
| } else { | |
| content.style.maxHeight = content.scrollHeight + "px"; | |
| } | |
| } |