1$(document).ready(function() { 2 window.onload = checkResize; 3 window.onresize = checkResize; 4 var l = $("#banner_inf").find("li").length; 5 if (l > 4) $("#banner_inf").banners(); 6 var ws = $(".share").find(".color_whatsapp"); 7 var devices = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( 8 navigator.userAgent 9 ); 10 if (ws && devices) ws.removeClass("hidden"); 11 $().fancybox({ 12 selector: ".iframe", 13 toolbar: false, 14 smallBtn: true, 15 type: "iframe", 16 iframe: { 17 css: { 18 maxWidth: "100%", 19 maxHeight: "100%", 20 margin: 0 21 } 22 }, 23 beforeShow: function() { 24 var i = $.fancybox.getInstance().current.opts.$orig, 25 container = $.fancybox.getInstance().$refs.container, 26 dataClass = i.attr("data-class") || "iframe-md"; 27 container.addClass(dataClass); 28 } 29 }); 30 function checkResize() { 31 var ancho = $("#fondo_cabezal").outerWidth(true) + 10; 32 if (ancho > "768") { 33 $("#menu").removeClass("open"); 34 $("#menu").removeClass("left"); 35 $("#menu").show(); 36 $("#menu_toggle").hide(); 37 $("#footer").show(); 38 $("#footer_toggle").hide(); 39 } else { 40 $("#menu").addClass("left"); 41 if (!$("#menu").hasClass("open")) $("#menu").hide(); 42 $("#menu_toggle").show(); 43 if (ancho > "420") { 44 $("#footer").show(); 45 $("#footer_toggle").hide(); 46 } else { 47 $("#footer").hide(); 48 $("#footer_toggle").show(); 49 } 50 if (ancho > "320") { 51 $("#footer").show(); 52 $("#footer_toggle").hide(); 53 } else { 54 $("#footer").hide(); 55 $("#footer_toggle").show(); 56 } 57 } 58 } 59 $("#menu_toggle").click(function(e) { 60 e.preventDefault(); 61 $("#menu .dropdown").removeClass("open"); 62 $("#menu").toggle("slow"); 63 $("#menu").toggleClass("open"); 64 }); 65 $("#footer_toggle").click(function(e) { 66 e.preventDefault(); 67 $("#footer").toggle(); 68 }); 69 $(window).scroll(function() { 70 if ($(this).scrollTop() > 300) { 71 $("#irArriba").fadeIn(); 72 } else { 73 $("#irArriba").fadeOut(); 74 } 75 }); 76 $("#irArriba a").click(function() { 77 $("body,html").animate({ scrollTop: 0 }, 800); 78 return false; 79 }); 80 $("#inferior").on("show.bs.collapse", function() { 81 $("#mapa_toggle").addClass("open"); 82 }); 83 $("#inferior").on("hide.bs.collapse", function() { 84 $("#mapa_toggle").removeClass("open"); 85 }); 86 $(document).on("click", ".btnEmail", function(e) { 87 e.preventDefault(); 88 var f = $(this).attr("href"); 89 var form = $('<div id="formEmail"/>'); 90 form.load(f, function() { 91 $.fancybox.open($(this), { 92 type: "inline", 93 toolbar: false, 94 smallBtn: true, 95 touch: false 96 }); 97 }); 98 }); 99 $(document).on("submit", "#formEmail form", function(e) { 100 e.preventDefault(); 101 $(".form-control").removeClass("error"); 102 $("#mensaje_popup").html(""); 103 if ($("#email_to").val() == "") $("#email_to").addClass("error"); 104 else if (!emailValido($("#email_to").val(), true)) 105 $("#email_to").addClass("error"); 106 if ($("#nombre_from").val() == "") $("#nombre_from").addClass("error"); 107 if ($("#email_from").val() == "") $("#email_from").addClass("error"); 108 else if (!emailValido($("#email_from").val())) 109 $("#email_from").addClass("error"); 110 if ($("#codigo").val() == "") $("#codigo").addClass("error"); 111 if ($(".form-control.error").length == 0) { 112 var action = $(this).attr("action"); 113 var href = $(location).attr("href"); 114 href = href.replace(/http/gi, "http"); 115 href = href.replaceAll("http://", "x68x74x74x70x3Ax2Fx2F"); 116 var title = $(document).attr("title"); 117 var desc = $("meta[name=description]").attr("content"); 118 var inputs = 119 $(this).serialize() + "&u=" + href + "&t=" + title + "&d=" + desc; 120 $.post(action, inputs, function(data) { 121 $("#formEmail").html(data); 122 }); 123 } 124 }); 125});
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.