diff --git a/app/static/js/table.js b/app/static/js/table.js index 828f4a3..b327d01 100644 --- a/app/static/js/table.js +++ b/app/static/js/table.js @@ -13,4 +13,8 @@ document.querySelector("#ports").addEventListener("keyup", (event) => { if (event.key === "Enter") { filter_ports(event.srcElement.value); } -}); \ No newline at end of file +}); + +function count_rows() { + return document.querySelectorAll('tr:not([style*="display:none"]):not([style*="display: none"])').length; +} \ No newline at end of file