PageSourceSearch

https://libros.cc/public/js/functions_register.js?v=2.10.2

js libros.cc collected 2026-10-02 04:08:10 UTC 7,282 bytes, 238 lines download raw bytes

1$(document).ready(function () {
2    /*
3    grecaptcha.ready(function () {
4        document.getElementById('login').addEventListener('click', function (e) {
5            e.preventDefault();
6            $('#spinnerloading').hide();
7            grecaptcha.execute('6Ldp39QmAAAAALBvIvWswZ1kOhtfU6ebMKIlHRKO', { action: 'submit' }).then(function (token) {
8                var form = document.getElementById('kt_sign_in_form');
9                // Crear un input oculto para enviar el token
10                var hiddenInput = document.createElement('input');
11                hiddenInput.type = 'hidden';
12                hiddenInput.name = 'recaptcha_response';
13                hiddenInput.value = token;
14                form.appendChild(hiddenInput);
15
16                // Enviar el formulario
17                form.submit();
18                $('#showlogin').show();
19
20            });
21        });
22
23    });
24    */
25    var idCountry = $('#inputCountryRegister').val();
26
27    $.ajax({
28        url: '../internal/getProvincesHandler.php?id_country=' + idCountry,
29        type: "GET",
30
31        success: function (data) {
32            $('#divprovinces').html(data);
33
34        }
35
36    });
37
38    $.ajax({
39        url: '../internal/getProvincesHandler.php?id_country=' + idCountry + '&id=inputProvinceDropdownBilling',
40        type: "GET",
41
42        success: function (data) {
43            $('#divprovincesBilling').html(data);
44
45        }
46
47    });
48
49    $(document).on('change', '#inputProvinceDropdown', function () {
50        idProvince = $(this).val();
51        $('#inputProvinceRegister').val(idProvince);
52        $.ajax({
53            url: '../internal/getCitiesHandler.php?id_province=' + idProvince,
54            type: "GET",
55
56            success: function (data) {
57                $('#divcities').html(data);
58
59            }
60
61        });
62        idProvince = idProvince.padStart(2, '0');
63        $('#inputPostalCodeRegister').val(idProvince);
64    })
65
66    $(document).on('change', '#inputProvinceDropdownBilling', function () {
67        idProvince = $(this).val();
68        $('#inputProvinceRegisterBilling').val(idProvince);
69        $.ajax({
70            url: '../internal/getCitiesHandler.php?id_province=' + idProvince + '&id=inputCityDropdownBilling',
71            type: "GET",
72
73            success: function (data) {
74                $('#divcitiesBilling').html(data);
75
76            }
77
78        });
79        idProvince = idProvince.padStart(2, '0');
80        $('#inputPostalCodeRegisterBilling').val(idProvince);
81    })
82
83    $(document).on('change', '#inputCityDropdown', function () {
84        idCity = $(this).val();
85        $('#inputCityRegister').val(idCity);
86
87    })
88
89    $(document).on('change', '#inputCityDropdownBilling', function () {
90        idCity = $(this).val();
91        $('#inputCityRegisterBilling').val(idCity);
92
93    })
94
95    $(document).on('change', '#inputCountryRegister', function () {
96        idCountry = $(this).val();
97        $.ajax({
98            url: '../internal/getProvincesHandler.php?id_country=' + idCountry,
99            type: "GET",
100
101            success: function (data) {
102                $('#divprovinces').html(data);
103                $('#divcities').html('');
104
105            }
106
107        });
108    })
109
110    $(document).on('change', '#inputCountryRegisterBilling', function () {
111        idCountry = $(this).val();
112        $.ajax({
113            url: '../internal/getProvincesHandler.php?id_country=' + idCountry + '&id=inputProvinceDropdownBilling',
114            type: "GET",
115
116            success: function (data) {
117                $('#divprovincesBilling').html(data);
118                $('#divcitiesBilling').html(data);
119            }
120
121        });
122    })
123    $(document).on('change', '#inputNameRegister', function () {
124        $('#inputShippingNameRegister').val($('#inputNameRegister').val());
125    })
126
127    $(document).on('change', '#inputLastNameRegister', function () {
128        $('#inputShippingLastNameRegister').val($('#inputLastNameRegister').val());
129    })
130    $(document).on('change', '#inputPhoneRegister', function () {
131        $('#inputShippingPhoneRegister').val($('#inputPhoneRegister').val());
132    })
133
134    $('#copyBillingData').click(function () {
135        $('#inputNameRegisterBilling').val($('#inputNameRegister').val() + " " + $('#inputLastNameRegister').val());
136        $('#inputAddressRegisterBilling').val($('#inputAddressRegister').val());
137        //$('#inputProvinceRegisterBilling').val($('#inputProvinceRegister').val()).trigger('change');
138        //$('#inputCityRegisterBilling').val($('#inputCityRegister').val()).trigger('change');
139        $('#inputPostalCodeRegisterBilling').val($('#inputPostalCodeRegister').val());
140        $('#inputCountryRegisterBilling').val($('#inputCountryRegister').val()).trigger('change');
141
142        idCountry = $('#inputCountryRegister').val();
143        idProvince = $('#inputProvinceRegister').val();
144        $.ajax({
145            url: '../internal/getProvincesHandler.php?id_country=' + idCountry + '&id=inputProvinceDropdownBilling&id_province=' + idProvince,
146            type: "GET",
147
148            success: function (data) {
149                $('#divprovincesBilling').html(data);
150
151                $('#inputProvinceRegisterBilling').val($('#inputProvinceRegister').val()).trigger('change');
152
153
154                $.ajax({
155                    url: '../internal/getCitiesHandler.php?id_province=' + idProvince + '&id=inputCityDropdownBilling',
156                    type: "GET",
157
158                    success: function (data) {
159                        $('#divcitiesBilling').html(data);
160                        $('#inputCityDropdownBilling').val($('#inputCityDropdown').val()).trigger('change');
161                    }
162
163                });
164
165            }
166
167        });
168
169
170
171    })
172
173    ///Cargar botón de Google
174
175    $.ajax({
176        url: '../internal/checkGoogleLogin.php',
177        type: "GET",
178
179        success: function (data) {
180            $('#googlebutton').html(data);
181
182        }
183
184    });
185
186    $.ajax({
187        url: '../internal/checkGoogleLogin.php',
188        type: "GET",
189
190        success: function (data) {
191            $('#googlebuttonregister').html(data);
192
193        }
194
195    });
196
197    $('#changeToRegister').click(function () {
198        $('#logincustomer').hide();
199        $('#newcustomer').show();
200
201    })
202
203    $('#changeToLogin').click(function () {
204        $('#logincustomer').show();
205        $('#newcustomer').hide();
206
207    })
208
209    //Rellenamos los intereses
210    $.ajax({
211        url: '../internal/getInterestsHandler.php?id=inputReadingInterest1',
212        type: "GET",
213
214        success: function (data) {
215            $('#divReadingInterest1').html(data);
216        }
217    });
218
219    $.ajax({
220        url: '../internal/getInterestsHandler.php?id=inputReadingInterest2',
221        type: "GET",
222
223        success: function (data) {
224            $('#divReadingInterest2').html(data);
225        }
226    });
227
228    $.ajax({
229        url: '../internal/getInterestsHandler.php?id=inputReadingInterest3',
230        type: "GET",
231
232        success: function (data) {
233            $('#divReadingInterest3').html(data);
234        }
235    });
236
237
238})

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.