Use double quotes for navigation toggle functions

This commit is contained in:
Helen Chong 2024-06-08 00:39:51 +08:00
parent 821d523e03
commit fb4515acc5
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@
<script defer>
{# Accessible hamburger menu navigation script based on:
https://accessibleweb.dev/navigation #}
const navbarToggle = document.querySelector('.navbar__toggle');
const navbarToggle = document.querySelector(".navbar__toggle");
const navbarLinks = document.querySelector(".navbar__links");
const navbarLinkItems = document.querySelectorAll(".navbar__links li a");
@ -110,5 +110,5 @@
open === "false" ? openNavigation() : closeNavigation();
}
navbarToggle.addEventListener('click', toggleNavigation);
navbarToggle.addEventListener("click", toggleNavigation);
</script>