diff --git a/src/frontend/index.html b/src/frontend/index.html index 3286ce8..5514089 100644 --- a/src/frontend/index.html +++ b/src/frontend/index.html @@ -22,8 +22,6 @@ } - - @@ -67,21 +65,8 @@ type="button" id ="cancel" > Cancel - - - - @@ -91,6 +76,6 @@ - + \ No newline at end of file diff --git a/src/frontend/script.js b/src/frontend/script.js index 6329f90..f5ebbf6 100644 --- a/src/frontend/script.js +++ b/src/frontend/script.js @@ -24,6 +24,11 @@ function useConfig(config) { ipAddress = config["server"]["ip_address"]; } +const cancelbutton = document.getElementById("cancel"); +cancelbutton.addEventListener("click",function(){ + document.getElementById("curlInput").value =""; +}); + document.getElementById("reportForm").addEventListener("submit", function(event) { event.preventDefault(); // Prevent default form submission