From beef00e14ae061e6678a6a7ebce6e5ce4ebdf078 Mon Sep 17 00:00:00 2001 From: Alice Sedgwick Date: Mon, 11 Nov 2024 13:04:12 -0500 Subject: [PATCH] Trying to get values to appear for bootstrap dropdowns --- ui/general/health.html | 19 +++++++++++++++---- ui/general/health.js | 18 +++++++++++++++++- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/ui/general/health.html b/ui/general/health.html index 2c7510c..867dea5 100644 --- a/ui/general/health.html +++ b/ui/general/health.html @@ -5,6 +5,7 @@ Health Status + @@ -62,17 +63,27 @@ +
diff --git a/ui/general/health.js b/ui/general/health.js index 36c86f9..ebb7343 100644 --- a/ui/general/health.js +++ b/ui/general/health.js @@ -20,12 +20,28 @@ function initPage() { } function handleSelect(account) { - var drone1Table = "
test
"; + var drone1Table = "
Drone1
"; + var drone2Table = "
Drone2
"; + var drone3Table = "
Drone3/td>
"; + var drone4Table = "
Drone4
"; + var drone5Table = "
Drone5
"; switch(account) { case "Drone1": document.getElementById("myTableContainer").innerHTML = drone1Table break; + case "Drone2": + document.getElementById("myTableContainer").innerHTML = drone2Table + break; + case "Drone3": + document.getElementById("myTableContainer").innerHTML = drone3Table + break; + case "Drone4": + document.getElementById("myTableContainer").innerHTML = drone4Table + break; + case "Drone5": + document.getElementById("myTableContainer").innerHTML = drone5Table + break; } }