From 631f492172c34b77d6624a11455f43c3cbdcaea3 Mon Sep 17 00:00:00 2001 From: Rabel Mervin Date: Tue, 28 May 2024 22:16:50 +0530 Subject: [PATCH] added functionality --- src/frontend/index.html | 18 +++++++++++++++++- src/frontend/script.js | 7 ++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/frontend/index.html b/src/frontend/index.html index 5e7c820..3286ce8 100644 --- a/src/frontend/index.html +++ b/src/frontend/index.html @@ -22,6 +22,8 @@ } + + @@ -62,10 +64,24 @@ + + + + diff --git a/src/frontend/script.js b/src/frontend/script.js index 94ffaf6..6329f90 100644 --- a/src/frontend/script.js +++ b/src/frontend/script.js @@ -27,6 +27,7 @@ function useConfig(config) { document.getElementById("reportForm").addEventListener("submit", function(event) { event.preventDefault(); // Prevent default form submission + // Get the value of the location input field var location = document.getElementById("curlInput").value; @@ -94,4 +95,8 @@ document.addEventListener("submit", function() { } // Call the function to fetch data and update HTML content when the form is submitted fetchDataAndUpdateHTML(); -}); \ No newline at end of file +}); + + + +