Spaces:
Running
Running
Download script.js from Gadotey01/ink-thread-tees: direct link, hf CLI and curl.
- Browser
- Download file 494 Bytes
-
https://huggingface.co/spaces/Gadotey01/ink-thread-tees/resolve/main/script.js
- Command line
-
hf download hf://spaces/Gadotey01/ink-thread-tees/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Gadotey01/ink-thread-tees/resolve/main/script.js
494 Bytes
| // Shared JavaScript across all pages | |
| document.addEventListener('DOMContentLoaded', () => { | |
| console.log('Pawsome Pet Paradise loaded!'); | |
| // 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' | |
| }); | |
| }); | |
| }); | |
| }); |