Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <body>
  2.  
  3. <div>
  4. <input name="other12" id="input_extrafl12" class="input_extraf2" value="" type="number" />Довжина паролю<br>
  5. <input name="other13" id="input_extrafl13" class="input_extraf3" value="" type="text"/>
  6. <label><input id="ispen" name="is_pending" type="checkbox">Наявність цифр</label>
  7. </div>
  8. <div>
  9. <input name="other14" id="input_extrafl14" class="input_extraf4" value="" type="text">
  10. <label><input id="isopen" name="is_openinging" type="checkbox"> Наявність символів</label>
  11.  
  12. </div>
  13. <button class ='gen' >Generate password!</button>;
  14. <hr>
  15. <div class="result"></div>
  16. <script>
  17. const $result = document.querySelector('.result');
  18. const $passwordButton = document.querySelector('.gen');
  19. const $a= document.getElementById('input_extrafl12');
  20. const $b= document.getElementById('ispen');
  21. const $c= document.getElementById('isopen');
  22.  
  23.  
  24. $passwordButton.addEventListener('click', () => {
  25. const count = $a.value;
  26. $result.innerHTML = count;
  27. if($b.checked)
  28. //...
  29. if($c.checked)
  30. //...
  31. });
  32. </script>
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement