From fa15d8dcf691fb3a724c2583e3b143e45c4778d4 Mon Sep 17 00:00:00 2001 From: Saba Date: Sat, 27 Nov 2021 10:52:54 -0500 Subject: [PATCH] Rename readWriteConfig to just config.js --- views/config.html | 4 ++-- views/scripts/{readWriteConfig.js => config.js} | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) rename views/scripts/{readWriteConfig.js => config.js} (76%) diff --git a/views/config.html b/views/config.html index cec508d8..61511e9e 100644 --- a/views/config.html +++ b/views/config.html @@ -4,10 +4,10 @@ - - + \ No newline at end of file diff --git a/views/scripts/readWriteConfig.js b/views/scripts/config.js similarity index 76% rename from views/scripts/readWriteConfig.js rename to views/scripts/config.js index 36b3fbc8..337aa72d 100644 --- a/views/scripts/readWriteConfig.js +++ b/views/scripts/config.js @@ -1,8 +1,10 @@ var showConfig = document.getElementById("show-config"); +var configForm = document.getElementById("config-form"); showConfig.addEventListener("click", () => { fetch("/config") .then(response => response.json()) .then(data => { + configForm.style.display = "block"; for (let key in data) { console.log('key: ', key); console.log(data[key]);