First commit
This commit is contained in:
32
application/user/signup/signup.passwordCheck.js
Normal file
32
application/user/signup/signup.passwordCheck.js
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
import inputPassword from '/elements/inputPassword.js';
|
||||
|
||||
export default class signupPasswordCheck extends inputPassword{
|
||||
|
||||
useCustomElement = true;
|
||||
|
||||
async keyup( event ){
|
||||
|
||||
this.value = event.target.value;
|
||||
|
||||
if( this.value == this.parent.password.value ) {
|
||||
|
||||
this.border = "#28a745";
|
||||
|
||||
this.color = "#495057";
|
||||
|
||||
this.shadow = "0px 0px 4px 2px #28a745";
|
||||
|
||||
} else {
|
||||
|
||||
this.border = "1px solid #dc3545";
|
||||
|
||||
this.color = "black";
|
||||
|
||||
this.shadow = "0px 0px 4px 2px #dc3545";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user