You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

publicshareauth.js 460B

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. });