PageSourceSearch

https://www.fietsgoed.nl/modules/ets_recaptcha_free/views/js/front.js

js fietsgoed.nl collected 2026-10-08 21:33:44 UTC 2,882 bytes, 63 lines download raw bytes

1/**
2 * Copyright ETS Software Technology Co., Ltd
3 *
4 * NOTICE OF LICENSE
5 *
6 * This file is not open source! Each license that you purchased is only available for 1 website only.
7 * If you want to use this file on more websites (or projects), you need to purchase additional licenses.
8 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
9 *
10 * DISCLAIMER
11 *
12 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
13 * versions in the future.
14 *
15 * @author ETS Software Technology Co., Ltd
16 * @copyright  ETS Software Technology Co., Ltd
17 * @license    Valid for 1 website (or project) for each purchase of license
18*/
19var ETS_RCF_GOOGLE_V3_CAPTCHA_SITE_KEY = ETS_RCF_GOOGLE_V3_CAPTCHA_SITE_KEY || false;
20var ETS_RCF_GOOGLE_V3_POSITION = ETS_RCF_GOOGLE_V3_POSITION || 'bottomright';
21var ETS_RCF_GOOGLE_CAPTCHA_THEME = 'light';
22var func_ets_rcf = {
23    loadReCaptchaV3: function (form) {
24        if ($('form:not(.g-loaded)').length <= 0 || !ETS_RCF_GOOGLE_V3_CAPTCHA_SITE_KEY) {
25            return false;
26        }
27        var g_captcha = form.find('[id*=g-recaptcha-response-]');
28        if (g_captcha.length > 0 && $('body').attr('id')) {
29            grecaptcha.ready(function () {
30                var renderClientId = grecaptcha.render(g_captcha[0].id, {
31                    'sitekey': ETS_RCF_GOOGLE_V3_CAPTCHA_SITE_KEY,
32                    'badge': ETS_RCF_GOOGLE_V3_POSITION,
33                    'size': 'invisible',
34                    'theme' : ETS_RCF_GOOGLE_CAPTCHA_THEME,
35                });
36                grecaptcha.execute(renderClientId, {action: $('body').attr('id').replace(/(?=[^A-Za-z\_])([^A-Za-z\_])/g, '_')}).then(function (token) {
37                    if (token) {
38                        if (g_captcha.find('input[name=g-recaptcha-response]').length > 0) {
39                            g_captcha.find('input[name=g-recaptcha-response]').val(token);
40                        } else {
41                            g_captcha.append('<input type="hidden" name="g-recaptcha-response" value="' + token + '"/>');
42                        }
43                        form.addClass('g-loaded');
44                        func_ets_rcf.loadReCaptchaV3($('form:not(.g-loaded)'));
45                    }
46                });
47            });
48        }
49    }
50}
51$(document).ready(function () {
52    if (ETS_RCF_GOOGLE_V3_CAPTCHA_SITE_KEY) {
53        func_ets_rcf.loadReCaptchaV3($('form:not(.g-loaded)'));
54    }
55    if($('#customer-form #field-captcha').length)
56    {
57        $('#customer-form #field-captcha').parents('.form-group.row').hide();
58        if($('#field-captcha').next('.help-block').length)
59        {
60            $('.captcha_register .g-recaptcha').after($('#field-captcha').next('.help-block').clone());
61        }
62    }
63});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.