This commit is contained in:
2026-05-17 23:46:27 +02:00
parent 66ae665aae
commit eddba45f4e
48 changed files with 25 additions and 25 deletions

4
scripts/contact.js Normal file → Executable file
View 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);
});