Skip to content

Commit

Permalink
Merge pull request #417 from ananyag309/master
Browse files Browse the repository at this point in the history
ADDED back to top button on all the respective footers
  • Loading branch information
vimistify authored Oct 8, 2024
2 parents ccddca7 + 52036f9 commit 79101d1
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 11 deletions.
29 changes: 27 additions & 2 deletions Feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,20 @@ <h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Subscribe to
</div>
<hr>
<!-- Copyright Section -->
<strong><p style="background-color: #C4D7FF; color: #000000; ">&copy; 2024 AmbuFlow. All rights reserved.</p></strong>

<div style="background-color: #C4D7FF; color: #000000; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px;">
<strong><p>&copy; 2024 AmbuFlow. All rights reserved.</p></strong>

<!-- Back to Top Button -->
<button id="backToTopBtn" style="
background-color: #e81a1a;
color: white;
border: none;
border-radius: 5px;
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
"></button>
</div>
</footer>
<script>
// Add event listeners to each star label for toggling the selection
Expand Down Expand Up @@ -475,5 +487,18 @@ <h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Subscribe to
}

animateCircles();</script>
<script>
// Back to Top Button functionality
document.addEventListener('DOMContentLoaded', function() {
const backToTopBtn = document.getElementById("backToTopBtn");

backToTopBtn.addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
});
</script>
</body>
</html>
28 changes: 26 additions & 2 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,20 @@ <h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Subscribe to
</div>
<hr>
<!-- Copyright Section -->
<strong><p style="background-color: #C4D7FF; color: #000000; ">&copy; 2024 AmbuFlow. All rights reserved.</p></strong>

<div style="background-color: #C4D7FF; color: #000000; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px;">
<strong><p>&copy; 2024 AmbuFlow. All rights reserved.</p></strong>

<!-- Back to Top Button -->
<button id="backToTopBtn" style="
background-color: #e81a1a;
color: white;
border: none;
border-radius: 5px;
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
"></button>
</div>
</footer>

<script>
Expand All @@ -318,6 +330,18 @@ <h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Subscribe to
window.onload = function() {
document.getElementById('contact-link').classList.add('active');
};

// Back to Top Button functionality
document.addEventListener('DOMContentLoaded', function() {
var backToTopBtn = document.getElementById("backToTopBtn");

backToTopBtn.addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
});
</script>
<script> const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
Expand Down
33 changes: 30 additions & 3 deletions features.html
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,36 @@ <h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Subscribe to
</div>
<hr>
<!-- Copyright Section -->
<strong><p style="background-color: #C4D7FF; color: #000000; ">&copy; 2024 AmbuFlow. All rights reserved.</p></strong>


<div style="background-color: #C4D7FF; color: #000000; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px;">
<strong><p>&copy; 2024 AmbuFlow. All rights reserved.</p></strong>

<!-- Back to Top Button -->
<button id="backToTopBtn" style="
background-color: #e81a1a;
color: white;
border: none;
border-radius: 5px;
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
"></button>
</div>
</footer>

<script>
// Back to Top Button functionality
document.addEventListener('DOMContentLoaded', function() {
var backToTopBtn = document.getElementById("backToTopBtn");

backToTopBtn.addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
});
</script>

<script> const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");

Expand Down Expand Up @@ -438,5 +464,6 @@ <h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Subscribe to
});
</script>


</body>
</html>
33 changes: 29 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ <h2>Contact Us</h2>
</div>
</div>

<footer style= " color: #f3f4f6; text-align: center; width: 100%;">
<footer style="color: #f3f4f6; text-align: center; width: 100%;">
<div style="background-color: #C4D7FF; color: #f3f4f6; ">
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 1200px; margin: 0 auto;">

Expand Down Expand Up @@ -639,10 +639,35 @@ <h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Subscribe to
</div>
<hr>
<!-- Copyright Section -->
<strong><p style="background-color: #C4D7FF; color: #000000; ">&copy; 2024 AmbuFlow. All rights reserved.</p></strong>

<div style="background-color: #C4D7FF; color: #000000; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px;">
<strong><p>&copy; 2024 AmbuFlow. All rights reserved.</p></strong>

<!-- Back to Top Button -->
<button id="backToTopBtn" style="
background-color: #e81a1a;
color: white;
border: none;
border-radius: 5px;
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
"></button>
</div>
</footer>

<script>
// Back to Top Button functionality
document.addEventListener('DOMContentLoaded', function() {
var backToTopBtn = document.getElementById("backToTopBtn");

backToTopBtn.addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
});
</script>
<script>
function changeContent(page) {
var links = document.querySelectorAll(".menu ul li a");
Expand Down Expand Up @@ -699,4 +724,4 @@ <h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Subscribe to

</script>
</body>
</html>
</html>

0 comments on commit 79101d1

Please sign in to comment.