Files
wordpress-preseed/wp-content/plugins/all-in-one-event-calendar/public/js/libs/captcha/nocaptcha.js
Adrian Nöthlich 290736650a Add upstream plugins
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
2019-10-25 22:42:20 +02:00

1 line
524 B
JavaScript

timely.define(["jquery_timely","//www.google.com/recaptcha/api.js"],function(e){var t=!1,n=!1,r={},i=function(){return"undefined"!=typeof grecaptcha},s=function(i){if(n)return;r=i,e(i.object).html("");try{grecaptcha.render(i.object,{sitekey:i.key,theme:"white",callback:function(e){t=!0}})}catch(s){grecaptcha.reset()}n=!0},o=function(){return"#g-recaptcha-response"},u=function(e){t=!1,n=!1,s(r)},a=function(e){t=!1,n=!1},f=function(){return t};return{is_ready:i,init:s,get_field_name:o,reload:u,destroy:a,check_field:f}});