SummerCart64/web/script.js
2024-01-07 19:21:11 +01:00

12 lines
239 B
JavaScript

const showMenu = (event) => {
event.currentTarget
.classList
.toggle('active');
event.currentTarget
.parentNode
.parentNode
.getElementsByTagName('menu')[0]
.classList
.toggle('mobile-hidden');
}