mirror of
https://github.com/SinTan1729/chhoto-url
synced 2025-03-14 05:04:40 -05:00
fix: Hide the disabled wrong password text area in dialog
This commit is contained in:
parent
e8faf660f4
commit
0d58e626a4
2 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,7 @@
|
|||
<p>Please enter password to access this website</p>
|
||||
<input type="password" id="password" />
|
||||
<button class="pure-button pure-button-primary" value="default">Log in</button>
|
||||
<p id="wrong-pass"> </p>
|
||||
<p id="wrong-pass" hidden> </p>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue