Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
midoalawieh authored Oct 16, 2023
1 parent 0c18215 commit ff12b5c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions JS/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,15 @@ for (let i = 0; i < members.length; i++) {
);
memberImage[i].appendChild(memberBody);
}


let footerCont = document.querySelector(".footer-container");

function footerWidth() {
footerCont.style.width = window
.getComputedStyle(document.querySelector("body"))
.getPropertyValue("width");
}

window.addEventListener("resize", footerWidth);
window.addEventListener("load", footerWidth);

0 comments on commit ff12b5c

Please sign in to comment.