Download script.js from thomaster109/jacquemus-clone-chic: direct link, hf CLI and curl.
- Browser
- Download file 484 Bytes
-
https://huggingface.co/spaces/thomaster109/jacquemus-clone-chic/resolve/main/script.js
- Command line
-
hf download hf://spaces/thomaster109/jacquemus-clone-chic/script.js
-
curl -L -o script.js https://huggingface.co/spaces/thomaster109/jacquemus-clone-chic/resolve/main/script.js
484 Bytes
| document.addEventListener('DOMContentLoaded', function() { | |
| // Mobile menu toggle functionality will be handled via navbar component | |
| // 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' | |
| }); | |
| }); | |
| }); | |
| }); |