PageSourceSearch

https://www.thepeak1041.com/wp-content/plugins/epic-social-share/assets/js/theia-sticky-sidebar.min.js?ver=1

js thepeak1041.com collected 2026-10-07 20:35:27 UTC 5,273 bytes, 1 lines download raw bytes

1!function(v){v.fn.theiaStickySidebar=function(i){function t(i,t){return!0===i.initialized||!(v("body").width()<i.minWidth)&&(function(y,i){y.initialized=!0,0===v("#theia-sticky-sidebar-stylesheet-"+y.namespace).length&&v("head").append(v('<style id="theia-sticky-sidebar-stylesheet-'+y.namespace+'">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>')),i.each(function(){function m(){i.fixedScrollTop=0,i.sidebar.css({"min-height":"1px"}),i.stickySidebar.css({position:"static",width:"",transform:"none"})}var i={};if(i.sidebar=v(this),i.options=y||{},i.container=v(i.options.containerSelector),0==i.container.length&&(i.container=i.sidebar.parent()),i.sidebar.parents().css("-webkit-transform","none"),i.sidebar.css({position:i.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),i.stickySidebar=i.sidebar.find(".theiaStickySidebar"),0==i.stickySidebar.length){var e=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;i.sidebar.find("script").filter(function(i,t){return 0===t.type.length||t.type.match(e)}).remove(),i.stickySidebar=v("<div>").addClass("theiaStickySidebar").append(i.sidebar.children()),i.sidebar.append(i.stickySidebar)}i.marginBottom=parseInt(i.sidebar.css("margin-bottom")),i.paddingTop=parseInt(i.sidebar.css("padding-top")),i.paddingBottom=parseInt(i.sidebar.css("padding-bottom"));var t=i.stickySidebar.offset().top,o=i.stickySidebar.outerHeight();i.stickySidebar.css("padding-top",1),i.stickySidebar.css("padding-bottom",1),t-=i.stickySidebar.offset().top,o=i.stickySidebar.outerHeight()-o-t,0==t?(i.stickySidebar.css("padding-top",0),i.stickySidebarPaddingTop=0):i.stickySidebarPaddingTop=1,0==o?(i.stickySidebar.css("padding-bottom",0),i.stickySidebarPaddingBottom=0):i.stickySidebarPaddingBottom=1,i.previousScrollTop=null,i.fixedScrollTop=0,m(),i.onScroll=function(i){if(i.stickySidebar.is(":visible")){if(v("body").width()<i.options.minWidth)return void m();if(i.options.disableOnResponsiveLayouts){var t=i.sidebar.outerWidth("none"==i.sidebar.css("float"));if(t+50>i.container.width())return void m()}var e=v(document).scrollTop(),o="static";if(e>=i.sidebar.offset().top+(i.paddingTop-i.options.additionalMarginTop)){var a,n=i.paddingTop+y.additionalMarginTop,s=i.paddingBottom+i.marginBottom+y.additionalMarginBottom,d=i.sidebar.offset().top,r=i.sidebar.offset().top+function(i){var t=i.height();return i.children().each(function(){t=Math.max(t,v(this).height())}),t}(i.container),c=0+y.additionalMarginTop,p=i.stickySidebar.outerHeight()+n+s<v(window).height();a=p?c+i.stickySidebar.outerHeight():v(window).height()-i.marginBottom-i.paddingBottom-y.additionalMarginBottom;var b=d-e+i.paddingTop,l=r-e-i.paddingBottom-i.marginBottom,h=i.stickySidebar.offset().top-e,f=i.previousScrollTop-e;"fixed"==i.stickySidebar.css("position")&&"modern"==i.options.sidebarBehavior&&(h+=f),"stick-to-top"==i.options.sidebarBehavior&&(h=y.additionalMarginTop),"stick-to-bottom"==i.options.sidebarBehavior&&(h=a-i.stickySidebar.outerHeight()),h=0<f?Math.min(h,c):Math.max(h,a-i.stickySidebar.outerHeight()),h=Math.max(h,b),h=Math.min(h,l-i.stickySidebar.outerHeight());var g=i.container.height()==i.stickySidebar.outerHeight();o=!g&&h==c||!g&&h==a-i.stickySidebar.outerHeight()?"fixed":e+h-i.sidebar.offset().top-i.paddingTop<=y.additionalMarginTop?"static":"absolute"}if("fixed"==o){var S=v(document).scrollLeft();i.stickySidebar.css({position:"fixed",width:k(i.stickySidebar)+"px",transform:"translateY("+h+"px)",left:i.sidebar.offset().left+parseInt(i.sidebar.css("padding-left"))-S+"px",top:"0px"})}else if("absolute"==o){var u={};"absolute"!=i.stickySidebar.css("position")&&(u.position="absolute",u.transform="translateY("+(e+h-i.sidebar.offset().top-i.stickySidebarPaddingTop-i.stickySidebarPaddingBottom)+"px)",u.top="0px"),u.width=k(i.stickySidebar)+"px",u.left="",i.stickySidebar.css(u)}else"static"==o&&m();"static"!=o&&1==i.options.updateSidebarHeight&&i.sidebar.css({"min-height":i.stickySidebar.outerHeight()+i.stickySidebar.offset().top-i.sidebar.offset().top+i.paddingBottom}),i.previousScrollTop=e}},i.onScroll(i),v(document).on("scroll."+i.options.namespace,function(i){return function(){i.onScroll(i)}}(i)),v(window).on("resize."+i.options.namespace,function(i){return function(){i.stickySidebar.css({position:"static"}),i.onScroll(i)}}(i)),"undefined"!=typeof ResizeSensor&&new ResizeSensor(i.stickySidebar[0],function(i){return function(){i.onScroll(i)}}(i))})}(i,t),!0)}function k(i){var t;try{t=i[0].getBoundingClientRect().width}catch(i){}return void 0===t&&(t=i.width()),t}var e,o,a,n,s,d;return(i=v.extend({containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,disableOnResponsiveLayouts:!0,sidebarBehavior:"modern",defaultPosition:"relative",namespace:"TSS"},i)).additionalMarginTop=parseInt(i.additionalMarginTop)||0,i.additionalMarginBottom=parseInt(i.additionalMarginBottom)||
10,t(e=i,o=this)||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),v(document).on("scroll."+e.namespace,(s=e,d=o,function(i){t(s,d)&&v(this).unbind(i)})),v(window).on("resize."+e.namespace,(a=e,n=o,function(i){t(a,n)&&v(this).unbind(i)}))),this}}(jQuery);

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.