Skip to content

Commit

Permalink
Fix error in persentages Within JS
Browse files Browse the repository at this point in the history
  • Loading branch information
DinnerBone422 committed Aug 13, 2024
1 parent 7a23cbc commit 0637b8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions global.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ function openCloseMenuFunction() {
if (menuState == 0) { //Menu Opened
document.getElementById("menu").style.transform = "translateX(0)";
document.getElementById("MenuOpenCloseButton").innerHTML = "close";
document.getElementById("menu").style.width = "0%";
document.getElementById("menu").style.width = "100%";
menuState = 1;
} else { //Menu Opened
} else { //Menu Closed
document.getElementById("menu").style.transform = "translateX(100%)";
document.getElementById("MenuOpenCloseButton").innerHTML = "menu";
document.getElementById("menu").style.width = "100%";
document.getElementById("menu").style.width = "0%";
menuState = 0;
}
}
Expand Down

0 comments on commit 0637b8a

Please sign in to comment.