This commit is contained in:
Oliver
2025-10-04 19:07:47 -03:00
parent 88a99d4942
commit c462d75c4c

View File

@@ -140,12 +140,22 @@ function tryNow_attachButtons() {
btn.addEventListener("click", (e) => { btn.addEventListener("click", (e) => {
e.preventDefault(); e.preventDefault();
const modal = document.getElementById("trynowModal"); const modal = document.getElementById("trynowModal");
if (modal) modal.style.display = "flex"; if (modal) {
modal.style.display = "flex";
// Reset modal state
const form = document.getElementById("trynowForm");
const confirmation = document.getElementById("trynowConfirmation");
if (form && confirmation) {
form.style.display = "flex";
confirmation.style.display = "none";
}
}
}); });
} }
}); });
} }
document.addEventListener("DOMContentLoaded", () => { document.addEventListener("DOMContentLoaded", () => {
tryNow_createModal(); tryNow_createModal();
tryNow_handleFormSubmit(); tryNow_handleFormSubmit();