Attribute source of accessible navigation toggle script

This commit is contained in:
Helen Chong 2024-06-08 00:38:50 +08:00
parent d3c19d83fb
commit 821d523e03
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,8 @@
</style>
<script defer>
{# Accessible hamburger menu navigation script based on:
https://accessibleweb.dev/navigation #}
const navbarToggle = document.querySelector('.navbar__toggle');
const navbarLinks = document.querySelector(".navbar__links");
const navbarLinkItems = document.querySelectorAll(".navbar__links li a");