static.oracle.com
Open in
urlscan Pro
2a02:26f0:f700:e::5f65:4b6e
Public Scan
URL:
https://static.oracle.com/cdn/apex/23.1.5/libraries/apex/minified/widget.stickyWidget.min.js?v=23.1.5
Submission: On November 04 via manual from GB — Scanned from GB
Submission: On November 04 via manual from GB — Scanned from GB
Form analysis
0 forms found in the DOMText Content
!function(t){"use strict";let s,e=300;function i(t,s){document.querySelector(":root").style.setProperty("--js-sticky-scrollpad-block-"+t,s)}t.widget("apex.stickyWidget",{widgetEventPrefix:"stickyWidget",options:{zIndexStart:-1,toggleHeight:!1,toggleWidth:!1,top:null,bottom:null,stickToEnd:!1,useWindow:!0,isFooter:!1,stick:null,unstick:null,stickEnd:null,unstickEnd:null},reStick:function(t=!1){if((!this.stuck||this.stuckToEnd)&&!t)return;let s,e,o=this.options;o.isFooter?(s=o.bottom.call(this),e=s+this.unstuckHeight,i("end",e+"px"),this.element.css("position","fixed").css("bottom",s)):(s=o.top.call(this),e=s+this.unstuckHeight,i("start",e+"px"),this.element.css("position","fixed").css("top",s))},forceScrollParent:function(t){this._destroy(),s=t&&t.length>0?t:null,this._create()},_stickToEnd:function(){if(this.stuckToEnd)return;let t,s,e=this.options,i=this.element;this._removeScrollPadding(),this.stuckToEnd=!0,e.isFooter?(t=e.top.call(this),s="bottom"):(t=e.bottom.call(this)-i.outerHeight(),s="top"),i.css("bottom","").css("position","absolute").css("top",t-i.offsetParent().offset().top),this._trigger("stickEnd",null,{where:s,offset:t})},_unstickFromEnd:function(){if(!this.stuckToEnd)return;let t=this.options.isFooter;this.stuckToEnd=!1,t&&this.element.css("top",""),this.stuck?(this.stuck=!1,this._stick()):(this.stuck=!0,this._unstick()),this._trigger("unstickEnd",null,{where:t?"bottom":"top"})},_stick:function(){if(this.stuck)return;let t=this.element,s=this.options,e=s.isFooter?"bottom":"top";t.addClass("is-stuck"),this.reStick(!0),this.stuck=!0,s.toggleHeight&&t.css("height",this.unstuckHeight),s.toggleWidth&&t.css("width",this.unstuckWidth),this._trigger("stick",null,{where:e,offset:t.css(e)})},_unstick:function(){if(!this.stuck)return;let t=this.element,s=this.options.isFooter;t.removeClass("is-stuck").css("position","absolute").css(s?"bottom":"top","auto"),this._removeScrollPadding(),this.stuck=!1,this._revertToCssWidthAndHeight(),this._recalculateFixedStuckDimensions(),this._trigger("unstick",null,{where:s?"bottom":"top"})},_removeScrollPadding:function(){let t,s=this.options.isFooter?"end":"start";t=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--js-sticky-scrollpad-block-"+s),10)-this.unstuckHeight,t<=0?t="auto":t+="px",i(s,t)},_revertToCssWidthAndHeight:function(){this.options.toggleHeight&&this.element.css("height",this.cssHeight),this.options.toggleWidth&&this.element.css("width",this.cssWidth)},_recalculateFixedStuckDimensions:function(){this.stuck||(this.unstuckWidth=this.element.outerWidth(),this.unstuckHeight=this.element.outerHeight())},_setupDimensions:function(){this._revertToCssWidthAndHeight(),this.replacement.css("width",this.element.outerWidth()).css("height",this.element.outerHeight())},refresh:function(){},_getDefaultOffset:function(){return this.options.top?this.options.top.call(this):null},_deferCreate:function(){let i,o=this,n=this.options,c=this.replacement=t('<div class="js-stickyWidget-placeholder"></div>'),l=this.element,r=null;s?this.scrollParent$=s:(this.scrollParent$=l.scrollParent(),n.useWindow&&(this.scrollParent$=t(window)));let h=this.isWindow=this.scrollParent$[0]===window,u=this.scrollParent$;l.addClass("js-stickyWidget-toggle"),n.zIndexStart<0?(this.zIndex=e,e+=1):this.zIndex=n.zIndexStart,l.css("z-index",this.zIndex),c.insertAfter(l),this._recalculateFixedStuckDimensions(),this.cssHeight=l.css("height"),this.cssWidth=l.css("width"),this._setupDimensions(),i=n.isFooter?function(){let t,s,e,i=u.scrollTop()+u.height()-n.bottom.call(o);if(n.stickToEnd){if(s=i-l.outerHeight(),e=n.top.call(o),s<e)return void o._stickToEnd();o._unstickFromEnd()}t=c.offset().top+c.outerHeight(),h||(t+=u.scrollTop()),i<t?o._stick():o._unstick()}:function(){let t,s,e,i=u.scrollTop()+n.top.call(o);if(n.stickToEnd){if(s=i+l.outerHeight(),e=n.bottom.call(o),s>=e)return void o._stickToEnd();o._unstickFromEnd()}t=c.offset().top,h||(t+=u.scrollTop()),i>=t?o._stick():o._unstick()},this.scrollHandler=function(){r||(r=apex.util.invokeAfterPaint((function(){r=null,i()})))},this.refresh=this.resizeHandler=function(){let t=l.css("z-index");l.removeAttr("style"),o.cssHeight=l.css("height"),o.cssWidth=l.css("width"),o.unstuckWidth=l.outerWidth(),o.unstuckHeight=l.outerHeight(),l.css("z-index",t).css("position","absolute"),(o.stuck||o._storedTopOffset!==o._getDefaultOffset())&&o.reStick(),o._setupDimensions(),o.scrollHandler()},u.on("scroll",this.scrollHandler),t(window).on("apexwindowresized",this.resizeHandler),l.on("forceresize",this.resizeHandler).css("position","absolute").css(n.isFooter?"bottom":"top","auto"),this.scrollHandler()},_create:function(){let s=this.options;this.stuck=!1,this.stuckToEnd=!1,this.cssWidth=0,this.cssHeight=0,this.unstuckWidth=0,this.unstuckHeight=0,this._storedTopOffset=this._getDefaultOffset(),s.isFooter?(s.top||(s.top=function(){let s=t(this.element).parent().offset().top;return this.isWindow||(s-=this.scrollParent$.offset().top-this.scrollParent$.scrollTop()),s}),s.bottom||(s.bottom=function(){return 0})):(s.top||(s.top=function(){return apex.theme.defaultStickyTop()}),s.bottom||(s.bottom=function(){let s=t(this.element).parent(),e=s.offset().top;return this.isWindow||(e-=this.scrollParent$.offset().top-this.scrollParent$.scrollTop()),e+s.outerHeight()})),this._deferCreate()},_destroy:function(){t(window).off("apexwindowresized",this.resizeHandler),this.scrollParent$.off("scroll",this.scrollHandler),this.replacement.remove(),this.element.removeAttr("style").removeClass("js-stickyWidget-toggle is-stuck").off("forceresize",this.resizeHandler).trigger("apexstickyWidgetdestroyed")}})}(apex.jQuery);