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
@@ -308,6 +308,7 @@
<!-- Scripts -->
<script src="/components/header/headerLoader.js"></script>
<script src="aboutPages/aboutMain.js?v=1.0"></script>
<script src="aboutPages/aboutMain.js?v=1.1"></script>
<script src="/components/footer/footerLoader.js"></script>
</body>
</html>
+1 -6
View File
@@ -1,6 +1 @@
// Load footer
fetch("components/footer/footer.html")
.then((response) => response.text())
.then((data) => {
document.getElementById("footer").innerHTML = data;
});
// views/aboutPages/aboutMain.js