Skip to Content

JavaScript File

URL: https://www.amstokens.io/presale/js/waypoints.min.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Mon, 01 Jan 1601 00:00:00 GMT
Download Time: Less than a second
Cookies: None
Size: 9 KB
HTTP Headers:  13 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1/*!

2Waypoints - 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";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({}

8,t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}

9),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}

10var e=0,i={}

11;t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)}

12,t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)}

13,t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]}

14,t.prototype.disable=function(){return this.enabled=!1,this}

15,t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this}

16,t.prototype.next=function(){return this.group.next(this)}

17,t.prototype.previous=function(){return this.group.previous(this)}

18,t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()}

19,t.destroyAll=function(){t.invokeAll("destroy")}

20,t.disableAll=function(){t.invokeAll("disable")}

21,t.enableAll=function(){t.Context.refreshAll();for(var e in i)i[e].enabled=!0;return this}

22,t.refreshAll=function(){t.Context.refreshAll()}

23,t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight}

24,t.viewportWidth=function(){return document.documentElement.clientWidth}

25,t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0}

26,t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()}

27,"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}

28}

29,window.Waypoint=t}

30(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}

31function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()}

32,this.waypoints={vertical:{}

33,horizontal:{}

34}

35,t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,n.windowContext||(n.windowContext=!0,n.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}

36var i=0,o={}

37,n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()}

38,e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete o[this.key])}

39,e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}

40var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))}

...

</html>