1$(function(){ 2 3 var set = 50;//ã¦ã¤ã³ãã¦ä¸é¨ããã©ããããã®ä½ç½®ã§å¤åãããã 4 5 var boxTop = new Array; 6 var current = -1; 7 8 //åè¦ç´ ã®ä½ç½® 9 $('article').each(function(i) { 10 boxTop[i] = $(this).offset().top; 11 }); 12 13 //æåã®è¦ç´ ã«class="on"ãã¤ãã 14 changeBox(0); 15 16 //ã¹ã¯ãã¼ã«ããæã®å¦ç 17 $(window).scroll(function(){ 18 scrollPosition = $(window).scrollTop(); 19 for (var i = boxTop.length - 1 ; i >= 0; i--) { 20 if ($(window).scrollTop() > boxTop[i] - set) { 21 changeBox(i); 22 break; 23 } 24 }; 25 }); 26 27 //ããã®å¦ç 28 function changeBox(secNum) { 29 if (secNum != current) { 30 31 current = secNum; 32 secNum2 = secNum + 1;//HTMLé åºç¨ 33 34 $('#in_link li').removeClass('on'); 35 $('#in_link li:nth-child(' + secNum2 +')').addClass('on'); 36 37 /* ä½ç½®ã«ãã£ã¦åå¥ã«å¦çããããå ´åã 38 if (current == 0) { 39 // ç¾å¨å°ãsection1ã®å ´åã®å¦ç 40 } else if (current == 1) { 41 // ç¾å¨å°ãsection2ã®å ´åã®å¦ç 42 } else if (current == 2) { 43 // ç¾å¨å°ãsection3ã®å ´åã®å¦ç 44 }*/ 45 } 46 }; 47 48 49 50});
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.