📄 Viewing: jquery.jsticky.mod.min.js

!function(t){t.fn.sticky=function(s){var i=t.extend({},{topSpacing:0,zIndex:"",stopper:".sticky-stopper",stickyClass:!1},s);var e="number"==typeof i.zIndex;var o=0<t(i.stopper).length||"number"==typeof i.stopper;return this.each((function(){var s=t(this),n=s.outerHeight(),p=s.outerWidth(),r=i.topSpacing,a=i.zIndex,c=s.offset().top-r-32,d=t("<div></div>").width(p).height(n).css("margin-top","0px").addClass("sticky-placeholder"),l=i.stopper,f=t(window);function h(){var p=f.scrollTop(),h=l,u=s.parent().width();(d.width(u),o&&"string"==typeof l)&&(h=t(l).offset().top-n-r);if(c<p){if(i.stickyClass&&s.addClass(i.stickyClass,0),s.after(d).css({position:"fixed",top:r+0,width:u}),e&&s.css({zIndex:a}),o&&h<p){var y=h-p+r+0;s.css({top:y})}}else i.stickyClass&&s.removeClass(i.stickyClass),s.css({position:"static",top:null,left:null,width:"auto"}),d.remove()}f.innerHeight()>n&&(f.bind("scroll",h),f.bind("load",h),f.bind("resize",h))}))}}(jQuery);

🌑 DarkStealth — WP Plugin Edition

Directory: /home/httpd/html/matrixmodels.com/public_html/wp-content/plugins/admin-site-enhancements/assets/js