Download script.js from M0zzi/erstelle-einen-profe-bckp78y: direct link, hf CLI and curl.
- Browser
- Download file 649 Bytes
-
https://huggingface.co/spaces/M0zzi/erstelle-einen-profe-bckp78y/resolve/main/script.js
- Command line
-
hf download hf://spaces/M0zzi/erstelle-einen-profe-bckp78y/script.js
-
curl -L -o script.js https://huggingface.co/spaces/M0zzi/erstelle-einen-profe-bckp78y/resolve/main/script.js
649 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' | |
| }); | |
| }); | |
| }); | |
| // Demo animation | |
| const demoButton = document.getElementById('demo-button'); | |
| if (demoButton) { | |
| demoButton.addEventListener('click', () => { | |
| alert('Demo functionality would be implemented here!'); | |
| }); | |
| } | |
| }); |