auto update pw on option change
This commit is contained in:
parent
74d808ea3a
commit
39288102df
1 changed files with 14 additions and 0 deletions
|
@ -22,6 +22,20 @@ class PasswordGenerator extends HTMLElement {
|
|||
|
||||
pwlen.oninput = () => {
|
||||
pwlenSpan.innerText = pwlen.value;
|
||||
button.click();
|
||||
}
|
||||
|
||||
includeNum.onchange = () => {
|
||||
button.click();
|
||||
}
|
||||
includeBigChar.onchange = () => {
|
||||
button.click();
|
||||
}
|
||||
includeSmallChar.onchange = () => {
|
||||
button.click();
|
||||
}
|
||||
includeSpecialChat.onchange = () => {
|
||||
button.click();
|
||||
}
|
||||
|
||||
button.onclick = () => {
|
||||
|
|
Loading…
Reference in a new issue