function filterLogs(){var cat=document.getElementById('log-filter').value;var search=document.getElementById('log-search').value.toLowerCase();var rows=document.querySelectorAll('#log-table tbody tr');for(var i=0;i<rows.length;i++){var r=rows[i];var show=true;if(cat&&r.getAttribute('data-cat')!==cat)show=false;if(search&&r.textContent.toLowerCase().indexOf(search)===-1)show=false;r.style.display=show?'':'none'}}