1// ********** æ§åè¡¨ã®æåæ¤ç´¢ ********** 2 3$(function () { 4 searchWord = function(){ 5 var searchText = $(this).val(), // æ¤ç´¢ããã¯ã¹ã«å ¥åãããæåå 6 targetText; 7 8 $('.kyuji_list li').children('div').each(function() { 9 targetText = $(this).text(); 10 11 12 // æ§åãªã¹ãï¼ãã¿ï¼ã«å ¥åãããæååãåå¨ãããã©ããã夿 13 if (targetText.indexOf(searchText) != -1) { 14 $(this).parent().removeClass('hidden'); 15 $(this).parent().addClass('show'); 16 17 } else { 18 $(this).parent().removeClass('show'); 19 $(this).parent().addClass('hidden'); 20 } 21 }); 22 23 24 //li.showãåå¨ãããã©ãã 25 if ($('.kyuji_list').children('li.show').length) { 26 27 //li.showãåå¨ããã¨ã 28 29 // Vistaã³ã¼ã V-ã¾ãã¯X-ã§å§ã¾ã3æ¡ã®æ°å 30 var regex = new RegExp(/^[VX]-[0-9]{3}/); 31 32 $('.kyuji_list').children('li.show').children('span').each(function() { 33 var resultText = $(this).text(); 34 35 // li.showã®spanå ã®æ§åã³ã¼ãã«vistaã³ã¼ããå«ã¾ãããã©ããã夿 36 if (resultText.match(regex)){ 37 //ãããããã¨ãvistaã³ã¼ãã®æ®µè½ã¿ã¤ãã«ã表示 38 $('span.vista_code').removeClass('hidden'); 39 }else{ 40 //ãããããªãã¨ãvistaã³ã¼ãã®æ®µè½ã¿ã¤ãã«ãé表示 41 $('span.vista_code').addClass('hidden'); 42 } 43 }); 44 45 } else { 46 //li.showãåå¨ããªãã¨ã 47 ãã$('span.vista_code').addClass('hidden'); 48 ãã$('span.no_much_txt').css('display','block'); 49 } 50 51 }; 52 53 54 // searchWordã®å®è¡ 55 $(function(){ 56 $('.search-text').on('input', searchWord); // searchWordã®å®è¡ 57 }); 58 59 // Windowsæ§å表示 60 $(function(){ 61 $("#js-windows-kyuji-btn").click(function(){ 62 $('.win-kyuji').each(function() { 63 $(this).removeClass('hidden'); 64 $(this).addClass('show'); 65 }); 66 $(this).hide(); 67 }); 68 }); 69 });
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.