Use double quotes for navigation toggle functions
This commit is contained in:
parent
821d523e03
commit
fb4515acc5
|
@ -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>
|
Loading…
Reference in New Issue