INNER CODE UNIT · Python

setupTableSearch

infobyte/emploleaks · emploleaks.py:1105

function setupTableSearch(inputId, tableId) {{
    const input = document.getElementById(inputId);
    const table = document.getElementById(tableId);
    if (!input || !table) return;
    input.addEventListener('input', () => {{
        const q = input.value.toLowerCase();
        table.querySelectorAll('tbody tr').forEach(row => {{
            row.classList.toggle('hidden', q && !row.textContent.toLowerCase().includes(q));
        }});
    }});
}}
setupTableSearch('breach-search', 'breach-table');
setupTableSearch('cred-email-search', 'cred-email-table');
setupTableSearch('cred-user-search', 'cred-user-table');
setupTableSearch('secrets-search', 'secrets-table');

/* Profiling search */
const profSearch = document.getElementById('profiling-search');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…