03/10/23 firstcommit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
function rtn() {
|
||||
window.history.back();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
const hamburgerBtn = document.querySelector(".nav-toggler")
|
||||
const navigation = document.querySelector("nav")
|
||||
const html = document.querySelector("html")
|
||||
|
||||
hamburgerBtn.addEventListener("click", toggleNav)
|
||||
|
||||
function toggleNav() {
|
||||
hamburgerBtn.classList.toggle("active")
|
||||
navigation.classList.toggle("active")
|
||||
html.classList.toggle("active")
|
||||
}
|
||||
Reference in New Issue
Block a user