Download site.js from 0001AMA/SMOS: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/spaces/0001AMA/SMOS/resolve/main/site.js
- Command line
-
hf download hf://spaces/0001AMA/SMOS/site.js
-
curl -L -o site.js https://huggingface.co/spaces/0001AMA/SMOS/resolve/main/site.js
378 Bytes
| (function () { | |
| const details = document.querySelector(".nav-modules"); | |
| if (!details) return; | |
| document.addEventListener("click", (event) => { | |
| if (!details.open) return; | |
| if (details.contains(event.target)) return; | |
| details.open = false; | |
| }); | |
| document.addEventListener("keydown", (event) => { | |
| if (event.key === "Escape") details.open = false; | |
| }); | |
| })(); | |