Spaces:
Running
Running
Download script.js from RONY132/streamsphere-saga: direct link, hf CLI and curl.
- Browser
- Download file 714 Bytes
-
https://huggingface.co/spaces/RONY132/streamsphere-saga/resolve/main/script.js
- Command line
-
hf download hf://spaces/RONY132/streamsphere-saga/script.js
-
curl -L -o script.js https://huggingface.co/spaces/RONY132/streamsphere-saga/resolve/main/script.js
714 Bytes
| document.addEventListener('DOMContentLoaded', () => { | |
| // Initialize lightbox functionality | |
| const images = document.querySelectorAll('img'); | |
| images.forEach(img => { | |
| img.addEventListener('click', () => { | |
| // In a real implementation, this would open a lightbox/modal | |
| console.log('Image clicked:', img.src); | |
| }); | |
| }); | |
| // Smooth scroll for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| }); |