User:76561197995296537/common.js: Difference between revisions

From He is Coming Official Wiki
Created page with "document.addEventListener("DOMContentLoaded", function () { const search = document.getElementById("itemSearch"); if (!search) return; search.addEventListener("keyup", function () { const filter = search.value.toLowerCase(); const rows = document.querySelectorAll("#itemTable tr"); rows.forEach((row, index) => { if (index === 0) return; const text = row.textContent.toLowerCase(); row.style.di..."
 
m Replaced content with "alert("JS LOADED");"
Tag: Replaced
 
Line 1: Line 1:
document.addEventListener("DOMContentLoaded", function () {
alert("JS LOADED");
 
    const search = document.getElementById("itemSearch");
 
    if (!search) return;
 
    search.addEventListener("keyup", function () {
 
        const filter = search.value.toLowerCase();
 
        const rows = document.querySelectorAll("#itemTable tr");
 
        rows.forEach((row, index) => {
 
            if (index === 0) return;
 
            const text = row.textContent.toLowerCase();
 
            row.style.display =
                text.includes(filter)
                ? ""
                : "none";
 
        });
 
    });
 
});

Latest revision as of 14:21, 15 May 2026

alert("JS LOADED");