Spaces:
Running
Running
Download script.js from avgads/memory-lift: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/avgads/memory-lift/resolve/main/script.js
- Command line
-
hf download hf://spaces/avgads/memory-lift/script.js
-
curl -L -o script.js https://huggingface.co/spaces/avgads/memory-lift/resolve/main/script.js
438 Bytes
| // Initialize any global functionality | |
| document.addEventListener('DOMContentLoaded', () => { | |
| // Smooth scroll for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| }); |