1/*! 2Waypoints Inview Shortcut - 4.0.1 3Copyright © 2011-2016 Caleb Troughton 4Licensed under the MIT license. 5https://github.com/imakewebthings/waypoints/blob/master/licenses.txt 6*/ 7(function(){'use strict' 8function noop(){} 9var Waypoint=window.Waypoint 10function Inview(options){this.options=Waypoint.Adapter.extend({},Inview.defaults,options) 11this.axis=this.options.horizontal?'horizontal':'vertical' 12this.waypoints=[] 13this.element=this.options.element 14this.createWaypoints()} 15Inview.prototype.createWaypoints=function(){var configs={vertical:[{down:'enter',up:'exited',offset:'100%'},{down:'entered',up:'exit',offset:'bottom-in-view'},{down:'exit',up:'entered',offset:0},{down:'exited',up:'enter',offset:function(){return-this.adapter.outerHeight()}}],horizontal:[{right:'enter',left:'exited',offset:'100%'},{right:'entered',left:'exit',offset:'right-in-view'},{right:'exit',left:'entered',offset:0},{right:'exited',left:'enter',offset:function(){return-this.adapter.outerWidth()}}]} 16for(var i=0,end=configs[this.axis].length;i<end;i++){var config=configs[this.axis][i] 17this.createWaypoint(config)}} 18Inview.prototype.createWaypoint=function(config){var self=this 19this.waypoints.push(new Waypoint({context:this.options.context,element:this.options.element,enabled:this.options.enabled,handler:(function(config){return function(direction){self.options[config[direction]].call(self,direction)}}(config)),offset:config.offset,horizontal:this.options.horizontal}))} 20Inview.prototype.destroy=function(){for(var i=0,end=this.waypoints.length;i<end;i++){this.waypoints[i].destroy()} 21this.waypoints=[]} 22Inview.prototype.disable=function(){for(var i=0,end=this.waypoints.length;i<end;i++){this.waypoints[i].disable()}} 23Inview.prototype.enable=function(){for(var i=0,end=this.waypoints.length;i<end;i++){this.waypoints[i].enable()}} 24Inview.defaults={context:window,enabled:!0,enter:noop,entered:noop,exit:noop,exited:noop} 25Waypoint.Inview=Inview}())
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.