From 3d194eb2a0dec3224f0a382f88ef7e6d9c250477 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Sun, 16 Jul 2023 12:34:13 -0400 Subject: [PATCH] Added loading indicator to js. --- site/files.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/site/files.js b/site/files.js index 13a018d..0d93e76 100644 --- a/site/files.js +++ b/site/files.js @@ -2,10 +2,8 @@ const form = document.getElementById("schematic-form"); const resultContainer = document.getElementById("result-container"); form.onsubmit = async (e) => { e.preventDefault(); - resultContainer.innerHTML = ""; - console.log(e); + resultContainer.innerHTML = "

Uploading and extracting contents...

"; const data = new FormData(form); - console.log(data); try { const response = await fetch("/extracts", { method: "POST",