1// ã¹ã¯ãã¼ã«æä½ããã¨ã 2$(window).on('scroll', function () { 3 4 // ã¯ã©ã¹åã inview ããä»ä¸ããã¦ãããå ¨ã¦ã®è¦ç´ ã«å¯¾ãã¦å¦çãå®è¡ 5 $('.inview').each(function() { 6 7 // ãã©ã¦ã¶ã®æä¸é¨ãããã¯ã©ã¹åã inview ããä»ä¸ããã¦ããè¦ç´ ã®ä½ç½®ãåå¾ 8 var targetPosition = $(this).offset().top; 9 10 // ãã©ã¦ã¶ã®æä¸é¨ããã®ã¹ã¯ãã¼ã«éãåå¾ 11 var scroll = $(window).scrollTop(); 12 13 // ã¦ã£ã³ãã¦ã®é«ããåå¾ 14 var windowHeight = $(window).height(); 15 16 // ãã©ã¦ã¶ã®æä¸é¨ããã®ã¹ã¯ãã¼ã«é > ã¯ã©ã¹åã inview ããä»ä¸ããã¦ããè¦ç´ ã®ä½ç½® - ã¦ã£ã³ãã¦ã®é«ããåå¾ 17 if (scroll > targetPosition - windowHeight) { 18 19 // ã¯ã©ã¹åã show ããä»ä¸ 20 $(this).addClass('show'); 21 } 22 }); 23});
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.