feat(game): Game is near to be finished
This commit is contained in:
2 files changed
+41
-6
No files matched your search
@@ -1,9 +1,9 @@
|
||||
const MENUBUTTON = document.querySelector (".nav-toggler")
|
||||
const NAVIGATION = document.querySelector ("nav")
|
||||
const MENUBUTTON = document.querySelector (".nav-toggler") // Get the div nav-toggler
|
||||
const NAVIGATION = document.querySelector ("nav") // get the div nav
|
||||
|
||||
MENUBUTTON.addEventListener("click", toggleNav)
|
||||
MENUBUTTON.addEventListener("click", toggleNav) // Listen when the user click on the button
|
||||
|
||||
function toggleNav(){
|
||||
function toggleNav(){ // show or no the menu
|
||||
MENUBUTTON.classList.toggle("active")
|
||||
NAVIGATION.classList.toggle("active")
|
||||
}
|
||||
Reference in new issue
Block a user