Download script.js from monsefyoussef/react-native-web-wizard: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/spaces/monsefyoussef/react-native-web-wizard/resolve/main/script.js
- Command line
-
hf download hf://spaces/monsefyoussef/react-native-web-wizard/script.js
-
curl -L -o script.js https://huggingface.co/spaces/monsefyoussef/react-native-web-wizard/resolve/main/script.js
483 Bytes
| 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' | |
| }); | |
| }); | |
| }); | |
| // Mobile menu toggle functionality will be handled by the navbar component | |
| }); |