|
- var toggle = document.querySelector(".nav-toggle");
- var heroText = document.querySelectorAll(".landing-hero h2,.landing-hero p");
- toggle.addEventListener("click", function() {
- heroText.forEach((item) => {
- item.classList.toggle("hidden");
- });
- document.querySelector("nav form.login").classList.toggle("active");
- this.classList.toggle("toggled");
- });
- var cols = document.getElementsByClassName("collapsible");
- var i;
- for (i = 0; i < cols.length; i++) {
- cols[i].addEventListener("click", function() {
- this.classList.toggle("active");
- });
- }
- //# sourceMappingURL=main.js.map
|