forked from MinhQuan/PresentCorpo
footer: add footer loader
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
////views\contactPage\contactMain.js
|
||||
// Load footer
|
||||
fetch("components/footer/footer.html")
|
||||
.then((response) => response.text())
|
||||
.then((data) => {
|
||||
document.getElementById("footer").innerHTML = data;
|
||||
});
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
// Focus and blur effects for form elements
|
||||
@@ -34,7 +28,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
// Form progress bar
|
||||
const progressBar = document.querySelector(".form-progress-bar");
|
||||
const formInputs = document.querySelectorAll(
|
||||
".contact-form input, .contact-form textarea"
|
||||
".contact-form input, .contact-form textarea",
|
||||
);
|
||||
const totalInputs = formInputs.length;
|
||||
|
||||
@@ -197,7 +191,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
// Show error message
|
||||
showMessage(
|
||||
"error",
|
||||
"Đã xảy ra lỗi khi gửi tin nhắn. Vui lòng thử lại sau."
|
||||
"Đã xảy ra lỗi khi gửi tin nhắn. Vui lòng thử lại sau.",
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user