Use double quotes for navigation toggle functions
This commit is contained in:
parent
821d523e03
commit
fb4515acc5
|
@ -91,7 +91,7 @@
|
||||||
<script defer>
|
<script defer>
|
||||||
{# Accessible hamburger menu navigation script based on:
|
{# Accessible hamburger menu navigation script based on:
|
||||||
https://accessibleweb.dev/navigation #}
|
https://accessibleweb.dev/navigation #}
|
||||||
const navbarToggle = document.querySelector('.navbar__toggle');
|
const navbarToggle = document.querySelector(".navbar__toggle");
|
||||||
const navbarLinks = document.querySelector(".navbar__links");
|
const navbarLinks = document.querySelector(".navbar__links");
|
||||||
const navbarLinkItems = document.querySelectorAll(".navbar__links li a");
|
const navbarLinkItems = document.querySelectorAll(".navbar__links li a");
|
||||||
|
|
||||||
|
@ -110,5 +110,5 @@
|
||||||
open === "false" ? openNavigation() : closeNavigation();
|
open === "false" ? openNavigation() : closeNavigation();
|
||||||
}
|
}
|
||||||
|
|
||||||
navbarToggle.addEventListener('click', toggleNavigation);
|
navbarToggle.addEventListener("click", toggleNavigation);
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue