publicshareauth.js 460 B

1234567891011
  1. document.addEventListener('DOMContentLoaded', function() {
  2. var passwordInput = document.getElementById('password');
  3. var passwordButton = document.getElementById('password-submit');
  4. var eventListener = function() {
  5. passwordButton.disabled = passwordInput.value.length === 0;
  6. };
  7. passwordInput.addEventListener('click', eventListener);
  8. passwordInput.addEventListener('keyup', eventListener);
  9. passwordInput.addEventListener('change', eventListener);
  10. });