1jQuery(document).ready(function(){ 2 jQuery("#search-box").keyup(function(){ 3 jQuery.ajax({ 4 type: "POST", 5 url: myAjax.ajaxurl, 6 data:{action: "artist_tags", keyword: jQuery(this).val()}, 7 beforeSend: function(){ 8 jQuery("#search-box").css("background","#FFF url(LoaderIcon.gif) no-repeat 165px"); 9 }, 10 success: function(data){ 11 jQuery("#suggesstion-box").show(); 12 jQuery("#suggesstion-box").html(data); 13 jQuery("#search-box").css("background","#FFF"); 14 } 15 }); 16 }); 17 18 jQuery("#cat-search-box").keyup(function(){ 19 jQuery.ajax({ 20 type: "POST", 21 url: myAjax.ajaxurl, 22 data:{action: "cat_tags", keyword: jQuery(this).val()}, 23 beforeSend: function(){ 24 jQuery("#cat-search-box").css("background","#FFF url(LoaderIcon.gif) no-repeat 165px"); 25 }, 26 success: function(data){ 27 jQuery("#cat-suggesstion-box").show(); 28 jQuery("#cat-suggesstion-box").html(data); 29 jQuery("#cat-search-box").css("background","#FFF"); 30 } 31 }); 32 }); 33}); 34 35function selectArtistTag(val) { 36 jQuery("#search-box").val(val); 37 jQuery("#suggesstion-box").hide(); 38} 39 40function selectCatTag(val) { 41 jQuery("#cat-search-box").val(val); 42 jQuery("#cat-suggesstion-box").hide(); 43}
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.