Download static/script.js from Neurolingua/Aiducation-Edtech-GenAI: direct link, hf CLI and curl.
- Browser
- Download file 547 Bytes
-
https://huggingface.co/spaces/Neurolingua/Aiducation-Edtech-GenAI/resolve/main/static/script.js
- Command line
-
hf download hf://spaces/Neurolingua/Aiducation-Edtech-GenAI/static/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Neurolingua/Aiducation-Edtech-GenAI/resolve/main/static/script.js
547 Bytes
| document.addEventListener('DOMContentLoaded', function() { | |
| var header = document.querySelector('.main-page-header'); | |
| var content = document.querySelector('.content'); | |
| var observer = new IntersectionObserver(function(entries) { | |
| entries.forEach(function(entry) { | |
| if (!entry.isIntersecting) { | |
| header.style.display = 'none'; | |
| } else { | |
| header.style.display = 'block'; | |
| } | |
| }); | |
| }, { threshold: 0 }); | |
| observer.observe(content); | |
| }); | |