PHP Classes

File: public/dist/script.js

Recommend this page to a friend!
  Classes of Robert Devenyi   Iceburg SAAS PHP CRM Open Source   public/dist/script.js   Download  
File: public/dist/script.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Iceburg SAAS PHP CRM Open Source
Application to manage the contacts of customers
Author: By
Last change:
Date: 1 year ago
Size: 1,040 bytes
 

Contents

Class file image Download
window.addEventListener("load", function () { console.log(document.querySelector("#showMenu")); document .querySelector("#showMenu") .addEventListener("click", function (event) { document.querySelector("#mobileNav").classList.remove("hidden"); }); document .querySelector("#hideMenu") .addEventListener("click", function (event) { document.querySelector("#mobileNav").classList.add("hidden"); }); document.querySelectorAll("[toggleElement]").forEach((toggle) => { toggle.addEventListener("click", function (event) { console.log(toggle); const answerElement = toggle.querySelector("[answer]"); const caretElement = toggle.querySelector("img"); console.log(answerElement); if (answerElement.classList.contains("hidden")) { answerElement.classList.remove("hidden"); caretElement.classList.add("rotate-90"); } else { answerElement.classList.add("hidden"); caretElement.classList.remove("rotate-90"); } }); }); });