PageSourceSearch

https://www.tuco.net/modules/recaptcha/views/js/front.js

js tuco.net collected 2026-10-01 16:07:16 UTC 2,183 bytes, 64 lines download raw bytes

1/*
2 * 2007-2019 PrestaShop
3 *
4 * NOTICE OF LICENSE
5 *
6 * This source file is subject to the Academic Free License (AFL 3.0)
7 * that is bundled with this package in the file LICENSE.txt.
8 * It is also available through the world-wide-web at this URL:
9 * http://opensource.org/licenses/afl-3.0.php
10 * If you did not receive a copy of the license and are unable to
11 * obtain it through the world-wide-web, please send an email
12 * to [email protected] so we can send you a copy immediately.
13 *
14 * DISCLAIMER
15 *
16 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
17 * versions in the future. If you wish to customize PrestaShop for your
18 * needs please refer to http://www.prestashop.com for more information.
19 *
20 *  @author    PrestaShop SA <[email protected]>
21 *  @copyright 2007-2019 PrestaShop SA
22 *  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
23 *  International Registered Trademark & Property of PrestaShop SA
24 */
25
26var onloadCallback = function() {
27    grecaptcha.render('g-recaptcha', {});
28};
29var onloadCallback_1_7 = function() {
30    grecaptcha.render('g-recaptcha', {});
31	$(document).ready(function() {
32		var captchaNotification = $('#notifications');
33		if(captchaNotification.length){
34			var checkCaptchaText = captchaNotification.html();
35			var captchaBlock = $('#g-recaptcha');
36			if(checkCaptchaText.indexOf('danger') !== -1 && captchaBlock.length){
37				captchaBlock.after(captchaNotification.find('.alert.alert-danger'));
38                $('#checkout-personal-information-step').trigger('click');
39				$('html, body').animate({
40					scrollTop: captchaBlock.offset().top
41				}, 1000);
42			}
43		}
44	});
45};
46
47
48$(document).ready(function() {
49
50    $.ajaxSetup({
51        beforeSend: function(jqXHR, settings) {
52            if ($('#g-recaptcha-response').length) {
53		if (settings.data.indexOf('submitAccount') !== -1 && settings.data.indexOf('g-recaptcha-response') === -1) {
54		    settings.data += '&g-recaptcha-response=' + $('#g-recaptcha-response').val();
55		}
56	    }
57        },
58	complete: function(jqXHR,status) {
59	    if ($('#g-recaptcha-response').length) {
60		grecaptcha.reset();
61	    }
62	}
63    });
64});

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.