Skip to content

Commit 8564852

Browse files
Scripts for NavigationLinks Components
1 parent 70e4ce0 commit 8564852

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
let links = document.getElementsByClassName("links")[0]
2+
3+
document.getElementsByClassName("menu-btn")[0].addEventListener("click", () => {
4+
links.classList.toggle("active")
5+
})

0 commit comments

Comments
 (0)