PageSourceSearch

https://gasco.cl/Static/js/globals2020.js?v=6.0

js gasco.cl collected 2026-10-05 02:38:33 UTC 36,928 bytes, 1,170 lines download raw bytes

1$(function(){
2    $(".close_alert").click(function(){
3        $(".alert-danger").stop().animate({opacity:'0'},1000,function(){
4            $(this).hide();
5        });
6    }); 
7
8    $(".openmodal").click(function(){
9         $('.infoImport').css("opacity","1").css("display","block");
10    });
11
12    //setTimeout(function () {
13
14     //   $('.infoImport').fadeIn().css("opacity", "1");
15        //$('.infoImport').css("opacity", "1").css("display", "block");
16
17   // }, 1500);
18});
19
20//$("#link-pago-direccion").click(function(){
21//    window.location.href = "/PagoCuenta/BuscarDireccion";
22//});
23
24$(window).keydown(function (event) {
25
26    if (event.keyCode == 13) {
27        //console.log(event.target.id);
28        //console.log(event.target);
29        id = (event.target.id);
30        if (id == "txRutCompraCilindro")
31            $("[compra_tu_cilindro]").click();
32        if (id == "txRutLoginSucursal" || id == "txPasswdLoginSucursal")
33            $("[acceso-sucursal]").click();
34        if (id == "direccion")
35            codeAddressD();
36        if (id == "txRutCompraCilindro")
37            $("[compra_tu_cilindroh]").click();
38        if (id == "txRutLoginCargaEstanque" || id == "txPasswdLoginCargaEstanque")
39            $("[acceso-cargaestanque]").click();
40        event.preventDefault();
41        return false;
42    }
43});
44
45$(window).on('beforeunload', function () {
46    $(window).scrollTop(0);
47});
48
49
50//PERMITIR SOLO INGRESO DE LETRAS A UN INPUT
51$(document).ready(function () {
52    $(".soloLetras").keypress(function (key) {
53        //window.console.log(key.charCode)
54        if ((key.charCode < 97 || key.charCode > 122)//letras mayusculas
55            && (key.charCode < 65 || key.charCode > 90) //letras minusculas
56            && (key.charCode != 45) //retroceso
57            && (key.charCode != 241) //ñ
58             && (key.charCode != 209) //Ñ
59             && (key.charCode != 32) //espacio
60             && (key.charCode != 225) //á
61             && (key.charCode != 233) //é
62             && (key.charCode != 237) //í
63             && (key.charCode != 243) //ó
64             && (key.charCode != 250) //ú
65             && (key.charCode != 193) //Á
66             && (key.charCode != 201) //É
67             && (key.charCode != 205) //Í
68             && (key.charCode != 211) //Ó
69             && (key.charCode != 218) //Ú
70             && (key.charCode != 0) // FIREFOX
71             && (key.charCode != 16) // FIREFOX
72            )
73            return false;
74    });
75});
76
77
78function goBack() {
79    window.history.back();
80}
81
82function displayError(jqXHR, textStatus, errorThrown) {
83    alerta(textStatus);
84    //alerta("! Se produjo un error al intentar realizar la operación, favor contactar al administrador. ¡");
85}
86
87function localizar() {
88    //navigator.geolocation.getCurrentPosition(ubicacion, error);
89}
90
91function ubicacion(posicion) {
92
93    var latitud = posicion.coords.latitude;
94    var longitud = posicion.coords.longitude;
95    var precision = posicion.coords.accuracy;
96
97    alert("Lat=" + latitud + " - Long=" + longitud + " - Precision=" + precision);
98}
99
100function addOptionRegion(id, regActiva) {
101    if (regActiva == null)
102        regActiva = 13;
103    $.ajax({
104        method: "GET",
105        url: "/Ajax/getOptionsRegion"
106    })
107    .done(function (msg) {
108        let msgReplace = numeroRegion(msg);
109        $("#" + id).html(msgReplace);
110        $("#" + id + " option[value='" + regActiva + "']").attr("selected", "selected");
111    });
112}
113
114
115function getOptionsZonasPC(id, zonaActiva) {
116    if (zonaActiva == null)
117        zonaActiva = 0;
118    $.ajax({
119        method: "GET",
120        url: "/Ajax/getOptionsZonasPC"
121    })
122    .done(function (msg) {
123        $("#" + id).html('<option value="0">--Seleccionar--</option>' + msg);
124        $("#" + id + " option[value='" + zonaActiva + "']").attr("selected", "selected");
125    });
126}
127
128function numeroRegion(cadena) {
129    cadena = cadena.replace('XIII', 'Región');
130    cadena = cadena.replace('XI Aisén', 'Región Aisén');
131    cadena = cadena.replace('I de', 'Región de');
132    cadena = cadena.replace('II de', 'Región de');
133    cadena = cadena.replace('III de', 'Región de');
134    cadena = cadena.replace('IV de', 'Región de');
135    cadena = cadena.replace('V de Valparaíso', 'Región de Valparaíso');
136    cadena = cadena.replace('VI de', 'Región de');
137    cadena = cadena.replace('VII de', 'Región de');
138    cadena = cadena.replace('VIII de', 'Región de');
139    cadena = cadena.replace('IX de', 'Región de');
140    cadena = cadena.replace('X de', 'Región de');
141    cadena = cadena.replace('XII de', 'Región de');
142    cadena = cadena.replace('XIV de', 'Región de');
143    cadena = cadena.replace('XV de', 'Región de');
144    cadena = cadena.replace('XVI de', 'Región de');
145
146    return cadena;
147}
148
149function alerta(msg) {
150    $("#message-alert").html(msg);
151
152    $('#modalAlert').modal({
153        keyboard: false,
154        backdrop: 'static',
155    });
156
157    $('#modalAlert').css("z-index", "999999");
158
159}
160function isObjectEmpty(obj) {
161    for (var name in obj) {
162        return false;
163    }
164    return true;
165}
166function error(error) {
167    if (error.code == 0)
168        alert("Error Desconocido");
169    else if (error.code == 1)
170        alert("No fue posible contactarte");
171    else if (error.code == 2)
172        alert("No hay una ubicacion disponible");
173    else if (error.code == 3)
174        alert("Tiempo agotado");
175    else
176        alert("Error Desconocido");
177}
178
179
180function CambiarTextoBoton(boton) {
181
182    //console.log('Mas');
183
184    if (boton.value == 'Ver más') {
185
186        boton.value = 'Ver menos';
187        //console.log('Menos');
188    }
189    else if (boton.value == 'Ver menos') {
190        boton.value = 'Ver más';
191        //console.log('Más');
192    }
193
194
195}
196
197
198function getAddressInfo(results) {
199
200    var addr = {};
201    //console.log(results[0].formatted_address);
202    addr.latitud = results[0].geometry.location.lat();
203    addr.longitud = results[0].geometry.location.lng();
204    //addr.street_number = true;
205    addr.success = true;
206    if (results.length >= 1) {
207        for (var ii = 0; ii < results[0].address_components.length; ii++) {
208            var street_number = route = street = city = state = zipcode = country = formatted_address = '';
209            var types = results[0].address_components[ii].types.join(",");
210            if (types == "street_number") {
211                addr.street_number = results[0].address_components[ii].long_name;
212            }
213            if (types == "route" || types == "point_of_interest,establishment") {
214                addr.route = results[0].address_components[ii].long_name;
215            }
216            if (types == "sublocality,political" || types == "locality,political" || types == "neighborhood,political" || types == "administrative_area_level_3,political") {
217                addr.city = (city == '' || types == "locality,political") ? results[0].address_components[ii].long_name : city;
218            }
219            if (types == "administrative_area_level_1,political") {
220                addr.state = results[0].address_components[ii].short_name;
221            }
222            if (types == "postal_code" || types == "postal_code_prefix,postal_code") {
223                addr.zipcode = results[0].address_components[ii].long_name;
224            }
225            if (types == "country,political") {
226                addr.country = results[0].address_components[ii].long_name;
227            }
228            if (types == "locality,political") {
229                addr.locality = results[0].address_components[ii].long_name;
230            }
231
232
233
234        }
235
236        if (!addr.street_number) {
237            addr.success = false;
238        } else {
239            addr.success = true;
240        }
241
242
243        // EXCEPCIÓN PARA DIRECCIÖN EL RODEO
244        if (results[0].formatted_address == "Av. El Rodeo, Lampa, Región Metropolitana, Chile") {
245            addr.success = true;
246        }
247
248        for (name in addr) {
249            //console.log('### google maps api ### ' + name + ': ' + addr[name]);
250        }
251
252    } else {
253
254        addr.success = false;
255
256    }
257
258
259    return addr;
260
261}
262
263
264
265$(document).ready(function () {
266
267
268
269
270
271    $('#trama').click(function () {
272        $('#trama').fadeOut();
273        $('.cuadroHerramientasOculto').fadeOut("slow");
274    });
275
276    $('#contentMenuHome .background-menu-home').click(function (event) {
277        $("#contentMenuHome").slideToggle("slow");
278        event.stopPropagation();
279    });
280    /*$('html').one('click', function () {
281        $("#contentMenuHome").slideToggle("slow");
282    });*/
283
284    // $('[data-toggle="tooltip"]').tooltip();
285
286    /*//////////////////////////////////////////////////////////////////////////*/
287    /*//////////////////////////////////////////////////////////////////////////*/
288
289    $("[action-menu] li").click(function () {
290        var ob = $(this);
291
292        var target = ob.attr("action-menu");
293
294        $("#" + target).slideToggle();
295
296    });
297
298
299    $("[hover-style][active!='true']").hover(
300      function () {
301          var ob = $(this);
302          var ico = ob.find("a i");
303          var hoverIco = ico.attr("hover");
304          var style = ob.attr("hover-style");
305          ico.addClass(hoverIco);
306          ob.addClass(style);
307
308      }, function () {
309          var ob = $(this);
310          var ico = ob.find("a i");
311          var hoverIco = ico.attr("hover");
312          var style = ob.attr("hover-style");
313          ico.removeClass(hoverIco);
314          ob.removeClass(style);
315      }
316    );
317
318    $("[hover-style][active]").each(function (index) {
319        var ob = $(this);
320        var ico = ob.find("a i");
321        var hoverIco = ico.attr("hover");
322        var style = ob.attr("hover-style");
323        ico.addClass(hoverIco);
324        ob.addClass(style);
325    });
326
327    $("[action-menu]").click(function () {
328        var ob = $(this);
329        var target = ob.attr("action-menu");
330        $("#" + target).slideToggle("slow");
331    });
332
333    $('#collapseOne').on('show.bs.collapse', function () {
334        //console.log($(this).attr("aria-labelledby"));
335        var id = $(this).attr("aria-labelledby");
336        $("#" + id).addClass('accordion-show');
337    });
338
339    $('#collapseTwo').on('show.bs.collapse', function () {
340        //console.log($(this).attr("aria-labelledby"));
341        var id = $(this).attr("aria-labelledby");
342        $("#" + id).addClass('accordion-show');
343    });
344    $('#collapseThree').on('show.bs.collapse', function () {
345        //console.log($(this).attr("aria-labelledby"));
346        var id = $(this).attr("aria-labelledby");
347        $("#" + id).addClass('accordion-show');
348    });
349    $('#collapseFour').on('show.bs.collapse', function () {
350        //console.log($(this).attr("aria-labelledby"));
351        var id = $(this).attr("aria-labelledby");
352        $("#" + id).addClass('accordion-show');
353    });
354
355
356
357    $('#collapseOne').on('hide.bs.collapse', function () {
358        //console.log($(this).attr("aria-labelledby"));
359        var id = $(this).attr("aria-labelledby");
360        $("#" + id).removeClass('accordion-show');
361    });
362    $('#collapseTwo').on('hide.bs.collapse', function () {
363        //console.log($(this).attr("aria-labelledby"));
364        var id = $(this).attr("aria-labelledby");
365        $("#" + id).removeClass('accordion-show');
366    });
367    $('#collapseThree').on('hide.bs.collapse', function () {
368        //console.log($(this).attr("aria-labelledby"));
369        var id = $(this).attr("aria-labelledby");
370        $("#" + id).removeClass('accordion-show');
371    });
372    $('#collapseFour').on('hide.bs.collapse', function () {
373        //console.log($(this).attr("aria-labelledby"));
374        var id = $(this).attr("aria-labelledby");
375        $("#" + id).removeClass('accordion-show');
376    });
377
378    // DESKTOP
379    $("[button-pago-cuenta]").click(function () {
380
381        var numCliente = $("#txNumCliePC").val();
382
383        var status = statusForm("#formPagoCuenta");
384
385        var subNumCli = numCliente.substring(0,1);
386
387        if(parseInt(subNumCli) <= 0){
388            alert("El numero de cuenta cliente no debe comenzar en 0");
389            $("#txNumCliePC").addClass('input-alert');
390            $("#txNumCliePC").focus();
391            event.returnValue = false;
392        }else if (numCliente.length > 10){
393            alert("El número de cuenta cliente debe ser hasta 10 caracteres");
394            $("#txNumCliePC").addClass('input-alert');
395            $("#txNumCliePC").focus();
396            event.returnValue = false;
397        }else{
398            if (status) {
399                $("#txNumCliePC").removeClass('input-alert');
400                location.href = "/PagoCuenta?c=" + numCliente;
401            }
402        }
403
404        
405    });
406
407
408    // MENU MOBILE
409    $("[button-pago-cuenta2]").click(function () {
410
411        var numCliente = $("#txNumCliePC").val();
412
413        var status = statusForm("#formPagoCuenta");
414
415        var subNumCli = numCliente.substring(0,1);
416
417        if(parseInt(subNumCli) <= 0){
418            alert("El numero de cuenta cliente no debe comenzar en 0");
419            $("#txNumCliePC").addClass('input-alert');
420            $("#txNumCliePC").focus();
421            event.returnValue = false;
422        }else if (numCliente.length > 10){
423            alert("El número de cuenta cliente debe ser hasta 10 caracteres");
424            $("#txNumCliePC").addClass('input-alert');
425            $("#txNumCliePC").focus();
426            event.returnValue = false;
427        }else{
428            if (status) {
429                $("#txNumCliePC").removeClass('input-alert');
430                location.href = "/PagoCuenta?c=" + numCliente;
431            }
432        }
433    });
434
435    //Blur txtCliente
436    $("#txNumCliePC").blur(function(){
437        var numCliente = $(this).val();
438
439        var subNumCli = numCliente.substring(0,1);
440
441        if(numCliente == ""){
442            $(this).addClass('input-alert');
443            event.returnValue = false;
444        }else if(parseInt(subNumCli) <= 0){
445            $(this).addClass('input-alert');
446            event.returnValue = false;
447        }else if (numCliente.length > 10){
448            $(this).addClass('input-alert');
449            event.returnValue = false;
450        }else{
451            $(this).removeClass('input-alert');
452        }
453    });
454
455    // DESKTOP
456    $("[compra_tu_cilindroh]").click(function () {
457        var rut = $("#txRutCompraCilindro").val();
458        rut = parseInt(rut).toString();
459        if (rut.length == 9) {
460            var status = statusForm("#tabCompraCilindro");
461            if (status) {
462                irPedido(rut);
463            }
464        } else {
465            $("#txRutCompraCilindro").addClass("input-alert");
466        }
467    });
468
469    // DESKTOP
470    $("[compra_tu_cilindroh2020]").click(function () {
471        var rut = $("#txRutCompraCilindro").val();
472        rut = parseInt(rut).toString();
473        if (rut.length == 9) {
474            var status = statusForm("#tabCompraCilindro");
475            if (status) {
476                irPedido2020(rut);
477            }
478        } else {
479            $("#txRutCompraCilindro").addClass("input-alert");
480        }
481    });
482
483    // DESKTOP
484    $("[compra_tu_cilindro]").click(function () {
485
486        var rut = $("#txRutCompraCilindro").val();
487        rut = parseInt(rut).toString();
488        if (rut.length == 9) {
489            var status = statusForm("#collapseFour");
490            if (status) {
491
492                irPedido(rut);
493
494            }
495        } else {
496            $("#txRutCompraCilindro").addClass("input-alert");
497        }
498    });
499
500
501    //ingreso pedido express
502
503    // MENU MOBILE
504    $("[compra_tu_cilindro2]").click(function () {
505
506        var rut = $("#txRutCompraCilindro2").val();
507        rut = parseInt(rut).toString();
508        if (rut.length == 9) {
509            var status = statusForm("#collapseFour2");
510            if (status) {
511
512                irPedido(rut);
513
514            }
515        } else {
516            $("#txRutCompraCilindro2").addClass("input-alert");
517        }
518    });
519
520    // DESKTOP
521    $("[acceso-cargaestanque]").click(function () {
522        var status = statusForm("#tabCargaEstanque");
523        var rut = $("#txRutLoginCargaEstanque").val();
524        var passwd = $("#txPasswdLoginCargaEstanque").val();
525        var redirect = url('?urlRedirect'); 
526
527        if (status == true) {
528            loading(1);
529            $.ajax({
530                url: "/ajax/Login",
531                type: "POST",
532                data: { "rutCompleto": rut, "passwd": passwd, btnEstanque: "1"},
533                dataType: "json",
534                beforeSend: function () {
535                    loading(1);
536                },
537                success: function (data, textStatus, jqXHR) {
538                    if (data.status == true) {
539                        if (!isEmpty(redirect)) {
540                            setTimeout(function () { window.location.href = redirect; }, 1000);
541                        } else {
542                            //location.href = "/sucursal/Estanque/carga-estanque";
543                        }
544                    } else {
545                        loading(0);
546                        alerta("Datos de acceso no válidos! Verifique su rut y contraseña.");
547                    }
548                },
549                error: function (jqXHR, textStatus, errorThrown) {
550                    loading(0);
551                    displayError(jqXHR, "Sistema temporalmente fuera de servicio, favor intente mas tarde", errorThrown)
552                }
553            });
554        }
555
556    });
557
558
559
560    // MENU MOBILE
561    $("[acceso-cargaestanque2]").click(function () {
562        var status = statusForm("#tabCargaEstanque2");
563        var rut = $("#txRutLoginCargaEstanque2").val();
564        var passwd = $("#txPasswdLoginCargaEstanque2").val();
565        var redirect = url('?urlRedirect');
566
567        if (status == true) {
568            loading(1);
569            $.ajax({
570                url: "/ajax/Login",
571                type: "POST",
572                data: { "rutCompleto": rut, "passwd": passwd },
573                dataType: "json",
574                beforeSend: function () {
575                    loading(1);
576                },
577                success: function (data, textStatus, jqXHR) {
578                    if (data.status == true) {
579                        if (!isEmpty(redirect)) {
580                            location.href = redirect;
581                        } else {
582                            //location.href = "/sucursal/Estanque/carga-estanque";
583                        }
584                    } else {
585                        loading(0);
586                        alerta("Datos de acceso no válidos! Verifique su rut y contraseña.");
587                    }
588                },
589                error: function (jqXHR, textStatus, errorThrown) {
590                    loading(0);
591                    displayError(jqXHR, "Sistema temporalmente fuera de servicio, favor intente mas tarde", errorThrown)
592                }
593            });
594        }
595
596    });
597
598    function isEmpty(str) {
599        return (!str || 0 === str.length);
600    }
601
602
603
604
605    // DESKTOP
606    $("[acceso-sucursal]").click(function () {
607        var status = statusForm("#tabAccesoSucursal");
608        var rut = $("#txRutLoginSucursal").val();
609        var passwd = $("#txPasswdLoginSucursal").val();
610
611        if (status == true) {
612            loading(1);
613            $.ajax({
614                url: "/ajax/Login/",
615                type: "POST",
616                data: { "rutCompleto": rut, "passwd": passwd },
617                dataType: "json",
618                success: function (data, textStatus, jqXHR) {
619                    if (data.status == true) {
620                        location.href = "/sucursal";
621                    } else if (data.status == false) {
622                        loading(0);
623                        alerta("Datos de acceso no válidos! Verifique su rut y contraseña.");
624                    }
625                },
626                error: function (jqXHR, textStatus, errorThrown) {
627                    loading(0);
628                    displayError(jqXHR, "Sistema temporalmente fuera de servicio, favor intente mas tarde", errorThrown)
629                }
630            });
631        }
632    });
633
634    // MENU MOBILE
635    $("[acceso-sucursal2]").click(function () {
636        var status = statusForm("#tabAccesoSucursal2");
637        var rut = $("#txRutLoginSucursal2").val();
638        var passwd = $("#txPasswdLoginSucursal2").val();
639
640        if (status == true) {
641            loading(1);
642            $.ajax({
643                url: "/ajax/Login/",
644                type: "POST",
645                data: { "rutCompleto": rut, "passwd": passwd },
646                dataType: "json",
647                success: function (data, textStatus, jqXHR) {
648                    if (data.status == true) {
649                        location.href = "/sucursal";
650                    } else {
651                        loading(0);
652                        alerta("Datos de acceso no válidos! Verifique su rut y contraseña.");
653                    }
654                },
655                error: function (jqXHR, textStatus, errorThrown) {
656                    loading(0);
657                    displayError(jqXHR, "Sistema temporalmente fuera de servicio, favor intente mas tarde", errorThrown)
658                }
659            });
660        }
661    });
662
663});
664
665function irPedido(fono) {
666    $.ajax({
667        url: "/../Ajax/Pedido/setPedidoPublico",
668        type: "POST",
669        data: { "fono": fono },
670        dataType: "json",
671        success: function (data, textStatus, jqXHR) {
672            if (data.status) {
673                location.href = "/Pedido";
674            }
675
676        },
677        error: function (jqXHR, textStatus, errorThrown) {
678            displayError(jqXHR, textStatus, errorThrown)
679        }
680
681    });
682    return false;
683}
684
685function irPedido2020(fono) {
686    $.ajax({
687        url: "/../Ajax/Pedido2020/setPedidoPublico",
688        type: "POST",
689        data: { "fono": fono },
690        dataType: "json",
691        success: function (data, textStatus, jqXHR) {
692            if (data.status) {
693                location.href = "/Pedido2020";
694            }
695
696        },
697        error: function (jqXHR, textStatus, errorThrown) {
698            displayError(jqXHR, textStatus, errorThrown)
699        }
700
701    });
702    return false;
703}
704
705
706function irPedidoFB(fbid, nombre) {
707    $.ajax({
708        url: "/../Ajax/Pedido/setPedidoPublico",
709        type: "POST",
710        data: { "fbID": fbid, "fbName": nombre },
711        dataType: "json",
712        success: function (data, textStatus, jqXHR) {
713            if (data.status) {
714                location.href = "/Pedido";
715            }
716
717        },
718        error: function (jqXHR, textStatus, errorThrown) {
719            alerta("Ocurrió un problema, inténtalo mas tarde");
720        }
721
722    });
723    return false;
724}
725
726function irPedidoTWT(twt, nombre) {
727    $.ajax({
728        url: "/../Ajax/Pedido/setPedidoPublico",
729        type: "POST",
730        data: { "TwtID": twt, "twtName": nombre },
731        dataType: "json",
732        success: function (data, textStatus, jqXHR) {
733            if (data.status) {
734                location.href = "/Pedido";
735            }
736
737        },
738        error: function (jqXHR, textStatus, errorThrown) {
739            alerta("Ocurrió un problema, inténtalo mas tarde");
740        }
741
742    });
743    return false;
744}
745
746$(function () {
747
748});
749
750function activeTabCompraCilindro() {
751    /*$('#myTab li:eq(0) a').tab('show');
752    $("#contentMenuHome").slideToggle("slow");*/
753    $('#accordion div.panel:eq(3) a').trigger("click");
754    $("#contentMenuHome").slideToggle("slow");
755    $('#trama').fadeIn("slow");
756}
757
758function activeTabCargaTuEstanque() {
759    /*$('#myTab li:eq(1) a').tab('show');
760    $("#contentMenuHome").slideToggle("slow");*/
761    $('#accordion div.panel:eq(2) a').trigger("click");
762    $("#contentMenuHome").slideToggle("slow");
763    $('#trama').fadeIn("slow");
764}
765
766function activeTabPagoCuenta() {
767    /*$('#myTab li:eq(2) a').tab('show');
768    $("#contentMenuHome").slideToggle("slow");*/
769    $('#accordion div.panel:eq(1) a').trigger("click");
770    $("#contentMenuHome").slideToggle("slow");
771    $('#trama').fadeIn("slow");
772}
773
774function activeTabSucursal() {
775    /*$('#myTab li:eq(3) a').tab('show');
776    $("#contentMenuHome").slideToggle("slow");*/
777    $('#accordion div.panel:eq(0) a').trigger("click");
778    $("#contentMenuHome").slideToggle("slow");
779    $('#trama').fadeIn("slow");
780}
781
782
783/////////// Menu Interiores /////////
784
785function activeTabCompraCilindroInterior() {
786    $('#trama').fadeIn("slow");
787    $('.cuadroHerramientasOculto').fadeIn("slow");
788    $("#contentMenuHome").slideToggle("slow");
789    if ($('#collapseFour').hasClass('in')) {
790
791    } else {
792        $('#accordion div.panel:eq(3) a').trigger("click");
793    }
794}
795
796function activeTabCargaTuEstanqueInterior() {
797    $("#contentMenuHome").slideToggle("slow");
798    $('#trama').fadeIn("slow");
799    $('.cuadroHerramientasOculto').fadeIn("slow");
800    if ($('#collapseThree').hasClass('in')) {
801
802    } else {
803        $('#accordion div.panel:eq(2) a').trigger("click");
804    }
805}
806
807function activeTabPagoCuentaInterior() {
808    $("#contentMenuHome").slideToggle("slow");
809    $('.cuadroHerramientasOculto').fadeIn("slow");
810    $('#trama').fadeIn("slow");
811    if ($('#collapseTwo').hasClass('in')) {
812
813    } else {
814        $('#accordion div.panel:eq(1) a').trigger("click");
815    }
816}
817
818function activeTabSucursalInterior() {
819    $("#contentMenuHome").slideToggle("slow");
820    $('.cuadroHerramientasOculto').fadeIn("slow");
821    $('#trama').fadeIn("slow");
822    if ($('#collapseOne').hasClass('in')) {
823
824    } else {
825        $('#accordion div.panel:eq(0) a').trigger("click");
826    }
827}
828
829
830function MuestraContenido(id) {
831    $('.homeContent').slideUp('fast', function () {
832        $('.' + id).slideDown('slow');
833    });
834}
835
836function VolverContenidoInner(id) {
837    $('.' + id).slideUp('fast', function () {
838        $('.homeContent').slideDown('slow');
839    });
840}
841
842function VerValesCarga() {
843    $('.prod1').slideUp('fast', function () {
844        $('.prod10').slideDown('slow');
845    });
846}
847
848function VerValesCarga2() {
849    $('.prod3').slideUp('fast', function () {
850        $('.prod10').slideDown('slow');
851    });
852}
853
854
855function VolverPasoPedido1() {
856    $('#paso_2').slideUp('fast', function () {
857        $('#paso_1').slideDown('slow');
858    });
859}
860
861function VolverPasoPedido2() {
862    $('#paso_4').slideUp('fast', function () {
863        $('#paso_2').slideDown('slow');
864    });
865}
866
867
868
869function goToDiv(title) {
870    var altura = ($('#' + title).offset().top);
871    $("html, body").delay(1).animate({ scrollTop: altura }, 1000);
872}
873
874function goToDivClass(title) {
875    /*var altura = ($('.' + title).offset().top);
876    $("html, body").delay(1).animate({ scrollTop: altura }, 1000);*/
877    //$('html,body').animate({ scrollTop: $($(this).attr('href')).offset().top }, 1700);
878
879    document.location = '#myTab';
880}
881
882function goToCilindro() {
883    $(".menu-cilindro").trigger("click");
884    $("#trama").show();
885    goToDivClass('menu-cilindro');
886}
887
888function goToSucursal() {
889    /*setTimeout(function () { $('html,body').scrollTop(0); console.log("settimeout"); }, 3000);
890    $('html,body').scrollTop(0);*/
891    $('.menu-sucursal').trigger("click");
892    $("#trama").show();
893
894    goToDivClass('menu-sucursal');
895    //$('html,body').scrollTop(0);
896    //$('html, body').delay(2).animate({ scrollTop: 0 }, 'fast');
897
898
899}
900
901function goToPagoCuenta() {
902    $('.menu-pago-cuenta').trigger("click");
903    $("#trama").show();
904    goToDivClass('menu-pago-cuenta');
905}
906
907function goToCargaEstanque() {
908    $('.menu-carga-estanque').trigger("click");
909    $("#trama").show();
910    // $('body,html').animate({ scrollTop: 0 }, 1000);
911    return false;
912}
913
914function goToCilindroMenu() {
915    if ($('#headingFour').hasClass("accordion-show") == true) {
916        $('#btn-menu-principal').trigger("click");
917        //$(".menu-cilindro").trigger("click");
918        $("#trama").show();
919        $('body,html').animate({ scrollTop: 0 }, 1000);
920        return false;
921    } else {
922        $('#btn-menu-principal').trigger("click");
923        $(".menu-cilindro").trigger("click");
924        $("#trama").show();
925        $('body,html').animate({ scrollTop: 0 }, 1000);
926        return false;
927    }
928
929}
930
931function goToSucursalMenu() {
932    if ($('#headingOne').hasClass("accordion-show") == true) {
933        $('#btn-menu-principal').trigger("click");
934        $("#trama").show();
935        // goToDivClass('menu-sucursal');
936        $('body,html').animate({ scrollTop: 0 }, 1000);
937        return false;
938
939    } else {
940
941        $('#btn-menu-principal').trigger("click");
942        $('.menu-sucursal').trigger("click");
943        $("#trama").show();
944        // goToDivClass('menu-sucursal');
945        $('body,html').animate({ scrollTop: 0 }, 1000);
946        return false;
947    }
948
949}
950
951function goToPagoCuentaMenu() {
952    if ($('#headingTwo').hasClass("accordion-show") == true) {
953        $('#btn-menu-principal').trigger("click");
954        $("#trama").show();
955        goToDivClass('menu-pago-cuenta');
956    } else {
957        $('#btn-menu-principal').trigger("click");
958        $('.menu-pago-cuenta').trigger("click");
959        $("#trama").show();
960        // goToDivClass('menu-pago-cuenta');
961        $('body,html').animate({ scrollTop: 0 }, 1000);
962        return false;
963    }
964}
965
966
967function goToCargaEstanqueMenuTankReload() {
968    $('.menu-carga-estanque').trigger("click");
969    $("#trama").show();
970    $('body,html').animate({ scrollTop: 0 }, 1000);
971        return false;
972}
973
974function goToCargaEstanqueMenu() {
975    if ($('#headingThree').hasClass("accordion-show") == true) {
976        $('#btn-menu-principal').trigger("click");
977        $("#trama").show();
978        $('body,html').animate({ scrollTop: 0 }, 1000);
979        return false;
980    } else {
981        $('#btn-menu-principal').trigger("click");
982        $('.menu-carga-estanque').trigger("click");
983        $("#trama").show();
984        $('body,html').animate({ scrollTop: 0 }, 1000);
985        return false;
986    }
987}
988
989
990function goToPagoCuentaMobile() {
991    $('.menu-pago-cuenta').trigger("click");
992    $("#trama").show();
993    $('body,html').animate({ scrollTop: 0 }, 1000);
994    return false;
995}
996
997function goToCilindroMobile() {
998    $(".menu-cilindro").trigger("click");
999    $("#trama").show();
1000    $('body,html').animate({ scrollTop: 0 }, 1000);
1001    return false;
1002}
1003
1004function goToSucursalMobile() {
1005    $('.menu-sucursal').trigger("click");
1006    $("#trama").show();
1007    $('body,html').animate({ scrollTop: 0 }, 1000);
1008    return false;
1009}
1010
1011function goToCargaEstanqueMobile() {
1012    $('.menu-carga-estanque').trigger("click");
1013    $("#trama").show();
1014    $('body,html').animate({ scrollTop: 0 }, 1000);
1015    return false;
1016}
1017
1018function loading(n) {
1019    if (n == 1) {
1020        $('#container-loading').fadeIn();
1021    } else {
1022        $('#container-loading').fadeOut();
1023    }
1024
1025}
1026
1027function recargarDireccion() {
1028    window.location.href = "/PagoCuenta/BuscarDireccion";
1029}
1030
1031var matched, browser;
1032jQuery.uaMatch = function (ua) {
1033    ua = ua.toLowerCase();
1034
1035    var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
1036        /(webkit)[ \/]([\w.]+)/.exec(ua) ||
1037        /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
1038        /(msie) ([\w.]+)/.exec(ua) ||
1039        ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
1040        [];
1041
1042    return {
1043        browser: match[1] || "",
1044        version: match[2] || "0"
1045    };
1046};
1047matched = jQuery.uaMatch(navigator.userAgent);
1048browser = {};
1049
1050if (matched.browser) {
1051    browser[matched.browser] = true;
1052    browser.version = matched.version;
1053}
1054
1055// Chrome is Webkit, but Webkit is also Safari.
1056if (browser.chrome) {
1057    browser.webkit = true;
1058} else if (browser.webkit) {
1059    browser.safari = true;
1060}
1061
1062jQuery.browser = browser;
1063
1064/**
1065 * 
1066 * Se activa función en AJAX para levantar modal y huincha
1067 * 
1068 */
1069$(document).ready(function () {
1070    $.ajax({
1071        type: "POST",
1072        url: "/Ajax/getTostadorMensajeCliente",
1073        dataType: "json",
1074        success: function (data) {
1075            console.log(data);
1076            let result = data;
1077            let tostad_cliente = null;
1078            let fecha_inicio = null;
1079            let fecha_fin = null;
1080            let hoy = new Date().getTime();
1081
1082            if (result != null && result.ok && result.tostador_cliente != null) {
1083                tostad_cliente = result.tostador_cliente;
1084
1085                $("#tostador-mensaje").addClass(tostad_cliente.color);
1086
1087                if (tostad_cliente.icono != null) {
1088                    $("#icono-tostador-desktop").attr('src', tostad_cliente.icono);
1089                    $("#icono-tostador-mobile").attr('src', tostad_cliente.icono);
1090                    $("#icono-tostador-desktop").attr('alt', tostad_cliente.icono);
1091                    $("#icono-tostador-mobile").attr('alt', tostad_cliente.icono);
1092                    $("#icono-tostador-desktop").show();
1093                    $("#icono-tostador-mobile").show();
1094                } else {
1095                    $("#icono-tostador-desktop").removeAttr('src');
1096                    $("#icono-tostador-mobile").removeAttr('src');
1097                    $("#icono-tostador-desktop").removeAttr('alt');
1098                    $("#icono-tostador-mobile").removeAttr('alt');
1099                    $("#icono-tostador-desktop").hide();
1100                    $("#icono-tostador-mobile").hide();
1101                }
1102
1103                $("#texto-tostador-desktop").html(tostad_cliente.mensaje);
1104                $("#texto-tostador-mobile").html(tostad_cliente.mensaje);
1105
1106
1107                if (tostad_cliente.tiempo_inicio != null) {
1108                    fecha_inicio = new Date(tostad_cliente.tiempo_inicio).getTime();
1109                }
1110
1111                if (tostad_cliente.tiempo_fin != null) {
1112                    fecha_fin = new Date(tostad_cliente.tiempo_fin).getTime();
1113                }
1114
1115                if (tostad_cliente.activo) {
1116                    if (tostad_cliente.continuo && hoy >= fecha_inicio) {
1117                        $("#tostador-mensaje").show();
1118                    } else if (!tostad_cliente.continuo && (hoy >= fecha_inicio && hoy <= fecha_fin)) {
1119                        $("#tostador-mensaje").show();
1120                    } else {
1121                        $("#tostador-mensaje").hide();
1122                    }
1123                } else {
1124                    $("#tostador-mensaje").hide();
1125                }
1126            }
1127        },
1128        error: function (XMLHttpRequest, textStatus, errorThrown) {
1129            
1130        }
1131    });
1132
1133    $.ajax({
1134        type: "POST",
1135        url: "/Ajax/getMensajeCliente",
1136        dataType: "json",
1137        success: function (data) {
1138            console.log(data);
1139            let result = data;
1140            let mensaje_clientes = null;
1141
1142            if (result != null && result.ok && result.mensaje_clientes != null) {
1143                mensaje_clientes = result.mensaje_clientes;
1144
1145                if (mensaje_clientes.id_tipo == 1) {
1146                    $("#modal_imagen").attr('src', mensaje_clientes.imagen);
1147                    $("#modal_imagen").attr('alt', mensaje_clientes.imagen);
1148                    $("#modal_mensaje_imagen").show();
1149                    $("#modal_mensaje_html").hide();
1150                } else if (mensaje_clientes.id_tipo == 2) {
1151                    if (mensaje_clientes.icono != null) {
1152                        $(".icono_modal_mensaje_clientes").html(mensaje_clientes.icono);
1153                        $("#icono_modal_mensaje_clientes").show();
1154                    } else {
1155                        $(".icono_modal_mensaje_clientes").html("");
1156                        $("#icono_modal_mensaje_clientes").hide();
1157                    }
1158
1159                    $("#titulo_modal_mensaje_clientes").html(mensaje_clientes.titulo);
1160                    $("#texto_modal_mensaje_clientes").html(mensaje_clientes.cuerpo);
1161                    $("#modal_mensaje_html").show();
1162                    $("#modal_mensaje_imagen").hide();
1163                }                
1164            }
1165        },
1166        error: function (XMLHttpRequest, textStatus, errorThrown) {
1167
1168        }
1169    });
1170});

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.