text: var slide=function(){function t(){0!==a.length&&e()}function e(){for(var t=0;t<a.length;t++)a[t].addEventListener("click",n)}function n(t){if(r=t.target.getAttribute("data-target"),i=document.querySelector(r),!i)throw new Error("Whoops! Ensure 'data-target' is a valid selector.");i.classList.contains("open")?i.classList.remove("open"):i.classList.add("open")}var r,i,a=document.querySelectorAll("[data-toggle='slide']");return{init:t}}();slide.init();