From eee6d27375aebc093506a21b12e9eb19aef3a549 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 6 Jan 2023 21:53:54 -0500 Subject: [PATCH] Finesse --- www/public/main.css | 14 ++++++++++---- www/public/main.js | 9 +++++---- www/views/index.html | 25 ++++++++++++++++++++++++- 3 files changed, 39 insertions(+), 9 deletions(-) diff --git a/www/public/main.css b/www/public/main.css index 9a50d86..f2cc308 100644 --- a/www/public/main.css +++ b/www/public/main.css @@ -18,10 +18,6 @@ html, body { color: inherit; } -#status { - text-align: center; -} - #safeties { text-align: center; } @@ -97,3 +93,13 @@ html, body { border-top-right-radius: 0px; border-bottom-right-radius: 0px; } + +table { + margin: 0 auto; +} + +table, th, td { + border: 1px solid; + border-collapse: collapse; + padding: 3px; +} \ No newline at end of file diff --git a/www/public/main.js b/www/public/main.js index daf95df..4c3d2fb 100644 --- a/www/public/main.js +++ b/www/public/main.js @@ -36,10 +36,11 @@ function refreshData() { }); // Get the elements we need to update - const augerStatus = document.getElementById('auger-status'); - const augerOn = document.getElementById('auger-on'); - const augerOff = document.getElementById('auger-off'); - const feedRate = document.getElementById('feed-rate'); + const statusTable = document.getElementById('status-table'); + const augerStatus = statusTable.rows[0].cells[1]; + const augerOn = statusTable.rows[0].cells[3]; + const augerOff = statusTable.rows[1].cells[3]; + const feedRate = statusTable.rows[1].cells[1]; // Get the config file const config = readJSON('./config.json'); diff --git a/www/views/index.html b/www/views/index.html index 1eb26ea..9e25a05 100644 --- a/www/views/index.html +++ b/www/views/index.html @@ -7,7 +7,30 @@ <%- include('trial.html') -%>
Hestia Web Portal
-
Auger: | On Time: | Off Time: | Feed Rate:
+
+ + + + + + + + + + + + + + + +
AugerOn Time
Feed RateOff Time
+
+ + +