PageSourceSearch

https://sankt-marien-zittau.de/wp-content/themes/ultra/js/jquery.hc-sticky.min.js?ver=2.2.7

js sankt-marien-zittau.de collected 2026-10-02 21:19:37 UTC 7,321 bytes, 2 lines download raw bytes

1/* jquery.hc-sticky.js - minified */
2"use strict";!function(t,e){if("object"==typeof module&&"object"==typeof module.exports){if(!t.document)throw new Error("HC-Sticky requires a browser to run.");module.exports=e(t)}else"function"==typeof define&&define.amd?define("hcSticky",[],e(t)):e(t)}("undefined"!=typeof window?window:this,window=>{const document=window.document,t={top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,stickyClass:"sticky",stickTo:null,followScroll:!0,responsive:null,mobileFirst:!1,onStart:null,onStop:null,onBeforeResize:null,onResize:null,resizeDebounce:100,disable:!1},e=(t,e,o)=>{console.warn("%cHC Sticky:%c "+o+"%c '"+t+"'%c is now deprecated and will be removed. Use%c '"+e+"'%c instead.","color: #fa253b","color: default","color: #5595c6","color: default","color: #5595c6","color: default")},o=function(s,i){if(i=i||{},"string"==typeof s&&(s=document.querySelector(s)),!s)return!1;i.queries&&e("queries","responsive","option"),i.queryFlow&&e("queryFlow","mobileFirst","option");let n={};const l=o.Helpers,c=s.parentNode;"static"===l.getStyle(c,"position")&&(c.style.position="relative");const a=e=>{e=e||{},l.isEmptyObject(e)&&!l.isEmptyObject(n)||(n=Object.assign({},t,n,e))},r=()=>n.disable,p=()=>{const e=n.responsive||n.queries;if(e){const s=window.innerWidth;if(o=i,n=Object.assign({},t,o||{}),n.mobileFirst)for(const t in e)s>=t&&!l.isEmptyObject(e[t])&&a(e[t]);else{const t=[];for(const o in e){const s={};s[o]=e[o],t.push(s)}for(let e=t.length-1;e>=0;e--){const o=t[e],i=Object.keys(o)[0];s<=i&&!l.isEmptyObject(o[i])&&a(o[i])}}}var o},d={css:{},position:null,stick:t=>{t=t||{},l.hasClass(s,n.stickyClass)||(!1===f.isAttached&&f.attach(),d.position="fixed",s.style.position="fixed",s.style.left=f.offsetLeft+"px",s.style.width=f.width,void 0===t.bottom?s.style.bottom="auto":s.style.bottom=t.bottom+"px",void 0===t.top?s.style.top="auto":s.style.top=t.top+"px",s.classList?s.classList.add(n.stickyClass):s.className+=" "+n.stickyClass,n.onStart&&n.onStart.call(s,Object.assign({},n)))},release:t=>{if((t=t||{}).stop=t.stop||!1,!0!==t.stop&&"fixed"!==d.position&&null!==d.position&&(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(l.getStyle(s,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(l.getStyle(s,"bottom"))||0)===t.bottom))return;!0===t.stop?!0===f.isAttached&&f.detach():!1===f.isAttached&&f.attach();const e=t.position||d.css.position;d.position=e,s.style.position=e,s.style.left=!0===t.stop?d.css.left:f.positionLeft+"px",s.style.width="absolute"!==e?d.css.width:f.width,void 0===t.bottom?s.style.bottom=!0===t.stop?"":"auto":s.style.bottom=t.bottom+"px",void 0===t.top?s.style.top=!0===t.stop?"":"auto":s.style.top=t.top+"px",s.classList?s.classList.remove(n.stickyClass):s.className=s.className.replace(new RegExp("(^|\\b)"+n.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),n.onStop&&n.onStop.call(s,Object.assign({},n))}},f={el:document.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:()=>{f.el.className="sticky-spacer";for(const t in d.css)f.el.style[t]=d.css[t];f.el.style["z-index"]="-1";const t=l.getStyle(s);f.offsetLeft=l.offset(s).left-(parseInt(t.marginLeft)||0),f.positionLeft=l.position(s).left,f.width=l.getStyle(s,"width")},attach:()=>{c.insertBefore(f.el,s),f.isAttached=!0},detach:()=>{f.el=c.removeChild(f.el),f.isAttached=!1}};let m,h,u,g,y,b,S,k,w,v,x,E,T,L,z,j,O,H;let C,N=window.pageYOffset||document.documentElement.scrollTop,R=0;const B=()=>{z=H(),g=O(),T=y+g-k-x,L=z>S;const t=window.pageYOffset||document.documentElement.scrollTop,e=l.offset(s).top,o=e-t;let i;C=t<N?"up":"down",R=t-N,N=t,t>E?T+k+(L?w:0)-(n.followScroll&&L?0:k)<=t+z-v-(z-v>S-(E-v)&&n.followScroll&&(i=z-S-v)>0?i:0)?d.release({position:"absolute",bottom:b+c.offsetHeight-T-k}):L&&n.followScroll?"down"===C?o+z+w<=S+.9?d.stick({bottom:w}):"fixed"===d.position&&d.release({position:"absolute",top:e-k-E-R+v}):Math.ceil(o+v)<0&&"fixed"===d.position?d.release({position:"absolute",top:e-k-E+v-R}):e>=t+k-v&&d.stick({top:k-v}):d.stick({top:k-v}):d.release({stop:!0})};let F=!1,M=!1;const A=()=>{F&&(window.removeEventListener("scroll",B,l.supportsPassive),F=!1)},q=()=>{null!==s.offsetParent&&"none"!==l.getStyle(s,"display")?(d.css=(t=>{const e=l.getCascadedStyle(t),o=l.getStyle(t),s={height:t.offsetHeight+"px",left:e.left,right:e.right,top:e.top,bottom:e.bottom,position:o.position,display:o.display,verticalAlign:o.verticalAlign,boxSizing:o.boxSizing,marginLeft:e.marginLeft,marginRight:e.marginRight,marginTop:e.marginTop,marginBottom:e.marginBottom,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight};return e.float&&(s.float=e.float||"none"),e.cssFloat&&(s.cssFloat=e.cssFloat||"none"),o.MozBoxSizing&&(s.MozBoxSizing=o.MozBoxSizing),s.width="auto"!==e.width?e.width:"border-box"===s.boxSizing||"border-box"===s.MozBoxSizing?t.offsetWidth+"px":o.width,s})(s),f.init(),m=!(!n.stickTo||!("document"===n.stickTo||n.stickTo.nodeType&&9===n.stickTo.nodeType||"object"==typeof n.stickTo&&n.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),h=n.stickTo?m?document:l.getElement(n.stickTo):c,H=()=>{const t=s.offsetHeight+(parseInt(d.css.marginTop)||0)+(parseInt(d.css.marginBottom)||
20),e=(z||0)-t;return e>=-1&&e<=1?z:t},z=H(),O=()=>m?Math.max(document.documentElement.clientHeight,document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight):h.offsetHeight,g=O(),y=m?0:l.offset(h).top,b=n.stickTo?m?0:l.offset(c).top:y,S=window.innerHeight,j=s.offsetTop-(parseInt(d.css.marginTop)||0),u=l.getElement(n.innerSticker),k=isNaN(n.top)&&n.top.indexOf("%")>-1?parseFloat(n.top)/100*S:n.top,w=isNaN(n.bottom)&&n.bottom.indexOf("%")>-1?parseFloat(n.bottom)/100*S:n.bottom,v=u?u.offsetTop:n.innerTop?n.innerTop:0,x=isNaN(n.bottomEnd)&&n.bottomEnd.indexOf("%")>-1?parseFloat(n.bottomEnd)/100*S:n.bottomEnd,E=y-k+v+j,z>g?A():(B(),F||(window.addEventListener("scroll",B,l.supportsPassive),F=!0))):A()},D=()=>{s.style.position="",s.style.left="",s.style.top="",s.style.bottom="",s.style.width="",s.classList?s.classList.remove(n.stickyClass):s.className=s.className.replace(new RegExp("(^|\\b)"+n.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),d.css={},d.position=null,!0===f.isAttached&&f.detach()},I=()=>{D(),p(),r()?A():q()},P=()=>{n.onBeforeResize&&n.onBeforeResize.call(s,Object.assign({},n)),I(),n.onResize&&n.onResize.call(s,Object.assign({},n))},Q=n.resizeDebounce?l.debounce(P,n.resizeDebounce):P,W=()=>{M&&(window.removeEventListener("resize",Q,l.supportsPassive),M=!1),A()},Y=()=>{M||(window.addEventListener("resize",Q,l.supportsPassive),M=!0),p(),r()?A():q()};this.options=t=>t?n[t]:Object.assign({},n),this.refresh=I,this.update=t=>{a(t),i=Object.assign({},i,t||{}),I()},this.attach=Y,this.detach=W,this.destroy=()=>{W(),D()},this.triggerMethod=(t,e)=>{"function"==typeof this[t]&&this[t](e)},this.reinit=()=>{e("reinit","refresh","method"),I()},a(i),Y(),window.addEventListener("load",I)};if(void 0!==window.jQuery){const $=window.jQuery,t="hcSticky";$.fn.extend({hcSticky:function(e,s){return this.length?"options"===e?$.data(this.get(0),t).options():this.each(function(){let i=$.data(this,t);i?i.triggerMethod(e,s):(i=new o(this,e),$.data(this,t,i))}):this}})}return window.hcSticky=window.hcSticky||o,o});

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.