diff --git a/src/pages/subscribe.astro b/src/pages/subscribe.astro index 49b4a1a..741fdd0 100644 --- a/src/pages/subscribe.astro +++ b/src/pages/subscribe.astro @@ -21,10 +21,11 @@ const meta = { required autocomplete="email" /> - + @@ -47,20 +48,11 @@ const meta = { const btn = document.getElementById('subscribe-btn'); const result = document.getElementById('subscribe-result'); - // Show the widget as soon as the user starts typing an email address. + // Show the widget once the user starts typing — it's already solving in the background. emailInput.addEventListener('input', () => { - if (!widget.classList.contains('visible')) { - widget.classList.add('visible'); - widget.setAttribute('auto', 'onload'); - } + widget.classList.add('visible'); }, { once: true }); - // Enable the submit button only after altcha has been solved. - // This closes the window where a bot could submit before the captcha fires. - widget.addEventListener('altcha-verified', () => { - btn.disabled = false; - }); - form.addEventListener('submit', async (e) => { e.preventDefault();