Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Git21221 committed Jul 21, 2023
1 parent 3b561a8 commit 7f8c618
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ for (var i = 0; i < navLinks.length; i++) {
}


window.addEventListener("resize", () => {
// window.addEventListener("resize", () => {

// console.log(window.innerWidth);
var act = document.getElementById("navbar-link-toogle");
act.style["margin-left"] = window.innerWidth - 172 + "px";
})
if(window.innerWidth < 856){
var act = document.getElementById("navbar-link-toogle");
act.style["margin-left"] = window.innerWidth - 172 + "px";
}
// })



Expand Down

0 comments on commit 7f8c618

Please sign in to comment.