service boxes open on click, not just arrow
This commit is contained in:
@@ -99,7 +99,7 @@ function initServices() {
|
||||
|
||||
let closeTimeout;
|
||||
|
||||
arrow.addEventListener("click", () => {
|
||||
box.addEventListener("click", () => {
|
||||
boxes.forEach(b => {
|
||||
if (b !== box) b.classList.remove("open");
|
||||
if (b.closeTimeout) clearTimeout(b.closeTimeout);
|
||||
|
||||
Reference in New Issue
Block a user