Skip to content

Commit

Permalink
fix filepath for navbar and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
LeanneCodes committed Dec 8, 2023
1 parent 9d0d348 commit 1cecab2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions JS/headerandfooter.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion nav-foot/navbar.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<a class="navbar-brand" href='../index.html'><img class="logo" src="../images/LogoDesign1-LM.png" width=400px
<a class="navbar-brand" href='/index.html'><img class="logo" src="../images/LogoDesign1-LM.png" width=400px
height=85px alt="logo"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
Expand Down

0 comments on commit 1cecab2

Please sign in to comment.