Spaces:
Runtime error
Runtime error
Download static/inline.js from enemy7/spam-detetor: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/enemy7/spam-detetor/resolve/main/static/inline.js
- Command line
-
hf download hf://spaces/enemy7/spam-detetor/static/inline.js
-
curl -L -o inline.js https://huggingface.co/spaces/enemy7/spam-detetor/resolve/main/static/inline.js
1.01 kB
| (function disableTransitionOnLoad() { | |
| document.addEventListener('DOMContentLoaded', function () { | |
| var node = document.querySelector('.preload'); | |
| if (node) { | |
| node.classList.remove('preload'); | |
| } | |
| }); | |
| })(); | |
| function scrollFunction() { | |
| if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { | |
| document.getElementById('navbar').classList.add('navbar-shadow'); | |
| } else { | |
| document.getElementById('navbar').classList.remove('navbar-shadow'); | |
| } | |
| } | |
| if (document.getElementById('navbar') !== null) { | |
| window.onscroll = function () { | |
| scrollFunction(); | |
| }; | |
| } | |
| function initAos() { | |
| if (typeof AOS !== 'undefined') { | |
| var aosCSS = document.createElement('link'); | |
| aosCSS.setAttribute('rel', 'stylesheet'); | |
| aosCSS.setAttribute('href', '/assets/css/lib/aos.css'); | |
| document.body.appendChild(aosCSS); | |
| return AOS.init(); | |
| } | |
| window.setTimeout(initAos, 100); | |
| } | |
| initAos(); |