From cb153c95519b9b37fe6fc325819753bf9714e877 Mon Sep 17 00:00:00 2001 From: kato james Date: Thu, 21 Sep 2023 16:02:00 +0300 Subject: [PATCH] Added a toggle on panel --- 001-expanding cards/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/001-expanding cards/script.js b/001-expanding cards/script.js index c6bcdd0..9d2c41f 100644 --- a/001-expanding cards/script.js +++ b/001-expanding cards/script.js @@ -2,8 +2,8 @@ const panels = document.querySelectorAll(".panel"); panels.forEach((panel) => { panel.addEventListener("click", () => { - removeActiveClasses(); - panel.classList.add("active"); + // removeActiveClasses(); + panel.classList.toggle("active"); }); }); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy