From a339e910c40450e1640958a171c6ffcffa2b5151 Mon Sep 17 00:00:00 2001 From: Alice Sedgwick Date: Sat, 16 Nov 2024 23:02:56 -0500 Subject: [PATCH] Asking ChatGPT for help --- ui/general/health.html | 15 ++++++++++++++- ui/general/health.js | 6 +++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ui/general/health.html b/ui/general/health.html index 867dea5..e6656f8 100644 --- a/ui/general/health.html +++ b/ui/general/health.html @@ -7,6 +7,9 @@ + + + @@ -85,8 +88,18 @@ +
- + diff --git a/ui/general/health.js b/ui/general/health.js index 56ed570..c75f668 100644 --- a/ui/general/health.js +++ b/ui/general/health.js @@ -12,6 +12,9 @@ document.onload = initPage(); document.getElementById("save").addEventListener("click", saveSettings); +const dropdownElement = document.getElementById('dropdownMenuButton1'); +new bootstrap.Dropdown(dropdownElement); + // Function to initialize the page function initPage() { // TODO: Replace /home/spiri/services with some root level path @@ -78,7 +81,8 @@ function saveSettings() { // Restart drone service function displayDroneTable() { - upaate table + // upaate table + ; } function addDropDown(box, pairs, defaultValue) {