PageSourceSearch

https://anabode.co/wp-content/themes/landy/includes/js/waypoints.min.js?ver=1.1.4

js anabode.co collected 2026-10-09 03:42:06 UTC 3,386 bytes, 1 lines download raw bytes

1!function(c,f,h,e,t){var o=c(e),u="waypoint.reached",p=function(t,e){t.element.trigger(u,e),t.options.triggerOnce&&t.element[f]("destroy")},a=function(t,e){for(var o=e.waypoints.length-1;0<=o&&e.waypoints[o].element[0]!==t[0];)o-=1;return o},d=[],y=function(t){c.extend(this,{element:c(t),oldScroll:0,waypoints:[],didScroll:!1,didResize:!1,doScroll:c.proxy(function(){var o=this.element.scrollTop(),n=o>this.oldScroll,i=this,t=c.grep(this.waypoints,function(t,e){return n?t.offset>i.oldScroll&&t.offset<=o:t.offset<=i.oldScroll&&t.offset>o}),s=t.length;this.oldScroll&&o||c[h]("refresh"),this.oldScroll=o,s&&(n||t.reverse(),c.each(t,function(t,e){(e.options.continuous||t===s-1)&&p(e,[n?"down":"up"])}))},this)}),c(t).scroll(c.proxy(function(){this.didScroll||(this.didScroll=!0,e.setTimeout(c.proxy(function(){this.doScroll(),this.didScroll=!1},this),c[h].settings.scrollThrottle))},this)).resize(c.proxy(function(){this.didResize||(this.didResize=!0,e.setTimeout(c.proxy(function(){c[h]("refresh"),this.didResize=!1},this),c[h].settings.resizeThrottle))},this)),o.load(c.proxy(function(){this.doScroll()},this))},n={init:function(r,l){return this.each(function(){var t,e=c.fn[f].defaults.context,o=c(this);l&&l.context&&(e=l.context),c.isWindow(e)||(e=o.closest(e)[0]),(t=function(o){var n=null;return c.each(d,function(t,e){if(e.element[0]===o)return n=e,!1}),n}(e))||(t=new y(e),d.push(t));var n=a(o,t),i=n<0?c.fn[f].defaults:t.waypoints[n].options,s=c.extend({},i,l);s.offset="bottom-in-view"===s.offset?function(){return(c.isWindow(e)?c[h]("viewportHeight"):c(e).height())-c(this).outerHeight()}:s.offset,n<0?t.waypoints.push({element:o,offset:null,options:s}):t.waypoints[n].options=s,r&&o.bind(u,r),l&&l.handler&&o.bind(u,l.handler)}),c[h]("refresh"),this},remove:function(){return this.each(function(t,e){var n=c(e);c.each(d,function(t,e){var o=a(n,e);0<=o&&e.waypoints.splice(o,1)})})},destroy:function(){return this.unbind(u)[f]("remove")}},i={refresh:function(){c.each(d,function(t,s){var e=c.isWindow(s.element[0]),r=e?0:s.element.offset().top,l=e?c[h]("viewportHeight"):s.element.height(),f=e?0:s.element.scrollTop();c.each(s.waypoints,function(t,e){if(e){var o=e.options.offset,n=e.offset;if("function"==typeof e.options.offset)o=e.options.offset.apply(e.element);else if("string"==typeof e.options.offset){var i=parseFloat(e.options.offset);o=e.options.offset.indexOf("%")?Math.ceil(l*(i/100)):i}e.offset=e.element.offset().top-r+f-o,e.options.onlyOnScroll||(null!==n&&s.oldScroll>n&&s.oldScroll<=e.offset?p(e,["up"]):null!==n&&s.oldScroll<n&&s.oldScroll>=e.offset?p(e,["down"]):!n&&f>e.offset&&p(e,["down"]))}}),s.waypoints.sort(function(t,e){return t.offset-e.offset})})},viewportHeight:function(){return e.innerHeight?e.innerHeight:o.height()},aggregate:function(){var o=c();return c.each(d,function(t,e){c.each(e.waypoints,function(t,e){o=o.add(e.element)})}),o}};c.fn[f]=function(t){return n[t]?n[t].apply(this,Array.prototype.slice.call(arguments,1)):"function"!=typeof t&&t?"object"==typeof t?n.init.apply(this,[null,t]):void c.error("Method "+t+" does not exist on jQuery "+f):n.init.apply(this,arguments)},c.fn[f].defaults={continuous:!0,offset:0,triggerOnce:!1,context:e},c[h]=function(t){return i[t]?i[t].apply(this):i.aggregate()},c[h].settings={resizeThrottle:200,scrollThrottle:100},o.load(function(){c[h]("refresh")})}(jQuery,"waypoint","waypoints",this);

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.