Add ALTCHA widget to main page contact form

The widget was only on the /contact/ page; main page form was unprotected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chris 2026-06-11 14:25:27 -04:00
parent a89788f531
commit 0652339539

View File

@ -218,6 +218,14 @@
<div id="formAlert" class="notification" style="display:none;"></div>
<div class="field">
<altcha-widget
challengeurl="/api/altcha"
style="--altcha-color-border: #dbdbdb; --altcha-border-radius: 4px; --altcha-color-text: #363636;"
></altcha-widget>
<p class="help is-danger" id="err-altcha" style="display:none;">Please complete the verification.</p>
</div>
<div class="field">
<div class="control">
<button type="submit" id="submitBtn" class="button is-info is-fullwidth">Send Message</button>
@ -313,6 +321,7 @@
<script src="reviews-data.js"></script>
<script src="reviews.js?v=6"></script>
<script src="contact-form.js"></script>
<script async src="https://cdn.jsdelivr.net/npm/altcha/dist/altcha.min.js" type="module"></script>
</body>
</html>