1(function ($) { 2 $.fn.gav_skrollr = function(s) { 3 var $w = $(window), 4 loaded, 5 skrollr = this 6 th = 200; 7 this.one("gav_skrollr", function() { 8 s.refresh(); 9 }); 10 function gav_skrollr() { 11 var inview = skrollr.filter(function() { 12 var $e = $(this); 13 var wt = $w.scrollTop(), 14 wb = wt + $w.height(), 15 et = $e.offset().top, 16 eb = et + $e.height(); 17 18 return eb >= wt - th && et <= wb + th; 19 }); 20 loaded = inview.trigger("gav_skrollr"); 21 skrollr = skrollr.not(loaded); 22 } 23 $(window).on("scroll.gav_skrollr", gav_skrollr); 24 }; 25 $(window).on('load', function(){ 26 setTimeout(function() { 27 s = skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}); 28 if($('.skrollable.refresh').length){ 29 $('.skrollable.refresh').gav_skrollr(s); 30 } 31 }, 50); 32 }); 33})(jQuery);
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.