1// JavaScript Document 2 3jQuery(function($) { 4 5function animationSetting(){ 6 $('.animation').each(function(){ 7 var obj = $(this), 8 objH = $(this).outerHeight(), 9 scrolled = $(window).scrollTop(), 10 viewed = scrolled + $(window).height(), 11 objTop = $(this).offset().top, 12 objBottom = objTop + objH, 13 excnum = 0.4; 14ãããã//ãããªãã¸ã§ã¯ããç»é¢å ã«ããã° 15 if((objTop + objH * excnum) <= viewed && (objBottom - objH * excnum) >= scrolled){ 16ãããããã//ãªãã¸ã§ã¯ãã«classãä»ä¸(ã¢ãã¡ã¼ã·ã§ã³ã®ç¨®é¡ã¨èµ·å) 17 obj.addClass(obj.data('animation')).addClass('animated'); 18 } 19 }) 20} 21 22//èªã¿è¾¼ãã ããæç¹ã§ä¸åº¦èµ·å 23animationSetting(); 24 25//ã¹ã¯ãã¼ã«ãã度ã«èµ·å 26$(window).on('scroll', function() { 27 animationSetting(); 28}); 29 30});
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.