show
This commit is contained in:
@@ -140,12 +140,22 @@ function tryNow_attachButtons() {
|
||||
btn.addEventListener("click", (e) => {
|
||||
e.preventDefault();
|
||||
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", () => {
|
||||
tryNow_createModal();
|
||||
tryNow_handleFormSubmit();
|
||||
|
||||
Reference in New Issue
Block a user