diff --git a/static/admin.js b/static/admin.js
index f997f1f..fa6002b 100644
--- a/static/admin.js
+++ b/static/admin.js
@@ -55,7 +55,7 @@ async function getTables() {
}
async function doLogin() {
- const adminUsrInput = document.getElementById("input_admin_usr");
+ const adminUsrInput = document.getElementById("name_entry");
const adminPassInput = document.getElementById("input_admin_pass");
if (adminUsrInput && adminPassInput) {
@@ -69,6 +69,13 @@ async function doLogin() {
}
}
+function showAdminModal(show) {
+ const modal = document.getElementById("admin_modal")
+ if (modal) {
+ modal.style.display = show ? "block" : "none";
+ }
+}
+
async function getAdminToken(user, pass) {
const headers = new Headers();
headers.set('Authorization', 'Basic ' + btoa(user + ":" + pass));
diff --git a/static/index.html b/static/index.html
index 4206766..2b3b1dc 100644
--- a/static/index.html
+++ b/static/index.html
@@ -5,24 +5,22 @@
Felt
-
-
-