Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onload = function(){
- `use strict`;
- const csInterface = new CSInterface();
- themeManager.init();
- const forms = document.forms.form;
- const switch_radio = Array.from(document.getElementsByClassName(`topcoat-switch__input`));
- const push = document.getElementById(`push`);
- class ClickBtn{
- constructor(){
- this.btn = switch_radio;
- this.btn.forEach(v=>{
- v.addEventListener(`click`,()=>{
- console.log(forms.which);
- console.log(forms.which.value);
- });
- });
- }
- }
- const reactBtn = new ClickBtn();
- push.addEventListener(`click`,()=>{
- alert(`push the button`);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement