Spaces:
Running
Running
Download script.js from uioxs13/cybershield-sentinel: direct link, hf CLI and curl.
- Browser
- Download file 588 Bytes
-
https://huggingface.co/spaces/uioxs13/cybershield-sentinel/resolve/main/script.js
- Command line
-
hf download hf://spaces/uioxs13/cybershield-sentinel/script.js
-
curl -L -o script.js https://huggingface.co/spaces/uioxs13/cybershield-sentinel/resolve/main/script.js
588 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' | |
| }); | |
| }); | |
| }); | |
| // Dynamic year for footer | |
| const yearElement = document.querySelector('#current-year'); | |
| if (yearElement) { | |
| yearElement.textContent = new Date().getFullYear(); | |
| } | |
| }); |