Spaces:
Running
Running
fixed confirm password border in signup page
Browse files
polls/static/polls/signup.css
CHANGED
|
@@ -91,6 +91,7 @@ form{
|
|
| 91 |
border-radius: var(--button-radius);
|
| 92 |
background-color: white;
|
| 93 |
border: #00000040 solid 2px;
|
|
|
|
| 94 |
}
|
| 95 |
|
| 96 |
|
|
|
|
| 91 |
border-radius: var(--button-radius);
|
| 92 |
background-color: white;
|
| 93 |
border: #00000040 solid 2px;
|
| 94 |
+
transition: all 200ms linear;
|
| 95 |
}
|
| 96 |
|
| 97 |
|
polls/templates/polls/signup.html
CHANGED
|
@@ -52,6 +52,7 @@
|
|
| 52 |
<script>
|
| 53 |
|
| 54 |
confirm_password.addEventListener("keyup",()=>{
|
|
|
|
| 55 |
confirm_password.style.outline="none";
|
| 56 |
if(password.value!==confirm_password.value){
|
| 57 |
confirm_password.style.border="red solid 3px";
|
|
|
|
| 52 |
<script>
|
| 53 |
|
| 54 |
confirm_password.addEventListener("keyup",()=>{
|
| 55 |
+
if(confirm_password=="") return;
|
| 56 |
confirm_password.style.outline="none";
|
| 57 |
if(password.value!==confirm_password.value){
|
| 58 |
confirm_password.style.border="red solid 3px";
|