-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbundle.js
More file actions
18 lines (16 loc) · 968 Bytes
/
Copy pathbundle.js
File metadata and controls
18 lines (16 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
var menu = document.getElementsByClassName("burger_nav")[0];
var list = document.querySelector("header nav ul");
var list2 = document.querySelector("header nav ul li ul");
var li = document.querySelector("header nav ul li a");
console.log(menu);
menu.addEventListener("click", function ()
{
list.classList.toggle("open");
})
li.addEventListener("click", function()
{
list.classList.toggle("open");
list2.classList.toggle("open");
})
},{}]},{},[1]);