Skip to content

Commit

Permalink
[FIX] - resize toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerzouille authored Feb 23, 2024
1 parent bec8431 commit da576db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ resize();
function resize() {
if (screen.width <= 700) {
menu.style.maxWidth = "0px";
darker.style.background = 'none';
darker.style.zIndex = "-10";
}
else {
menu.style.maxWidth = "10000px";
Expand Down Expand Up @@ -35,4 +37,4 @@ function toggle() {
darker.style.background = 'none';
darker.style.zIndex = "-10";
}
}
}

0 comments on commit da576db

Please sign in to comment.