From 65e327c83dec24d51324c73f8a00193af1202eb9 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 12 Sep 2024 12:32:59 -0400 Subject: [PATCH] Remove form --- mccs-it/thermal/public/index.html | 33 +++++++++++++------------------ 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/mccs-it/thermal/public/index.html b/mccs-it/thermal/public/index.html index 542e60b..7be03a9 100644 --- a/mccs-it/thermal/public/index.html +++ b/mccs-it/thermal/public/index.html @@ -44,20 +44,19 @@ -
-
- - -
+
+ + +
-
- -
- +
+ +
@@ -109,12 +108,8 @@ .catch(error => alert('Error: ' + error)); }); - document.getElementById('printTempPw').addEventListener('submit', (event) => { - event.preventDefault(); // Prevent the form from submitting normally - - // Get the form data - const formData = new FormData(event.target); - const password = formData.get('password'); + document.getElementById('printTempPw').addEventListener('click', (event) => { + const password = document.getElementById('password').value; // Send a POST request with the form data to the server fetch('/print-temp-pw', {