Download script.js from Soha85/AI_Review: direct link, hf CLI and curl.
- Browser
- Download file 610 Bytes
-
https://huggingface.co/spaces/Soha85/AI_Review/resolve/main/script.js
- Command line
-
hf download hf://spaces/Soha85/AI_Review/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Soha85/AI_Review/resolve/main/script.js
610 Bytes
| function toggleCard(element) { | |
| // Check if clicked card is already expanded | |
| const isExpanded = element.classList.contains('expanded'); | |
| // Close all other cards first (Accordion behavior) | |
| document.querySelectorAll('.era-card').forEach(card => { | |
| card.classList.remove('expanded'); | |
| }); | |
| // If it wasn't expanded, expand it now | |
| if (!isExpanded) { | |
| element.classList.add('expanded'); | |
| // Smooth scroll to the expanded card | |
| setTimeout(() => { | |
| element.scrollIntoView({ behavior: 'smooth', block: 'center' }); | |
| }, 300); | |
| } | |
| } |