From 96d84275269b970ab5c67c209036e755eed5295c Mon Sep 17 00:00:00 2001 From: rain Date: Wed, 24 May 2023 13:25:36 -0500 Subject: [PATCH] Added some javascript to use later for a scrolling count of results --- app/static/js/table.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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