-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
33 lines (25 loc) · 1 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// const headerLinks = document.getElementById("headerLinks");
// document
// .getElementById("showInputButton")
// .addEventListener("click", function () {
// document.getElementById("hiddenInput").style.display = "block";
// headerLinks.style.minWidth = "600px";
// });
//-----------------------------------------------------------------
const adaptiveBtn = document.getElementById("adaptiveBtn");
const mobileMenu = document.getElementById("mobileMenu");
const closeAdaptiveMenu = document.getElementById("closeAdaptiveMenu");
const mobileMenuLinks = document.getElementsByClassName("mobileMenuLink");
adaptiveBtn.addEventListener("click", () => {
mobileMenu.classList.toggle("active");
});
closeAdaptiveMenu.addEventListener("click", () => {
mobileMenu.classList.remove("active");
});
for (const link of mobileMenuLinks) {
link.addEventListener("click", () => {
mobileMenu.classList.remove("active");
});
}
//-----------------------------------------------------------------
AOS.init();