show
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user