footer: add footer loader

This commit is contained in:
2026-06-03 03:42:39 +07:00
parent b7c10621b1
commit 42429b1509
29 changed files with 39 additions and 101 deletions
+2 -1
View File
@@ -601,7 +601,8 @@
<!-- Footer Component -->
<div id="footer"></div>
<script src="homePages/homeMain.js?v=1.1"></script>
<script src="homePages/homeMain.js?v=1.2"></script>
<script src="/components/header/headerLoader.js"></script>
<script src="/components/footer/footerLoader.js"></script>
</body>
</html>
+1 -6
View File
@@ -1,9 +1,4 @@
// Load footer
fetch("components/footer/footer.html")
.then((response) => response.text())
.then((data) => {
document.getElementById("footer").innerHTML = data;
});
// views/homePages/homeMain.js
// MANUAL BANNER SLIDESHOW FUNCTIONALITY
document.addEventListener("DOMContentLoaded", function () {