ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-18 05:01:01
Editing: sticky.js
Cancel
Save Changes
/** * @preserve Sticky Anything 2.1.1 | @senff | GPL2 Licensed */ !function(a){function b(b,c,d,e,f,g,h){$listenerElement=a(".dtb-sticky-active");var i=$listenerElement.offset();if(orgElementTop=i.top,f){var j=a(f).offset();pushElementTop=j.top}var k=window,l="inner";if("innerWidth"in window||(l="client",k=document.documentElement||document.body),viewport=k[l+"Width"],a(window).scrollTop()>=orgElementTop-b&&viewport>=c&&viewport<=d){coordsOrgElement=$listenerElement.offset(),leftOrgElement=coordsOrgElement.left,widthPlaceholder=$listenerElement[0].getBoundingClientRect().width,widthPlaceholder||(widthPlaceholder=$listenerElement.css("width")),heightPlaceholder=$listenerElement[0].getBoundingClientRect().height,heightPlaceholder||(heightPlaceholder=$listenerElement.css("height")),widthSticky=a(".dtb-sticky-original").css("width"),"0px"==widthSticky&&(widthSticky=a(".dtb-sticky-original")[0].getBoundingClientRect().width),heightSticky=a(".dtb-sticky-original").height(),paddingOrgElement=[a(".dtb-sticky-original").css("padding-top"),a(".dtb-sticky-original").css("padding-right"),a(".dtb-sticky-original").css("padding-bottom"),a(".dtb-sticky-original").css("padding-left")],paddingSticky=paddingOrgElement[0]+" "+paddingOrgElement[1]+" "+paddingOrgElement[2]+" "+paddingOrgElement[3],marginOrgElement=[$listenerElement.css("margin-top"),$listenerElement.css("margin-right"),$listenerElement.css("margin-bottom"),$listenerElement.css("margin-left")],marginPlaceholder=marginOrgElement[0]+" "+marginOrgElement[1]+" "+marginOrgElement[2]+" "+marginOrgElement[3],assignedStyles="";for(var m in g)"inline"==g[m]?assignedStyles+=m+":inline-block; ":assignedStyles+=m+":"+g[m]+"; ";elementHeight=0,heightPlaceholder<1?elementHeight=a(".dtb-sticky-cloned").outerHeight():elementHeight=a(".dtb-sticky-original").outerHeight(),f&&a(window).scrollTop()>pushElementTop-b-elementHeight?stickyTopMargin=pushElementTop-b-elementHeight-a(window).scrollTop():stickyTopMargin=0,assignedStyles+="width:"+widthPlaceholder+"px; height:"+heightPlaceholder+"px; margin:"+marginPlaceholder+";",a(".dtb-sticky-original").removeClass("dtb-not-sticky").addClass("dtb-is-sticky").removeClass("dtb-sticky-active").css("position","fixed").css("left",leftOrgElement+"px").css("top",b+"px").css("width",widthSticky).css("margin-left",0).css("padding",paddingSticky).css("margin-top",stickyTopMargin).css("z-index",e),a(".sticky-element-placeholder").hasClass("dtb-sticky-active")||a(".sticky-element-placeholder").addClass("dtb-sticky-active").attr("style",assignedStyles)}else a(".dtb-sticky-original").addClass("dtb-not-sticky").removeClass("dtb-is-sticky").addClass("dtb-sticky-active").attr("style",h),a(".sticky-element-placeholder").hasClass("dtb-sticky-active")&&a(".sticky-element-placeholder").removeClass("dtb-sticky-active").removeAttr("style").css("width","0").css("height","0").css("margin","0").css("padding","0")}function c(){a(".dtb-sticky-original").addClass("dtb-sticky-active").before('<div class="sticky-element-placeholder" style="width:0; height:0; margin:0; padding:0; visibility:hidden;"></div>')}function d(a){return o={},o.display=a.css("display"),o.float=a.css("float"),o.flex=a.css("flex"),o["box-sizing"]=a.css("box-sizing"),o.clear=a.css("clear"),o.overflow=a.css("overflow"),o.transform=a.css("transform"),o}a.fn.stickThis=function(e){var f=a.extend({top:0,minscreenwidth:0,maxscreenwidth:99999,zindex:1,debugmode:!1,pushup:""},e),g=a(this).length,h=a(f.pushup).length;return h<1?(1==f.debugmode&&f.pushup&&console.error('DTB STICKY DEBUG: There are no elements with the selector/class/ID you selected for the Push-up element ("'+f.pushup+'").'),f.pushup=""):h>1&&(1==f.debugmode&&console.error("DTB STICKY DEBUG: There are "+h+' elements on the page with the selector/class/ID you selected for the push-up element ("'+f.pushup+'"). You can select only ONE element to push the sticky element up.'),f.pushup=""),g<1?1==f.debugmode&&console.error('DTB STICKY DEBUG: There are no elements with the selector/class/ID you selected for the sticky element ("'+this.selector+'").'):g>1?1==f.debugmode&&console.error("DTB STICKY DEBUG: There There are "+h+' elements with the selector/class/ID you selected for the sticky element ("'+this.selector+'"). You can only make ONE element sticky.'):(a(this).addClass("dtb-sticky-original").addClass("dtb-not-sticky"),orgAssignedStyles=d(a(this)),orgInlineStyles=a(".dtb-sticky-original").attr("style"),null==orgInlineStyles&&(orgInlineStyles=""),c(),checkElement=setInterval(function(){b(f.top,f.minscreenwidth,f.maxscreenwidth,f.zindex,f.pushup,orgAssignedStyles,orgInlineStyles)},10)),this}}(jQuery); jQuery(document).ready(function($) { $(sticky_values.dtb_sticky_class).parent().css('z-index', '10'); $(sticky_values.dtb_sticky_class).stickThis({ top: sticky_values.dtb_sticky_offset, minscreenwidth: sticky_values.dtb_sticky_breakpoint, zindex: 10, pushup: sticky_values.dtb_sticky_pushup_class }); });
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete