blueBelt.js 502 B

1234567891011121314
  1. document.getElementById('check').onclick = function(){
  2. let login = document.getElementById('login').value;
  3. let password = document.getElementById('password').value;
  4. let successBox = document.getElementById('successBox');
  5. successBox.style.display='none'
  6. let failureBox = document.getElementById('failureBox');
  7. failureBox.style.display='none'
  8. if (login == 'admin' && password == 'qwerty')
  9. successBox.style.display='block'
  10. else
  11. failureBox.style.display='block'
  12. }