mirror of
https://github.com/zyqunix/tools.git
synced 2025-07-05 22:10:31 +02:00
15 lines
No EOL
523 B
JavaScript
15 lines
No EOL
523 B
JavaScript
function filterSkins() {
|
|
const input = document.getElementById("searchInput").value.toLowerCase();
|
|
const rows = document.querySelectorAll("tbody tr");
|
|
|
|
rows.forEach(row => {
|
|
const name = row.querySelector("td span")?.textContent.toLowerCase() || "";
|
|
const id = row.querySelector("td code")?.textContent.toLowerCase() || "";
|
|
|
|
if (name.includes(input) || id.includes(input)) {
|
|
row.style.display = "";
|
|
} else {
|
|
row.style.display = "none";
|
|
}
|
|
});
|
|
} |