From a3d21c3b84be42a49306958b5fb886408d27e0db Mon Sep 17 00:00:00 2001 From: ryansurf Date: Mon, 27 May 2024 15:10:58 -0700 Subject: [PATCH] move js - - @@ -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