MCPcopy Create free account
hub / github.com/codemistic/Web-Development / toggleActive

Function toggleActive

gallery/main.js:10–15  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

8}
9
10function toggleActive(e) {
11 console.log(e.propertyName);
12 if (e.propertyName.includes('flex')) {
13 this.classList.toggle('open-active');
14 }
15 }
16
17panels.forEach(panel => panel.addEventListener('click',toggleOpen));
18panels.forEach(panel => panel.addEventListener('transitionend', toggleActive));

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected