My SMM panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
590 B

  1. var toggle = document.querySelector(".nav-toggle");
  2. var heroText = document.querySelectorAll(".landing-hero h2,.landing-hero p");
  3. toggle.addEventListener("click", function() {
  4. heroText.forEach((item) => {
  5. item.classList.toggle("hidden");
  6. });
  7. document.querySelector("nav form.login").classList.toggle("active");
  8. this.classList.toggle("toggled");
  9. });
  10. var cols = document.getElementsByClassName("collapsible");
  11. var i;
  12. for (i = 0; i < cols.length; i++) {
  13. cols[i].addEventListener("click", function() {
  14. this.classList.toggle("active");
  15. });
  16. }
  17. //# sourceMappingURL=main.js.map