![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/themes/dt-the7/lib/jquery-sticky/ |
!function(t){var o=function(o,e){var i,s,n,r,a,c,f,p=!1,l=!1,d=!1,m={},h={to:"top",offset:0,extraOffset:0,effectsOffset:0,parentBottomOffset:0,parent:!1,timerInterval:250,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"},isRTL:!1,handleScrollbarWidth:!1};const u=()=>{if(f=$(i,"width"),c=i.offset().left,s.isRTL){const t=s.handleScrollbarWidth?window.innerWidth:document.body.offsetWidth;c=Math.max(t-f-c,0)}};var y=function(t,o,e){var i={},s=t[0].style;e.forEach((function(t){if("object"==typeof t)for(var o in t)i[o]=t[o];else i[t]=void 0!==s[t]?s[t]:""})),t.data("the7-css-backup-"+o,i)},w=function(t,o){return t.data("the7-css-backup-"+o)},v=function(){m.$spacer=i.clone().addClass(s.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),i.after(m.$spacer)},k=function(){m.$spacer.remove()},g=function(){y(i,"unsticky",["position","width","margin-top","margin-bottom","top","bottom","inset-inline-start"]);var t={position:"fixed",width:f,marginTop:0,marginBottom:0};c&&(t["inset-inline-start"]=c+"px"),t[s.to]=s.offset,t["top"===s.to?"bottom":"top"]="",i.css(t).addClass(s.classes.stickyActive)},b=function(){i.css(w(i,"unsticky")).removeClass(s.classes.stickyActive)},$=function(t,o,e){var i=getComputedStyle(t[0]),s=parseFloat(i[o]),n="height"===o?["top","bottom"]:["left","right"],r=[];return"border-box"!==i.boxSizing&&r.push("border","padding"),e&&r.push("margin"),r.forEach((function(t){n.forEach((function(o){s+=parseFloat(i[t+"-"+o])}))})),s},T=function(t){var o=m.$window.scrollTop(),e=$(t,"height"),i=innerHeight,s=t.offset().top-o,n=s-i;return{top:{fromTop:s,fromBottom:n},bottom:{fromTop:s+e,fromBottom:n+e}}},C=function(){i.addClass("notransition-all"),b(),k(),p=!1,i.trigger("the7-sticky:unstick"),i[0].offsetHeight,i.removeClass("notransition-all")},B=function(){var t=T(i),o="top"===s.to;if(l){(o?t.top.fromTop>s.offset:t.bottom.fromBottom<-s.offset)&&(m.$parent.css(w(m.$parent,"childNotFollowing")),i.css(w(i,"notFollowing")),l=!1)}else{var e=T(m.$parent),n=getComputedStyle(m.$parent[0]),r=parseFloat(n[o?"borderBottomWidth":"borderTopWidth"])+s.parentBottomOffset,a=o?e.bottom.fromTop-r:e.top.fromBottom+r;(o?a<=t.bottom.fromTop:a>=t.top.fromBottom)&&function(){y(m.$parent,"childNotFollowing",["position"]),m.$parent.css("position","relative"),y(i,"notFollowing",["position","inset-inline-start","top","bottom"]);const t={position:"absolute"};if(c=m.$spacer.position().left,s.isRTL){const t=i.parent().outerWidth(),o=m.$spacer.position().left;f=m.$spacer.outerWidth(),c=Math.max(t-f-o,0)}t["inset-inline-start"]=c+"px",t[s.to]="",t["top"===s.to?"bottom":"top"]=s.parentBottomOffset,i.css(t),l=!0}()}},W=function(){var t,o=s.offset,e=s.stickOffset,n=s.unStickOffset,a=m.$window.scrollTop();if(r=a,p){let e=T(m.$spacer);t="top"===s.to?e.top.fromTop-o+n:-e.bottom.fromBottom-o+n,s.parent&&B(),t>0&&C()}else{let n=T(i);(t="top"===s.to?n.top.fromTop-o+e:-n.bottom.fromBottom-o+e)<=0&&(u(),v(),g(),p=!0,i.trigger("the7-sticky:stick"),s.parent&&B())}let c=t;a<0&&(c=0),function(t){d&&-t<s.effectsOffset?(i.removeClass(s.classes.stickyEffects),m.$spacer.removeClass(s.classes.stickyEffects),d=!1,i.trigger("the7-sticky:effect-not-active")):!d&&-t>=s.effectsOffset&&(i.addClass(s.classes.stickyEffects),m.$spacer.addClass(s.classes.stickyEffects),d=!0,i.trigger("the7-sticky:effect-active"))}(c)},E=function(){W()},x=function(){var t=m.$window.scrollTop();r!==t&&W()},O=function(){F(!0)},F=function(t=!1){p&&a!==window.innerWidth&&(a=window.innerWidth,!0===t&&k(),b(),u(),!0===t&&v(),g(),s.parent&&(l=!1,B()),W())},S=function(t,o){let e;return function(){const i=this,s=arguments,n=!e;clearTimeout(e),e=setTimeout((()=>{e=null,t.apply(i,s)}),o),n&&t.apply(i,s)}};this.destroy=function(){p&&C(),m.$window.off("scroll",E).off("resize",F).off("resize",O),clearTimeout(n),n=null,i.removeClass(s.classes.sticky)},s=jQuery.extend(!0,h,e),i=t(o).addClass(s.classes.sticky),m.$window=t(window),a=window.innerWidth,s.parent&&(m.$parent=i.parent(),"parent"!==s.parent&&(m.$parent=m.$parent.closest(s.parent))),O=S(O,400),m.$window.on("resize",F),m.$window.on("resize",O),m.$window.on("scroll",E),n=setInterval(x,s.timerInterval),W()};t.fn.The7Sticky=function(e){var i="string"==typeof e;return this.each((function(){var s=t(this);if(i){var n=s.data("the7-sticky");if(!n)throw Error("Trying to perform the `"+e+"` method prior to initialization");if(!n[e])throw ReferenceError("Method `"+e+"` not found in sticky instance");n[e].apply(n,Array.prototype.slice.call(arguments,1)),"destroy"===e&&s.removeData("the7-sticky")}else s.data("the7-sticky",new o(this,e))})),this}}(jQuery);