1jQuery(document).ready(function ($){ 2 3 var acs_action = 'myprefix_autocompletesearch'; 4 $("#s").autocomplete({ 5 delay: 50, 6 position: {of: "#search-outer #search .container" }, 7 appendTo: $("#search-box"), 8 source: function(req, response){ 9 $.getJSON(MyAcSearch.url+'?callback=?&action='+acs_action, req, response); 10 }, 11 select: function(event, ui) { 12 window.location.href=ui.item.link; 13 }, 14 minLength: 2, 15 }).data( "ui-autocomplete" )._renderItem = function( ul, item ) { 16 return $( "<li>" ) 17 .append( "<a>" + item.image + "<span class='title'>" + item.label + "</span><br/><span class='desc'>" + item.post_type + "</span> </a>" ) 18 .appendTo( ul ); 19 }; 20 21});
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.