Skip to content

Instantly share code, notes, and snippets.

@AertHulsebos
Last active April 29, 2022 19:29
Show Gist options
  • Save AertHulsebos/9c97378211d801c8cbe5fd0940a7084d to your computer and use it in GitHub Desktop.
Save AertHulsebos/9c97378211d801c8cbe5fd0940a7084d to your computer and use it in GitHub Desktop.
/* HTML custom field
* Accept cookies for ReCaptcha
* Feedback when Accepted
*/
<div data-service="google-recaptcha" data-category="marketing" class="cmplz-blocked-content-container cmplz-blocked-content-notice cmplz-accept-service cmplz-accept-marketing cmplz-ninjaforms"
style="text-align: left; cursor: pointer;">
Click here to accept reCaptcha cookies before sending the form.
</div>
<div class="forms-enabled" style="text-align: left; cursor: pointer;">
reCaptcha cookies are enabled. You can now send the contact form.
</div>
// Custom CSS for above DIV classes
.forms-enabled {
display:none;
}
.cmplz-google-recaptcha .forms-enabled, .cmplz-marketing .forms-enabled {
display:block!important;
background:transparent;
color:#333;
border: 2px solid green;
padding:15px;
font-size:17px;
}
.cmplz-ninjaforms {
background:transparent;
color:#333;
border: 2px solid #333;
padding:15px;
font-size:17px;
}
.cmplz-google-recaptcha .cmplz-ninjaforms, .cmplz-marketing .cmplz-ninjaforms {
display:none!important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment