js: fix selector for hamburger menu

This commit is contained in:
Ryan Heywood 2025-04-08 14:11:25 -04:00
parent 036f92ef17
commit 00a5a2219f
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
document.addEventListener('DOMContentLoaded', function () {
const collapsibleButton = document.querySelector("#hamburger-menu");
const collapsibleButton = document.querySelector(".hamburger-menu");
const menuContent = document.querySelector(".menu-content");
collapsibleButton.addEventListener("click", function () {
menuContent.classList.toggle("active");