diff --git a/html/database.html b/html/database.html index 8b56031..1de359e 100755 --- a/html/database.html +++ b/html/database.html @@ -26,6 +26,10 @@ .offcanvas-backdrop { z-index: 1040; } + /* Highlight most recent data row with light green background */ + .most-recent-row { + background-color: #d4edda !important; + } @@ -54,8 +58,8 @@
-
-
+
+
Consulter la base de donnée
@@ -67,23 +71,20 @@
- - - - - - - - - - - + + + + + + + +
-
-
+
+
Télécharger les données
@@ -94,32 +95,28 @@
- - - - - - - - - - + + + + + +
-
-
+
+
Zone dangereuse

Attention: Cette action est irréversible!

- + Note: Les tables de configuration et horodatage seront préservées.
-
+
@@ -346,9 +343,11 @@ function get_data_sqlite(table, limit, download , startDate = "", endDate = "") tableHTML += ``; // Loop through rows and create table rows - rows.forEach(row => { + rows.forEach((row, index) => { let columns = row.replace(/[()]/g, "").split(", "); // Remove parentheses and split - tableHTML += ""; + // Add special class to first row (most recent data) + const rowClass = index === 0 ? ' class="most-recent-row"' : ''; + tableHTML += ``; if (table === "data_NPM") { tableHTML += `