test
This commit is contained in:
4
scripts/contact.js
Normal file → Executable file
4
scripts/contact.js
Normal file → Executable file
@@ -35,14 +35,14 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
console.log("Success:", data);
|
||||
document.getElementById("contact-form").innerHTML = `<p class="page-paragraph-success">Hvala za vaše sporočilo! Odgovorili vam bomo v najkrajšem možnem času.</p>`;
|
||||
setTimeout(() => {
|
||||
window.location.href = "/";
|
||||
window.location.href = "index.html";
|
||||
}, 3000);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("Error:", error);
|
||||
document.getElementById("contact-form").innerHTML = `<p class="page-paragraph-error">Prišlo je do napake pri pošiljanju vašega sporočila. Prosimo, poskusite znova pozneje.</p>`;
|
||||
setTimeout(() => {
|
||||
window.location.href = "/";
|
||||
window.location.href = "index.html";
|
||||
}, 3000);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user