Spaces:
Running
Running
Download script.js from SADSADSADASD/aws: direct link, hf CLI and curl.
- Browser
- Download file 276 Bytes
-
https://huggingface.co/spaces/SADSADSADASD/aws/resolve/main/script.js
- Command line
-
hf download hf://spaces/SADSADSADASD/aws/script.js
-
curl -L -o script.js https://huggingface.co/spaces/SADSADSADASD/aws/resolve/main/script.js
276 Bytes
| // 页面滚动时导航栏添加阴影 | |
| window.addEventListener('scroll', function() { | |
| const header = document.querySelector('header'); | |
| if (window.scrollY > 0) { | |
| header.classList.add('shadow'); | |
| } else { | |
| header.classList.remove('shadow'); | |
| } | |
| }); | |