-
Notifications
You must be signed in to change notification settings - Fork 0
/
clickmenu.js
21 lines (20 loc) · 860 Bytes
/
clickmenu.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const btnmenuEl = document.querySelector(".header-icon");
const heroSectionDivEl = document.querySelector(".hero-section-div");
btnmenuEl.addEventListener("click", function () {
heroSectionDivEl.classList.toggle("nav-open");
});
// const btnCloseEl = document.querySelector(".the-close-icon");
// const heroSectionRemover = document.querySelector(".hero-sectiom-div");
// btnCloseEl.addEventListener("click", function () {
// heroSectionRemover.classList.remove("nav-open");
// });
// btnNavEl.addEventListener("click", function () {
// headerEl.classList.toggle("nav-open");
// });
const myname = "ahmed adekoya";
console.log(myname);
// const btnNavEl = document.querySelector(".btn-mobile-nav");
// const headerEl = document.querySelector(".header");
// btnNavEl.addEventListener("click", function () {
// headerEl.classList.toggle("nav-open");
// });