Skip to content

Commit

Permalink
Replace Width Persentages With Display None and Display block
Browse files Browse the repository at this point in the history
  • Loading branch information
DinnerBone422 committed Aug 13, 2024
1 parent 0637b8a commit 7a8ae79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 = "100%";
document.getElementById("menu").style.display = "block";
menuState = 1;
} else { //Menu Closed
document.getElementById("menu").style.transform = "translateX(100%)";
document.getElementById("MenuOpenCloseButton").innerHTML = "menu";
document.getElementById("menu").style.width = "0%";
document.getElementById("menu").style.display = "none";
menuState = 0;
}
}
Expand Down

0 comments on commit 7a8ae79

Please sign in to comment.