refactor ciagl dalszy

This commit is contained in:
Mateusz Gruszczyński
2025-08-29 10:46:50 +02:00
parent 01b8ff656e
commit bc45c91d92
15 changed files with 1592 additions and 1492 deletions

11
static/js/stats.js Normal file
View File

@@ -0,0 +1,11 @@
document.addEventListener('input', (e) => {
const el = e.target.closest('[data-action="filter-table"]');
if (!el) return;
const table = document.querySelector(el.getAttribute('data-target') || '');
if (!table) return;
const q = (el.value || '').toLowerCase();
table.querySelectorAll('tbody tr').forEach(tr => {
const text = (tr.innerText || tr.textContent || '').toLowerCase();
tr.style.display = text.includes(q) ? '' : 'none';
});
});