/******/ (() => { // webpackBootstrap var __webpack_exports__ = {}; /*!***************************************!*\ !*** ./src/assets/js/recaptcha-v3.js ***! \***************************************/ /** * Recaptcha v3 implementation. * * @since 1.2.1 */ jQuery(function ($) { $(learndash.integrity.recaptcha.v3.elements).on('submit', function (e) { e.preventDefault(); const that = $(this); grecaptcha.ready(function () { grecaptcha.execute(learndash.integrity.recaptcha.v3.siteKey, { action: 'submit' }).then(function (token) { that.prepend('<input type="hidden" name="' + learndash.integrity.recaptcha.v3.nonceKey + '" value="' + learndash.integrity.recaptcha.v3.nonceValue + '"/>'); that.prepend('<input type="hidden" name="token" value="' + token + '"/>'); that.unbind('submit').submit(); }); }); }); }); /******/ })() ;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
prevent-content-copy.js | File | 1.04 KB | 0644 |
|
prevent-content-copy.min.js | File | 270 B | 0644 |
|
recaptcha-v2.js | File | 554 B | 0644 |
|
recaptcha-v2.min.js | File | 223 B | 0644 |
|
recaptcha-v3.js | File | 902 B | 0644 |
|
recaptcha-v3.min.js | File | 499 B | 0644 |
|
scripts.js | File | 203 B | 0644 |
|
scripts.min.js | File | 0 B | 0644 |
|