From ff12b5ca4c4a15fa2ca239a0f344b4d1494ad2b3 Mon Sep 17 00:00:00 2001 From: Mohammad Alawieh <76197279+MidoAlawieh@users.noreply.github.com> Date: Mon, 16 Oct 2023 10:02:39 +0300 Subject: [PATCH] Update main.js --- JS/main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/JS/main.js b/JS/main.js index eb293d8..6d66876 100644 --- a/JS/main.js +++ b/JS/main.js @@ -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);