Spaces:
Running
Running
Download script.js from Madhu2191/webinar-countdown-pro: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/Madhu2191/webinar-countdown-pro/resolve/main/script.js
- Command line
-
hf download hf://spaces/Madhu2191/webinar-countdown-pro/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Madhu2191/webinar-countdown-pro/resolve/main/script.js
447 Bytes
| // Main script file for shared functionality | |
| document.addEventListener('DOMContentLoaded', () => { | |
| // 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' | |
| }); | |
| }); | |
| }); | |
| }); |