Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- "use strict";
- var toggle = document.querySelectorAll(".cmn-toggle-switch");
- function toggleHandler(toggle) {
- toggle.addEventListener( "click", function(e) {
- e.preventDefault();
- (this.classList.contains("active") === true) ? this.classList.remove("active") : this.classList.add("active");
- });
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement