mirror of
https://github.com/rvtr/wiki.git
synced 2025-06-18 11:05:39 -04:00

TWiLight wiki + NightScript's DS Index in English and a couple pages in Japanese for testing
12 lines
333 B
JavaScript
12 lines
333 B
JavaScript
let item
|
|
function search(query) {
|
|
Array.from(document.getElementById("card-container").children).forEach(function(r) {
|
|
let card = r.children[0];
|
|
for(let item in card.dataset) {
|
|
if(card.dataset[item].toLowerCase().includes(query.toLowerCase()))
|
|
return r.classList.remove("d-none");
|
|
}
|
|
r.classList.add("d-none");
|
|
});
|
|
}
|