Current File : /home/kelaby89/kelaby.company/wp-content/plugins/advanced-google-recaptcha/js/wpcaptcha-global.js |
/**
* WP Captcha Pro
* https://getwpcaptcha.com/
* (c) WebFactory Ltd, 2022 - 2023, www.webfactoryltd.com
*/
// global object for all WPCaptcha functions
jQuery(document).ready(function ($) {
if (typeof wpcaptcha_rebranding != "undefined") {
if ($('[data-slug="advanced-google-recaptcha"]').length > 0) {
$('[data-slug="advanced-google-recaptcha"]')
.children(".plugin-title")
.children("strong")
.html("<strong>" + wpcaptcha_rebranding.name + "</strong>");
$('[data-slug="advanced-google-recaptcha"]')
.children(".column-description")
.children(".plugin-description")
.children("p")
.html(wpcaptcha_rebranding.name + " will safeguard your WordPress site from spam comments and brute force attacks. With this plugin, you can easily add Google reCAPTCHA to WordPress comment form, login form and other forms.");
}
}
if (typeof wpcaptcha_pointers != "undefined") {
$.each(wpcaptcha_pointers, function (index, pointer) {
if (index.charAt(0) == "_") {
return true;
}
$(pointer.target)
.pointer({
content: "<h3>WP Captcha Pro</h3><p>" + pointer.content + "</p>",
pointerWidth: 380,
position: {
edge: pointer.edge,
align: pointer.align,
},
close: function () {
$.get(ajaxurl, {
action: "wpcaptcha_run_tool",
_ajax_nonce: wpcaptcha_pointers.run_tool_nonce,
tool: "wpcaptcha_dismiss_pointer",
});
},
})
.pointer("open");
});
}
}); // on ready