1!function(){ 2 var a = 0; 3 $.fn.scrolled = function(i, n){ 4 if(typeof i === "function"){ 5 n = i; 6 i = 200; 7 } 8 var t = "scrollTimer" + a++; 9 this.scroll(function(){ 10 var a = $(this), o = a.data(t); 11 if(o) clearTimeout(o); 12 o = setTimeout(function(){ 13 a.removeData(t); 14 n.call(a[0]); 15 }, i); 16 a.data(t, o); 17 }); 18 }; 19 20 $.fn.AniView = function(a){ 21 function i(a){ 22 var i = $(a).offset(), 23 t = i.top + $(a).scrollTop(), 24 o = $(window).scrollTop() + $(window).height(); 25 return t < o - n.animateThreshold; 26 } 27 28 var n = $.extend({ 29 animateThreshold: 0, 30 scrollPollInterval: 20 31 }, a); 32 33 var t = this; 34 35 $(t).each(function(a, i){ 36 // ãããä¿®æ£ï¼liã®ä¸èº«ã ããwrapAllã§å²ã 37 $(i).children().wrapAll('<div class="av-container"></div>'); 38 $(i).css("opacity", 0); 39 }); 40 41 $(t).each(function(a, n){ 42 var t = $(n).children(".av-container"); 43 if($(n).is("[av-animation]") && !t.hasClass("av-visible") && i(t)){ 44 $(n).css("opacity", 1); 45 t.addClass("av-visible"); 46 $(n).addClass("animated " + $(n).attr("av-animation")); 47 } 48 }); 49 50 $(window).scrolled(n.scrollPollInterval, function(){ 51 $(t).each(function(a, n){ 52 var t = $(n).children(".av-container"); 53 if($(n).is("[av-animation]") && !t.hasClass("av-visible") && i(t)){ 54 $(n).css("opacity", 1); 55 t.addClass("av-visible"); 56 $(n).addClass("animated " + $(n).attr("av-animation")); 57 } 58 }); 59 }); 60 }; 61}();
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.