[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: sticky-layout.js
function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(function(){var t,e;t=window.jQuery,e=t(window),t.fn.stick_in_parent=function(i){var o,n,r,s,a,c,l,u,p,d,f,h,g;for(null==i&&(i={}),g=i.sticky_class,c=i.inner_scrolling,h=i.recalc_every,f=i.parent,p=i.offset_top,u=i.spacer,r=i.bottoming,null==p&&(p=0),null==f&&(f=void 0),null==c&&(c=!0),null==g&&(g="is_stuck"),o=t(document),null==r&&(r=!0),d=function(t){var e,i;return window.getComputedStyle?(t[0],e=window.getComputedStyle(t[0]),i=parseFloat(e.getPropertyValue("width"))+parseFloat(e.getPropertyValue("margin-left"))+parseFloat(e.getPropertyValue("margin-right")),"border-box"!==e.getPropertyValue("box-sizing")&&(i+=parseFloat(e.getPropertyValue("border-left-width"))+parseFloat(e.getPropertyValue("border-right-width"))+parseFloat(e.getPropertyValue("padding-left"))+parseFloat(e.getPropertyValue("padding-right"))),i):t.outerWidth(!0)},s=function(i,n,s,a,l,y,k,v){var m,w,_,b,C,x,V,P,F,S,j,z;if(!i.data("sticky_kit")){if(i.data("sticky_kit",!0),C=o.height(),V=i.parent(),null!=f&&(V=V.closest(f)),!V.length)throw"failed to find stick parent";if(_=!1,m=!1,j=null!=u?u&&i.closest(u):t("<div />"),j&&j.css("position",i.css("position")),P=function(){var t,e,r;if(!v)return C=o.height(),t=parseInt(V.css("border-top-width"),10),e=parseInt(V.css("padding-top"),10),n=parseInt(V.css("padding-bottom"),10),s=V.offset().top+t+e,a=V.height(),_&&(_=!1,m=!1,null==u&&(i.insertAfter(j),j.detach()),i.css({position:"",top:"",width:"",bottom:""}).removeClass(g),r=!0),l=i.offset().top-(parseInt(i.css("margin-top"),10)||0)-p,y=i.outerHeight(!0),k=i.css("float"),j&&j.css({width:d(i),height:y,display:i.css("display"),"vertical-align":i.css("vertical-align"),float:k}),r?z():void 0},P(),y!==a)return b=void 0,x=p,S=h,z=function(){var t,d,f,w,F,z;if(!v)return f=!1,null!=S&&(S-=1)<=0&&(S=h,P(),f=!0),f||o.height()===C||(P(),f=!0),w=e.scrollTop(),null!=b&&(d=w-b),b=w,_?(r&&(F=w+y+x>a+s,m&&!F&&(m=!1,i.css({position:"fixed",bottom:"",top:x}).trigger("sticky_kit:unbottom"))),w<l&&(_=!1,x=p,null==u&&("left"!==k&&"right"!==k||i.insertAfter(j),j.detach()),t={position:"",width:"",top:""},i.css(t).removeClass(g).trigger("sticky_kit:unstick")),c&&(z=e.height(),y+p>z&&(m||(x-=d,x=Math.max(z-y,x),x=Math.min(p,x),_&&i.css({top:x+"px"}))))):w>l&&(_=!0,t={position:"fixed",top:x},t.width="border-box"===i.css("box-sizing")?i.outerWidth()+"px":i.width()+"px",i.css(t).addClass(g),null==u&&(i.after(j),"left"!==k&&"right"!==k||j.append(i)),i.trigger("sticky_kit:stick")),_&&r&&(null==F&&(F=w+y+x>a+s),!m&&F)?(m=!0,"static"===V.css("position")&&V.css({position:"relative"}),i.css({position:"absolute",bottom:n,top:"auto"}).trigger("sticky_kit:bottom")):void 0},F=function(){return P(),z()},w=function(){if(v=!0,e.off("touchmove",z),e.off("scroll",z),e.off("resize",F),t(document.body).off("sticky_kit:recalc",F),i.off("sticky_kit:detach",w),i.removeData("sticky_kit"),i.css({position:"",bottom:"",top:"",width:""}),V.position("position",""),_)return null==u&&("left"!==k&&"right"!==k||i.insertAfter(j),j.remove()),i.removeClass(g)},e.on("touchmove",z),e.on("scroll",z),e.on("resize",F),t(document.body).on("sticky_kit:recalc",F),i.on("sticky_kit:detach",w),setTimeout(z,0)}},a=0,l=this.length;a<l;a++)n=this[a],s(t(n));return this}}).call(this);var _createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();!function(t){var e=function(){function e(){_classCallCheck(this,e),this.top=20,this.setupValue(),this.initSticky()}return _createClass(e,[{key:"setupValue",value:function(){if(t("#main").outerHeight()<t("#secondary").outerHeight)return!1;this.top=20;var e=t("#wpadminbar"),i=t(".osf-sticky-active");e.length>0&&(this.top+=e.height()),i.length>0&&(this.top+=i.height()),t("#give-sidebar-left").wrapInner('<div class="inner"></div>')}},{key:"initSticky",value:function(){var e=this,i=t(window).width();i<992?jQuery("#secondary > .inner, #give-sidebar-left > .inner").trigger("sticky_kit:detach"):this._makeStickyKit(),t(window).resize(function(){i=t(window).width(),i<992?jQuery("#secondary > .inner, #give-sidebar-left > .inner").trigger("sticky_kit:detach"):e._makeStickyKit()})}},{key:"_makeStickyKit",value:function(){if(t("#main").outerHeight()<t("#secondary .inner").outerHeight())return!1;t("#secondary > .inner").stick_in_parent({parent:"#content > .wrap",offset_top:this.top}),t("#give-sidebar-left > .inner").stick_in_parent({parent:"#give-wrap > div > div",offset_top:this.top})}}]),e}();t(document).ready(function(){new e})}(jQuery); //# sourceMappingURL=sticky-layout.js.map
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium264.web-hosting.com
Server IP: 69.57.162.13
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium264.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 73.65 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: kidscntx
User ID (UID): 1154
Group ID (GID): 1112
Script Owner UID: 1154
Current Dir Owner: 1154