1jQuery(document).ready(function($){ 2 3 // 注ç®ã¯ã¼ãï¼HTMLã¿ã°ã®ãªã³ã¯è¡ã¯ãã®ã¾ã¾ãªã³ã¯ã¨ãã¦åºåï¼ 4 function search_trend_html(){ 5 var trendAlltext = $('#search_trend_word > p').html(); 6 var trendArrytmp = new Array(); 7 var trendArry = new Array(); 8 trendArrytmp = trendAlltext.split(/\r\n|\r|\n/); 9 //trendArry = $.grep(trendArrytmp, function(e){return e !== "";}); 空é åã®ã¿åé¤ã0 undefined false ã¯åé¤ããªã 10 trendArry = $.grep(trendArrytmp, function(e){return e;}); //0 undefined falseãªã©ãåé¤ã 11 12 $('#search_trend_word > p').empty(); 13 for (var i = 0; i < trendArry.length; i++) { 14 if (trendArry[i].match(/href/)) { 15 $('#search_trend_word > p').append(trendArry[i]); 16 }else{ 17 $('#search_trend_word > p').append('<a tabindex="0">' + trendArry[i] + '</a>'); 18 } 19 } 20 21 $('#search_trend_word > p > a[tabindex]').on('click keypress',function(){ 22 $('#tmp_query').css('background-image','none').val($(this).text()); 23 $('#submit').trigger('click'); 24 }); 25 } 26 27 // 注ç®ã¯ã¼ãï¼ãã¹ã¦ãããã¹ãã¨ãã¦åºå 28 function search_trend_text(){ 29 var trendAlltext = $('#search_trend_word > p').text(); 30 var trendArrytmp = new Array(); 31 var trendArry = new Array(); 32 trendArrytmp = trendAlltext.split(/\r\n|\r|\n/); 33 //trendArry = $.grep(trendArrytmp, function(e){return e !== "";}); 空é åã®ã¿åé¤ã0 undefined false ã¯åé¤ããªã 34 trendArry = $.grep(trendArrytmp, function(e){return e;}); //0 undefined falseãªã©ãåé¤ã 35 36 $('#search_trend_word > p').empty(); 37 for (var i = 0; i < trendArry.length; i++) { 38 $('#search_trend_word > p').append('<a tabindex="0">' + trendArry[i] + '</a>'); 39 } 40 41 $('#search_trend_word > p > a').on('click keypress',function(){ 42 $('#tmp_query').css('background-image','none').val($(this).text()); 43 $('#submit').trigger('click'); 44 }); 45 46 } 47 48 if($('#search_trend_word')[0]){ 49 search_trend_html(); 50 // search_trend_text(); 51 } 52 53 54});
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.