Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<title>About Us - Fitness Website</title>
<link rel="stylesheet" href="about.css">
<link rel="stylesheet" href="navbar.css">
<link rel="stylesheet" href="footer.css">
<link rel="icon" href="pictures/Fitness.png" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0">
<link rel="preconnect" href="https://fonts.gstatic.com">
Expand Down Expand Up @@ -103,6 +104,7 @@ <h2>Ready to Transform Your Life?</h2>
</section>

<div id="navbar"></div> <!-- Placeholder for navbar -->
<div id="footer"></div>
<div class="chatbox">
<div class="chat-container">
<div class="h1">Talk to your own assistant...</div>
Expand All @@ -112,8 +114,25 @@ <h2>Ready to Transform Your Life?</h2>
<button type="button" class="arrow"><img src="pictures/btn.svg" alt="img"></button>
</div>
</div>
<script>
fetch('navbar.html')
.then(response => response.text())
.then(data => {
document.getElementById('navbar').innerHTML = data;
});
</script>


<script>
fetch('footer.html')
.then(response => response.text())
.then(data => {
document.getElementById('footer').innerHTML = data;
});
</script>

<script src="about.js"></script>
<script src="chatbot.js"></script>

</body>
</html>
10 changes: 10 additions & 0 deletions cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<title>Fitness Planet - Store</title>
<link rel="stylesheet" href="cart.css">
<link rel="stylesheet" href="navbar.css">
<link rel="stylesheet" href="footer.css">
<link rel="stylesheet" href="style.css"> <!-- Add if it contains chatbox styles -->
<link rel="shortcut icon" href="pictures/Fitness.png" type="image/x-icon">
</head>
Expand Down Expand Up @@ -87,6 +88,7 @@ <h1 class="s">Shopping Cart</h1>
</div>

<div id="navbar"></div> <!-- Placeholder for navbar -->
<div id="footer"></div> <!-- Placeholder for navbar -->
<div class="chatbox">
<div class="chat-container">
<div class="h1">Talk to your own assistant...</div>
Expand All @@ -102,6 +104,14 @@ <h1 class="s">Shopping Cart</h1>
</svg>
<span>0</span>
</div>

<script>
fetch('footer.html')
.then(response => response.text())
.then(data => {
document.getElementById('footer').innerHTML = data;
});
</script>

<script src="cart.js"></script>
<script src="chatbot.js"></script>
Expand Down
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="bmi.css">
<link rel="stylesheet" href="navbar.css">
<link rel="stylesheet" href="footer.css">

<link rel="icon" href="pictures/Fitness.png" type="image/x-icon">
</head>
Expand Down Expand Up @@ -119,6 +120,7 @@ <h2>BMI Calculator</h2>

<!-- index.html -->
<div id="navbar"></div>
<div id="footer"></div>

<script>
fetch('navbar.html')
Expand All @@ -128,6 +130,14 @@ <h2>BMI Calculator</h2>
});
</script>

<script>
fetch('footer.html')
.then(response => response.text())
.then(data => {
document.getElementById('footer').innerHTML = data;
});
</script>

<script src="chatbot.js"></script>

</body>
Expand Down
10 changes: 10 additions & 0 deletions signin.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="signin.css">
<link rel="stylesheet" href="navbar.css">
<link rel="stylesheet" href="footer.css">
<link rel="stylesheet" href="style.css"> <!-- Add if it contains chatbox styles -->
<link rel="shortcut icon" href="pictures/Fitness.png" type="image/x-icon" sizes="160*160">
</head>
Expand Down Expand Up @@ -95,6 +96,7 @@ <h1>Welcome Back!</h1><br><br>
</div>

<div id="navbar"></div> <!-- Placeholder for navbar -->
<div id="footer"></div>
<div class="chatbox">
<div class="chat-container">
<div class="h1">Talk to your own assistant...</div>
Expand All @@ -104,6 +106,14 @@ <h1>Welcome Back!</h1><br><br>
<button type="button" class="arrow"><img src="pictures/btn.svg" alt="img"></button>
</div>
</div>

<script>
fetch('footer.html')
.then(response => response.text())
.then(data => {
document.getElementById('footer').innerHTML = data;
});
</script>

<script src="signin.js"></script>
<script src="chatbot.js"></script>
Expand Down