Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit dd79b80

Browse files
authored
Create html-invisible-recaptcha.html
1 parent 2ae6b08 commit dd79b80

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

forms/html-invisible-recaptcha.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<head>
2+
<script src='https://www.google.com/recaptcha/api.js'></script>
3+
<script>
4+
function onSubmit(token) {
5+
document.getElementById("contact-form").submit();
6+
}
7+
</script>
8+
</head>
9+
<body>
10+
11+
<form class="contact-form" id="contact-form" name="contact-v3" method="POST" netlify-recaptcha netlify-honeypot="required_name" netlify>
12+
<div class="field-body">
13+
<p>
14+
<label>Don't fill this out if you're human: <input name="required_name" /></label>
15+
</p>
16+
</div>
17+
<div class="field is-required">
18+
<label class="label" for="contact-email">
19+
Email
20+
</label>
21+
<div class="control">
22+
<input class="input" type="email" id="contact-email" maxlength="80" name="email" required>
23+
</div>
24+
</div>
25+
<div class="field is-required">
26+
<label class="label" for="contact-body">
27+
Message
28+
</label>
29+
<div class="control">
30+
<textarea class="textarea" id="contact-body" name="message" required></textarea>
31+
</div>
32+
</div>
33+
34+
<p>
35+
<small class="p--fine-print recaptcha-terms">
36+
Protected by reCAPTCHA. See
37+
<a class="p__a" href="https://www.google.com/intl/en/policies/privacy/" target="_blank" rel="external">Privacy Policy</a>
38+
and
39+
<a class="p__a" href="https://www.google.com/intl/en/policies/terms/" target="_blank" rel="external">Terms of Use</a>.
40+
</small>
41+
</p>
42+
43+
<div class="control">
44+
<button
45+
class="g-recaptcha"
46+
data-sitekey="YOUR_SITE_KEY_HERE"
47+
data-callback="onSubmit">
48+
Submit
49+
</button>
50+
</div>
51+
</form>
52+
53+
54+
</body>
55+
</html>

0 commit comments

Comments
 (0)