Skip to content

Instantly share code, notes, and snippets.

@netdoctor
Last active June 12, 2019 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netdoctor/e2de2b470588adf19f6c448042c8c747 to your computer and use it in GitHub Desktop.
Save netdoctor/e2de2b470588adf19f6c448042c8c747 to your computer and use it in GitHub Desktop.
<!-- Google reCaptcha script -->
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<!-- replace email-form with your form's ID. Add one if needed in designer -->
<script>
function onSubmit(token) {
document.getElementById("email-form").submit();
}
</script>
<!-- hide reCaptcha badge to make it invisible.
---- You could remove this style to make the badge visible
---- or set display to inline-block.
---- If you do then it it will show above the submit button.
-->
<style>
.grecaptcha-badge {
display: none;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment