PageSourceSearch

https://chilexpress.cl/Resources/assets/js/functions.js?v=134353866564523910

js chilexpress.cl collected 2026-10-02 03:51:04 UTC 5,638 bytes, 160 lines download raw bytes

1function registrate() {
2    $(window).scrollTop(0);
3    if ($(".menu-horizontal-amarillo").hasClass("open")) {
4        $('.button_menu_mobile').trigger("click");
5    }
6    hiddenForms();
7    $('.registro').show();
8    $('.registro-form').show();
9    $('#divRegistro').show();
10    $(".login_registro").slideDown("slow", function () {
11    });
12}
13function ingresa() {
14    $(window).scrollTop(0);
15    if ($(".menu-horizontal-amarillo").hasClass("open")) {
16        $('.button_menu_mobile').trigger("click");
17    }
18    hiddenForms();
19    $('.login').show();
20    $("#divIngreso").show();
21    $(".login_registro").slideDown("slow", function () {
22    });
23}
24function cerrar_login_registro() {
25    $(".login_registro").slideUp("slow", function () {
26    });
27}
28function recuperar() {
29    $(window).scrollTop(0);
30    if ($(".menu-horizontal-amarillo").hasClass("open")) {
31        $('.button_menu_mobile').trigger("click");
32    }
33    hiddenForms();
34    $('.recovery').show();
35    $(".login_registro").slideDown("slow", function () {
36    });
37    $('.recovery-form').show();
38}
39async function micuenta() {
40    $(window).scrollTop(0);
41    if ($(".menu-horizontal-amarillo").hasClass("open")) {
42        $('.button_menu_mobile').trigger("click");
43    }
44    hiddenForms();
45    if ($('#stateMicuenta').attr('value') == 'false') {
46        DesactivaLinks();
47        $('#aMiCuenta').attr('class', 'active');
48        await LLamadaMetodosMiCuenta(1, 0);
49        let parametrosFacturas = JSON.stringify({ numpagina: 1, orden: 3 });
50        LLamadaMetodosMiCuenta(7, parametrosFacturas);
51    } else {
52        DesactivaLinks();
53    }
54    $('.account').show();
55    $(".login_registro").slideDown("slow", function () {
56    });
57}
58function misdirecciones() {
59    $(window).scrollTop(0);
60    if ($(".menu-horizontal-amarillo").hasClass("open")) {
61        $('.button_menu_mobile').trigger("click");
62    }
63    hiddenForms();
64    $('.addresses').show();
65    $(".login_registro").slideDown("slow", function () {
66    });
67}
68function contacto() {
69    $(window).scrollTop(0);
70    if ($(".menu-horizontal-amarillo").hasClass("open")) {
71        $('.button_menu_mobile').trigger("click");
72    }
73    hiddenForms();
74    $('.contact').show();
75    $(".login_registro").slideDown("slow", function () {
76    });
77}
78function recoveryPassConfirm() {
79    $(window).scrollTop(0);
80    if ($(".menu-horizontal-amarillo").hasClass("open")) {
81        $('.button_menu_mobile').trigger("click");
82    }
83    hiddenForms();
84    $('.formRecovery').show();
85    $(".login_registro").slideDown("slow", function () {
86    });
87}
88function hiddenForms() {
89    $('.login').hide();
90    $('.registro').hide();
91    $('.account').hide();
92    $('.addresses').hide();
93    $('.recovery').hide();
94    $('.contact').hide();
95    $('#successRegisterMessage').css('display', 'none');
96    $('#ErroresRegistro').css('display', 'none');
97    $('#successRecoveryPassMessage').css('display', 'none');
98    $('#ErroresRecuperacionPass').css('display', 'none');
99}
100$(document).ready(function () {
101
102    if (window.location.pathname.split('/')[1] == 'RecuperarClave') {
103        recoveryPassConfirm();
104    }
105
106    $('#Cabecera_Cabecera_txtSearch').keypress(
107        function (e) {
108            if (this.value.length > 11) {
109                e.preventDefault();
110            }
111            if (e.which == 13) {
112                e.preventDefault();
113                if ($('#Cabecera_Cabecera_txtSearch').val() != '') {
114                    $('#Cabecera_btnBuscar').click();
115                } else {
116                    return false;
117                }
118            }
119        });
120    $('#ContenidoPagina_Cabecera_txtSearch').keypress(
121        function (e) {
122            if (this.value.length > 11) {
123                e.preventDefault();
124            }
125            if (e.which == 13) {
126                e.preventDefault();
127                if ($('#ContenidoPagina_Cabecera_txtSearch').val() != '') {
128                    $('#ContenidoPagina_Cabecera_btnBuscar').click();
129                } else {
130                    return false;
131                }
132            }
133        });
134    $('#Cabecera_Cabecera_txtSearch').bind('paste keyup', function (e) {
135        let text = document.getElementById('Cabecera_Cabecera_txtSearch').value;
136        text = text.replace(/[^\d]/g, '');
137        jQuery(this).val(text);
138    });
139    $('#ContenidoPagina_Cabecera_txtSearch').bind('paste keyup', function (e) {
140        let text = document.getElementById('ContenidoPagina_Cabecera_txtSearch').value;
141        text = text.replace(/[^\d]/g, '');
142        jQuery(this).val(text);
143    });
144    $("#btnSerPickUp").on("click", function () {
145        const element = document.getElementById("ContenidoPagina_cxpForm");
146        document.getElementById('ContenidoPagina_branchType').value = "1";
147        document.getElementById('ContenidoPagina_cxpForm').style.display = "block";
148        $(this).addClass("active");
149        $("#btnSerAgente").removeClass("active");
150        element.scrollIntoView({ behavior: "smooth", block: "end", inline: "nearest" });
151    });
152    $("#btnSerAgente").on("click", function () {
153        const element = document.getElementById("ContenidoPagina_cxpForm");
154        document.getElementById('ContenidoPagina_branchType').value = "2";
155        document.getElementById('ContenidoPagina_cxpForm').style.display = "block";
156        $(this).addClass("active");
157        $("#btnSerPickUp").removeClass("active");
158        element.scrollIntoView({ behavior: "smooth", block: "end", inline: "nearest" });
159    });
160});

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.