Download script.js from kizzlebot/colorful-void-explorer: direct link, hf CLI and curl.
- Browser
- Download file 832 Bytes
-
https://huggingface.co/spaces/kizzlebot/colorful-void-explorer/resolve/main/script.js
- Command line
-
hf download hf://spaces/kizzlebot/colorful-void-explorer/script.js
-
curl -L -o script.js https://huggingface.co/spaces/kizzlebot/colorful-void-explorer/resolve/main/script.js
832 Bytes
| document.addEventListener('DOMContentLoaded', () => { | |
| // Add any interactive elements here | |
| const cards = document.querySelectorAll('.bg-white'); | |
| cards.forEach(card => { | |
| card.addEventListener('mouseenter', () => { | |
| card.querySelector('h3').classList.add('text-primary-600'); | |
| }); | |
| card.addEventListener('mouseleave', () => { | |
| card.querySelector('h3').classList.remove('text-primary-600'); | |
| }); | |
| }); | |
| // Smooth scroll for any anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| }); |