dd919668cb
Signed-off-by: Joas Schilling <coding@schilljs.com>
11 lines
460 B
JavaScript
11 lines
460 B
JavaScript
document.addEventListener('DOMContentLoaded', function() {
|
|
var passwordInput = document.getElementById('password');
|
|
var passwordButton = document.getElementById('password-submit');
|
|
var eventListener = function() {
|
|
passwordButton.disabled = passwordInput.value.length === 0;
|
|
};
|
|
|
|
passwordInput.addEventListener('click', eventListener);
|
|
passwordInput.addEventListener('keyup', eventListener);
|
|
passwordInput.addEventListener('change', eventListener);
|
|
});
|