Download static/js/micro.js from Muxperts/Veda: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/spaces/Muxperts/Veda/resolve/main/static/js/micro.js
- Command line
-
hf download hf://spaces/Muxperts/Veda/static/js/micro.js
-
curl -L -o micro.js https://huggingface.co/spaces/Muxperts/Veda/resolve/main/static/js/micro.js
572 Bytes
| document.addEventListener("DOMContentLoaded", () => { | |
| const input = document.querySelector(".micro-search input"); | |
| const cards = document.querySelectorAll(".micro-card"); | |
| function filterCards() { | |
| const query = input.value.toLowerCase(); | |
| cards.forEach(card => { | |
| const text = card.innerText.toLowerCase(); | |
| card.style.display = text.includes(query) ? "flex" : "none"; | |
| }); | |
| } | |
| input.addEventListener("keyup", filterCards); | |
| document | |
| .querySelector(".micro-search-btn") | |
| .addEventListener("click", filterCards); | |
| }); | |