1jQuery(document).ready(function($){ 2 3 // ããã¼ã©ã³ãã 表示 4 function banner_random(targetElement){ 5 // ãªã¹ãã®è¦ªè¦ç´ ã«ãIDã¨ä½µãã¦ã¯ã©ã¹âbanner_randomâãæå®ããã 6 // <div id="example" class="banner_random"><ul><li>...</li></ul></div> 7 // banner_random ãæå®ããã¯ã©ã¹ã®IDãåå¾ããããããã«ã©ã³ãã 表示ããã 8 function shuffle(array) { 9 var n = array.length, t, i; 10 while (n) { 11 i = Math.floor(Math.random() * n--); 12 t = array[n]; 13 array[n] = array[i]; 14 array[i] = t; 15 } 16 return array; 17 } 18 var targetArry = []; 19 // ã¿ã¼ã²ããã®ãªã¹ãã¿ã°ãé åã«åãè¾¼ã 20 $(targetElement + ' > ul > li').each(function(i){ 21 targetArry[i] = $(this).prop('outerHTML'); 22 }); 23 // åãè¾¼ãã é åãã©ã³ãã ã«ä¸¦ã³æ¿ã 24 shuffle(targetArry); 25 $(targetElement + ' > ul').empty(); 26 // ã©ã³ãã ã«ä¸¦ã³æ¿ããããé åãã¿ã¼ã²ããã®ulã¿ã°å ã«å ¥ãè¾¼ã 27 for(var j = targetArry.length; j >= 0; j-- ){ 28 $(targetElement + ' > ul').append(targetArry[j]); 29 } 30 } 31 $('.banner_random').each(function(){ 32 banner_random('#' + $(this).attr('id')); 33 }); 34 35 // ããã¿ã¼ããã¼åºå 36 $('#top_banner_kokoku_list').each(function(){ 37 var $this = $(this), 38 $bnrList = $this.find('li'), 39 bnrListLength = $bnrList.length, 40 bnrBoshuEl = '<li id="top_banner_kokoku_boshu"><img src="/img/common/banner_boshuchu.jpg" alt="å åçºå ¬å¼ãã¼ã ãã¼ã¸ åºåããã¼åéä¸" /></li>'; 41 // åºååéããã¼ãæ¿å ¥ 42 $this.prepend(bnrBoshuEl); 43 // åºåããã¼ã®å¶æ°/奿°ãå¤å® 44 if(!((bnrListLength % 2) === 0)){ 45 $this.addClass('count_is_odd'); 46 } 47 }); 48 49 $('#spm_search').off(); 50 51});
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.