1(function($){$.fn.jetStickySection=function(options){var defaults={topSpacing:0,zIndex:'',stopper:$('.sticky-stopper'),stickyClass:!1};var settings=$.extend({},defaults,options);function checkIndex(){if(typeof settings.zIndex=='number'){return!0}else{return!1}} 2var hasIndex=checkIndex();function checkStopper(){if(0<settings.stopper.length||typeof settings.stopper==='number'){return!0}else{return!1}} 3var hasStopper=checkStopper();return this.each(function(){var $this=$(this);var topSpacing=settings.topSpacing;var thisHeight=$this.outerHeight();var thisWidth=$this.outerWidth();var zIndex=settings.zIndex;var pushPoint=$this.offset().top-topSpacing;var placeholder=$('<div></div>').width(thisWidth).height(thisHeight).addClass('sticky-placeholder');var stopper=settings.stopper;var $window=$(window);var detached=!1;var stick=!1;function stickyScroll(){if(detached){return} 4var thisHeight=$this.outerHeight();var windowTop=$window.scrollTop();var stopPoint=stopper;var parentWidth=$this.parent().width();placeholder.width(parentWidth);if(hasStopper&&typeof settings.stopper!=='number'){var stopperTop=stopper.offset().top;stopPoint=(stopperTop-thisHeight)-topSpacing} 5if(pushPoint<windowTop){if(settings.stickyClass) 6$this.addClass(settings.stickyClass);$this.after(placeholder).css({position:'fixed',top:topSpacing,width:parentWidth});if(hasIndex){$this.css({zIndex:zIndex})} 7if(hasStopper){if(stopPoint<windowTop){var diff=(stopPoint-windowTop)+topSpacing;$this.css({top:diff})}} 8if(!stick){$this.trigger('jetStickySection:stick')} 9stick=!0}
9else{if(settings.stickyClass) 10$this.removeClass(settings.stickyClass);$this.css({position:'',top:'',left:'',width:''});placeholder.remove();if(stick){$this.trigger('jetStickySection:unstick')} 11stick=!1}} 12function detachStickyScroll(){detached=!0;$window.off('scroll',stickyScroll);$window.off('touchmove',stickyScroll);$window.off('resize',stickyScroll);if(settings.stickyClass) 13$this.removeClass(settings.stickyClass);$this.css({position:'',top:'',left:'',width:''});placeholder.remove()} 14if($window.innerHeight()>thisHeight){$this.on('jetStickySection:activated',stickyScroll);$window.on('scroll',stickyScroll);$window.on('touchmove',stickyScroll);$window.on('resize',stickyScroll);$this.on('jetStickySection:detach',detachStickyScroll)}})}})(jQuery) 15;
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.