Spaces:
Running
Running
Download script.js from authorizedcabal/bytebard-nexus: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/spaces/authorizedcabal/bytebard-nexus/resolve/main/script.js
- Command line
-
hf download hf://spaces/authorizedcabal/bytebard-nexus/script.js
-
curl -L -o script.js https://huggingface.co/spaces/authorizedcabal/bytebard-nexus/resolve/main/script.js
601 Bytes
| // 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' | |
| }); | |
| }); | |
| }); | |
| // Form submission handler | |
| const contactForm = document.querySelector('form'); | |
| if (contactForm) { | |
| contactForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| alert('Thank you for your message! I will get back to you soon.'); | |
| contactForm.reset(); | |
| }); | |
| } |