1/* 2 The MIT License (MIT) 3 4 Copyright (c) 2014 Dirk Groenen 5 6 Permission is hereby granted, free of charge, to any person obtaining a copy of 7 this software and associated documentation files (the "Software"), to deal in 8 the Software without restriction, including without limitation the rights to 9 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 the Software, and to permit persons to whom the Software is furnished to do so, 11 subject to the following conditions: 12 13 The above copyright notice and this permission notice shall be included in all 14 copies or substantial portions of the Software. 15*/ 16!function(c){c.fn.viewportChecker=function(p){var e={classToAdd:"visible",classToRemove:"invisible",classToAddForFullView:"full-visible",removeClassAfterAnimation:!1,offset:100,repeat:!1,invertBottomOffset:!0,callbackFunction:function(c,e){},scrollHorizontal:!1,scrollBox:window};c.extend(e,p);var h=this,k=c(e.scrollBox).height(),n=c(e.scrollBox).width();return this.checkElements=function(){var f,g;e.scrollHorizontal?(f=Math.max(c("html").scrollLeft(),c("body").scrollLeft(),c(window).scrollLeft()), 17g=f+n):(f=Math.max(c("html").scrollTop(),c("body").scrollTop(),c(window).scrollTop()),g=f+k);h.each(function(){var a=c(this),b={},d={};if(a.data("vp-add-class")&&(d.classToAdd=a.data("vp-add-class")),a.data("vp-remove-class")&&(d.classToRemove=a.data("vp-remove-class")),a.data("vp-add-class-full-view")&&(d.classToAddForFullView=a.data("vp-add-class-full-view")),a.data("vp-keep-add-class")&&(d.removeClassAfterAnimation=a.data("vp-remove-after-animation")),a.data("vp-offset")&&(d.offset=a.data("vp-offset")), 18a.data("vp-repeat")&&(d.repeat=a.data("vp-repeat")),a.data("vp-scrollHorizontal")&&(d.scrollHorizontal=a.data("vp-scrollHorizontal")),a.data("vp-invertBottomOffset")&&(d.scrollHorizontal=a.data("vp-invertBottomOffset")),c.extend(b,e),c.extend(b,d),!a.data("vp-animated")||b.repeat){0<String(b.offset).indexOf("%")&&(b.offset=parseInt(b.offset)/100*k);var d=b.scrollHorizontal?a.offset().left:a.offset().top,h=b.scrollHorizontal?d+a.width():d+a.height(),l=Math.round(d)+b.offset,m=b.scrollHorizontal?l+ 19a.width():l+a.height();b.invertBottomOffset&&(m-=2*b.offset);l<g&&m>f?(a.removeClass(b.classToRemove),a.addClass(b.classToAdd),b.callbackFunction(a,"add"),h<=g&&d>=f?a.addClass(b.classToAddForFullView):a.removeClass(b.classToAddForFullView),a.data("vp-animated",!0),b.removeClassAfterAnimation&&a.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){a.removeClass(b.classToAdd)})):a.hasClass(b.classToAdd)&&b.repeat&&(a.removeClass(b.classToAdd+" "+b.classToAddForFullView), 20b.callbackFunction(a,"remove"),a.data("vp-animated",!1))}})},("ontouchstart"in window||"onmsgesturechange"in window)&&c(document).bind("touchmove MSPointerMove pointermove",this.checkElements),c(e.scrollBox).bind("load scroll",this.checkElements),c(window).resize(function(f){k=c(e.scrollBox).height();n=c(e.scrollBox).width();h.checkElements()}),this.checkElements(),this}}(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.