Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. window.onload = function(){
  2. `use strict`;
  3. const csInterface = new CSInterface();
  4. themeManager.init();
  5. const forms = document.forms.form;
  6. const switch_radio = Array.from(document.getElementsByClassName(`topcoat-switch__input`));
  7. const push = document.getElementById(`push`);
  8.  
  9. class ClickBtn{
  10. constructor(){
  11. this.btn = switch_radio;
  12. this.btn.forEach(v=>{
  13. v.addEventListener(`click`,()=>{
  14. console.log(forms.which);
  15. console.log(forms.which.value);
  16. });
  17. });
  18. }
  19. }
  20.  
  21. const reactBtn = new ClickBtn();
  22.  
  23. push.addEventListener(`click`,()=>{
  24. alert(`push the button`);
  25. });
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement