diff --git a/site/ai-integration.html b/site/ai-integration.html index c938a43..f2eaaf0 100644 --- a/site/ai-integration.html +++ b/site/ai-integration.html @@ -44,7 +44,6 @@ - diff --git a/site/assets/js/main.js b/site/assets/js/main.js index b32a565..9da1edd 100644 --- a/site/assets/js/main.js +++ b/site/assets/js/main.js @@ -151,6 +151,8 @@ function initAnchorScroll() { /* ══════════════════════════════════════ FORM HANDLER ══════════════════════════════════════ */ +const formShownAt = Date.now(); + function initForms() { document.querySelectorAll('.intake-form').forEach(form => { form.addEventListener('submit', async (e) => { @@ -163,6 +165,8 @@ function initForms() { // Collect all named fields const data = {}; new FormData(form).forEach((val, key) => { data[key] = val; }); + // Spam check: how long the visitor took to fill the form (measured on their own clock) + data.fill_ms = Date.now() - formShownAt; try { const res = await fetch('/contact.php', { diff --git a/site/care-plans.html b/site/care-plans.html index 5e57010..e37f7b1 100644 --- a/site/care-plans.html +++ b/site/care-plans.html @@ -44,7 +44,6 @@ - diff --git a/site/contact.html b/site/contact.html index 75b9eb7..8408943 100644 --- a/site/contact.html +++ b/site/contact.html @@ -44,7 +44,6 @@ - @@ -165,6 +164,10 @@