6 lines
204 B
JavaScript
6 lines
204 B
JavaScript
function toggleMenu() {
|
|
const menu = document.querySelector(".menu-links");
|
|
const icon = document.querySelector(".hamburger-icon");
|
|
menu.classList.toggle("open");
|
|
icon.classList.toggle("open");
|
|
}
|