From 0d58e626a4bae560e221ad4100364a19175f096d Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Tue, 4 Mar 2025 00:11:34 -0600 Subject: [PATCH] fix: Hide the disabled wrong password text area in dialog --- resources/index.html | 2 +- resources/static/script.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/index.html b/resources/index.html index 6bb9eee..439d9d6 100644 --- a/resources/index.html +++ b/resources/index.html @@ -78,7 +78,7 @@

Please enter password to access this website

-

 

+ diff --git a/resources/static/script.js b/resources/static/script.js index 82c58f9..8911aad 100644 --- a/resources/static/script.js +++ b/resources/static/script.js @@ -239,6 +239,7 @@ const submitLogin = () => { const wrongPassBox = document.getElementById("wrong-pass"); wrongPassBox.innerHTML = "Wrong password!"; wrongPassBox.style.color = "light-dark(red, #ff1a1a)"; + wrongPassBox.hidden = false; password.focus(); } })