1$(function () { 2 "use strict"; 3 // Altura de la capa que cubre: 4 $('#buscadorpop').height($('body').height()); 5 $(window).resize(function() { 6 $('#buscadorpop').height($('body').height()); 7 }); 8 9 // Botones para mostrar el buscador: 10 $('.busclink').on("click",function(event) { 11 event.preventDefault(); 12 $('#buscadorpop').fadeIn(); 13 $('#form-buscador').addClass("buscopen"); 14 $('input#ContenidoKeywords').focus(); 15 16 }); 17 18 // Cerrar buscador: 19 function cerrarBusc() { 20 21 $('#buscadorpop').fadeOut(); 22 $('#form-buscador').removeClass("buscopen"); 23 } 24 25 // boton cerrar 26 $('a#closebuscpop').on("click",function(e) { 27 e.preventDefault(); 28 cerrarBusc(); 29 }); 30 31 // cerrar clic fuera ventana 32 $('#buscadorpop').mouseup(function(e) { 33 var container = $('#buscadorpop > div'); 34 if (!container.is(e.target) && container.has(e.target).length === 0) { 35 cerrarBusc(); 36 } 37 }); 38 39 // Al modificar el campo ajax: 40 $('#ContenidoKeywords').on('input propertychange paste ', function() { 41 var keywords = $(this).val().trim(); 42 43 44 if (keywords.length>2) { 45 $('#sugerenciasresult').hide(); 46 $('#buscadorpop span.carregant').show(); 47 $('#sugerenciasresult').off('load').load("/"+idioma+"/sugerencias?keywords="+encodeURIComponent(keywords), function(responseTxt, statusTxt, xhr){ 48 if (statusTxt === "success") { 49 //alert("External content loaded successfully!"); 50 $(this).show(); 51 } 52 if(statusTxt === "error") { 53 $(this).hide(); 54 if (xhr.status!==0) { 55 alert("Error: " + xhr.status + ": " + xhr.statusText); 56 } 57 } 58 $('#buscadorpop span.carregant').hide(); 59 }); 60 } else { 61 $('#sugerenciasresult').hide(); 62 } 63 }); 64 65 66 67 68});
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.