Attribute source of accessible navigation toggle script
This commit is contained in:
parent
d3c19d83fb
commit
821d523e03
|
@ -89,6 +89,8 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script defer>
|
<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 navbarLinks = document.querySelector(".navbar__links");
|
||||||
const navbarLinkItems = document.querySelectorAll(".navbar__links li a");
|
const navbarLinkItems = document.querySelectorAll(".navbar__links li a");
|
||||||
|
|
Loading…
Reference in New Issue