mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-05 01:02:41 +00:00
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…
x
Reference in New Issue
Block a user