File: //home/mirz4654/.trash/debug-log-manager/assets/js/jquery.jsticky.mod.min.js
/* jSticky Plugin
* =============
* Author: Andrew Henderson (@AndrewHenderson)
* Contributor: Mike Street (@mikestreety)
* Date: 9/7/2012
* Update: 09/20/2016
* Website: http://github.com/andrewhenderson/jsticky/
* Description: A jQuery plugin that keeps select DOM element(s)
* in view while scrolling the page.
*/
// Modifications to compensate for WordPress admin bar height, wp-admin .wrap class top margin and plugin page's margin top is done by Bowo (https://bowo.io)
!function(t){t.fn.sticky=function(s){var i=t.extend({},{topSpacing:0,zIndex:"",stopper:".sticky-stopper",stickyClass:!1},s),e="number"==typeof i.zIndex,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","24px").addClass("sticky-placeholder"),l=i.stopper,f=t(window);function h(){var p=f.scrollTop(),h=l,u=s.parent().width();if(d.width(u),o&&"string"==typeof l&&(h=t(l).offset().top-n-r),c<p){if(i.stickyClass&&s.addClass(i.stickyClass),s.after(d).css({position:"fixed",top:r+8,width:u}),e&&s.css({zIndex:a}),o&&h<p){var y=h-p+r+8;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);