MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / toggleNav

Function toggleNav

assets/js/Restaurant.js:11–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9navToggler.addEventListener("click", toggleNav);
10
11function toggleNav(){
12 navToggler.classList.toggle("active");
13 document.querySelector(".nav").classList.toggle("open");
14}
15
16//****close nav when clicking on a nav item***/ */
17document.addEventListener("click", function(e){

Callers 1

Restaurant.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected