diff --git a/templates/test.html b/templates/test.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/tracking.html b/templates/tracking.html index 98df0d2..ecf0e5c 100644 --- a/templates/tracking.html +++ b/templates/tracking.html @@ -20,7 +20,8 @@ - + + @@ -35,7 +36,7 @@ - + @@ -51,136 +52,847 @@

Select A Device You Would Like To Track


- - - - - - - - - - - -
Device NameFrequencySignal Strength
-
- -
- - - - - - - - - -
- - -
+ + const clearButton = document.getElementById('clear-selection-button'); + clearButton.addEventListener('click', function () { + const tableBody = document.getElementById('data-table').getElementsByTagName('tbody')[0]; + const selectedRow = tableBody.getElementsByClassName('selected-row')[0]; + if (selectedRow) { + selectedRow.classList.remove('selected-row'); + } + + // Show all rows + const allRows = tableBody.getElementsByTagName('tr'); + for (let i = 0; i < allRows.length; i++) { + allRows[i].classList.remove('hidden-row'); + } + + // Hide the "Clear Filter" button + clearButton.style.display = 'none'; + + selectedDeviceName = null; // Reset the global variable when selection is cleared + updateSelectedDataDisplay(); // Clear the selected data display + }); + + // Initial update of the table + updateTableData(); + + // Periodically update the table every second + setInterval(updateTableData, 1000); + + + + + +
+ +
+
+
+

433 MHz LoRa Transceiver


+
+
+ +
+ + + +
+

Status: Checking...

+
+
+
+
+ + + + + + + + + +
+
+
+ + +
+

+
+
+
+
+

868 MHz LoRa Transceiver


+
+
+
+ + + +
+

Status: Checking...

+
+
+
+
+
+ + + + + + + + + + + +
+
+ + +
+

+ +
+
+
+
+

915 MHZ LoRa Transceiver


+
+
+
+ + + +
+

Status: Checking...

+
+
+
+
+
+ + + + + + + + +
+
+ + +
+ + + + + + + +