| Server IP : 146.190.157.162 / Your IP : 216.73.217.1 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : aragonviento ( 849) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/aragonviento/wp-content/themes/Divi/core/admin/js/ |
Upload File : |
/**
* NOTE: A minified copy of this script will be generated by grunt. Only the minified file will be included in zipped releases.
*
* @file Handles reCAPTCHA on the frontend.
* @since 4.0.7
*/
(function($) {
window.etCore = window.etCore || {};
window.etCore.api = window.etCore.api || {};
window.etCore.api.spam = window.etCore.api.spam || {};
/**
* Recaptcha
*
* @since??
*
* @memberof window.etCore.api.spam
*/
window.etCore.api.spam.recaptcha = $.extend( et_core_api_spam_recaptcha, {
_bindMethods: function(target) {
Object.keys(target).forEach(function(prop) {
if (target.hasOwnProperty(prop) && 'function' === typeof target[prop]) {
target[prop] = target[prop].bind(target);
}
});
},
init: function() {
this._bindMethods(this);
if (this.isEnabled()) {
// Execute the default page-level action
window.grecaptcha && grecaptcha.execute(this.site_key, this.page_action);
}
},
isEnabled: function() {
return !! (this.site_key && window.grecaptcha);
},
/**
* Score an interaction to determine whether or not it's a bot.
*
* @since 4.0.7
*
* @param {string} action The name of the action being performed.
*
* @return {Promise<string>} Interaction token to be verified on server.
*/
interaction: function(action) {
if (! this.isEnabled()) {
return Promise.resolve('');
}
return grecaptcha.execute(this.site_key, { action: action });
}
} );
window.grecaptcha && grecaptcha.ready(function() {
window.etCore.api.spam.recaptcha.init();
});
})(jQuery);