From c462d75c4cbc088168b6d08cda20b50259c8e6f6 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 4 Oct 2025 19:07:47 -0300 Subject: [PATCH] show --- public/tryNow.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/public/tryNow.js b/public/tryNow.js index db0b12b..a53ddf0 100644 --- a/public/tryNow.js +++ b/public/tryNow.js @@ -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();