feat(game): Game is near to be finished

This commit is contained in:
nocode committed 2026-05-12 11:23:16 +02:00
1 parent 73169ee1b1
commit f6022fb3f0
2 files changed
+41 -6

No files matched your search

+4 -4
View File
@@ -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")
}