Download script.js from long4bttdh/nextjs-coding-wonderland: direct link, hf CLI and curl.
- Browser
- Download file 820 Bytes
-
https://huggingface.co/spaces/long4bttdh/nextjs-coding-wonderland/resolve/main/script.js
- Command line
-
hf download hf://spaces/long4bttdh/nextjs-coding-wonderland/script.js
-
curl -L -o script.js https://huggingface.co/spaces/long4bttdh/nextjs-coding-wonderland/resolve/main/script.js
820 Bytes
| document.addEventListener('DOMContentLoaded', () => { | |
| // Initialize Vanta.js background | |
| VANTA.NET({ | |
| el: "#vanta-background", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0x7c3aed, | |
| backgroundColor: 0xf9fafb, | |
| points: 12.00, | |
| maxDistance: 22.00, | |
| spacing: 18.00 | |
| }); | |
| // 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' | |
| }); | |
| }); | |
| }); | |
| }); |