From 1cecab21c411e6bb479de06df045265124df4190 Mon Sep 17 00:00:00 2001 From: LeanneCodes Date: Fri, 8 Dec 2023 02:13:33 +0000 Subject: [PATCH] fix filepath for navbar and footer --- JS/headerandfooter.js | 4 ++-- nav-foot/navbar.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/JS/headerandfooter.js b/JS/headerandfooter.js index 860a81b..3205f0f 100644 --- a/JS/headerandfooter.js +++ b/JS/headerandfooter.js @@ -1,11 +1,11 @@ document.addEventListener('DOMContentLoaded', function () { - fetch('../navbar.html') + fetch('../nav-foot/navbar.html') .then((response) => response.text()) .then((data) => { document.getElementById('navbar-placeholder').innerHTML = data; }); - fetch('../footer.html') + fetch('../nav-foot/footer.html') .then((response) => response.text()) .then((data) => { document.getElementById('footer-placeholder').innerHTML = data; diff --git a/nav-foot/navbar.html b/nav-foot/navbar.html index fb1145e..d2cc76f 100644 --- a/nav-foot/navbar.html +++ b/nav-foot/navbar.html @@ -1,6 +1,6 @@