1(function() { 2 var top_search_btn = $('#top_search_btn'), 3 txt_top_search = $('#txt_top_search'), 4 defaultTxt = txt_top_search.attr('default'), 5 searchItems = $('.search-item').find('a'), 6 url = "http://so.sjwj.com/Supply"; 7 8 searchItems.click(function() { 9 searchItems.removeAttr('class'); 10 var me = $(this); 11 me.attr('class', 'selected'); 12 url = me.attr('url'); 13 }); 14 txt_top_search.bind('click focus', function() { 15 $("#txt_top_search").attr("style", "color:#333333;"); 16 if (defaultTxt === $.trim(txt_top_search.val())) { 17 txt_top_search.val(''); 18 } 19 }); 20 txt_top_search.blur(function() { 21 $("#txt_top_search").attr("style", "color:#999999;"); 22 if ('' === $.trim(txt_top_search.val())) { 23 txt_top_search.val(defaultTxt); 24 } 25 }); 26 top_search_btn.click(function() { 27 var key = $.trim(txt_top_search.val()); 28 if (key == "" || key == defaultTxt) { 29 txt_top_search.val(""); 30 layer.msg('请è¾å ¥å ³é®å', { icon: 2 }); 31 $('#txt_top_search').focus(); 32 return false; 33 } 34 if (key.length < 2) { 35 layer.msg('请è¾å ¥è³å°2个å符', { icon: 2 }); 36 return false; 37 } 38 key=stripscript(key); 39 window.open(url + "-" + encodeURIComponent(key)+".html", "", "", ""); 40 return false; 41 }); 42 $("#txt_top_search").keypress(function(event) { 43 if (event.keyCode == 13) { 44 top_search_btn.click(); 45 } 46 }); 47} ());
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.