PageSourceSearch

https://www.symplectic.co.uk/wp-content/plugins/ui-kit-navigation//dist/js/headroom.js?ver=0.12.0

js symplectic.co.uk collected 2026-10-02 03:24:16 UTC 4,791 bytes, 2 lines download raw bytes

1/*! For license information please see headroom.js.LICENSE.txt */
2var t={112:function(t){t.exports=function(){function t(){return"undefined"!==typeof window}function o(){var t=!1;try{var o={get passive(){t=!0}};window.addEventListener("test",o,o),window.removeEventListener("test",o,o)}catch(o){t=!1}return t}function n(){return!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame)}function s(t){return 9===t.nodeType}function e(t){return t&&t.document&&s(t.document)}function i(t){var o=t.document,n=o.body,s=o.documentElement;return{scrollHeight:function(){return Math.max(n.scrollHeight,s.scrollHeight,n.offsetHeight,s.offsetHeight,n.clientHeight,s.clientHeight)},height:function(){return t.innerHeight||s.clientHeight||n.clientHeight},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(s||n.parentNode||n).scrollTop}}}function r(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}function a(t){return e(t)?i(t):r(t)}function l(t,n,s){var e,i=o(),r=!1,l=a(t),c=l.scrollY(),h={};function u(){var t=Math.round(l.scrollY()),o=l.height(),e=l.scrollHeight();h.scrollY=t,h.lastScrollY=c,h.direction=t>c?"down":"up",h.distance=Math.abs(t-c),h.isOutOfBounds=t<0||t+o>e,h.top=t<=n.offset[h.direction],h.bottom=t+o>
vendor: 3,354 bytes, line 2
2=e,h.toleranceExceeded=h.distance>n.tolerance[h.direction],s(h),c=t,r=!1}function d(){r||(r=!0,e=requestAnimationFrame(u))}var f=!!i&&{passive:!0,capture:!1};return t.addEventListener("scroll",d,f),u(),{destroy:function(){cancelAnimationFrame(e),t.removeEventListener("scroll",d,f)}}}function c(t){return t===Object(t)?t:{down:t,up:t}}function h(t,o){o=o||{},Object.assign(this,h.options,o),this.classes=Object.assign({},h.options.classes,o.classes),this.elem=t,this.tolerance=c(this.tolerance),this.offset=c(this.offset),this.initialised=!1,this.frozen=!1}return h.prototype={constructor:h,init:function(){return h.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=l(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every(function(t){return this.classList.contains(t)},this.elem)},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},h.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},h.cutsTheMustard=n(),h}()}},o={};function n(s){var e=o[s];if(void 0!==e)return e.exports;var i=o[s]={exports:{}};return t[s].call(i.exports,i,i.exports,n),i.exports}n.n=t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return n.d(o,{a:o}),o},n.d=(t,o)=>{for(var s in o)n.o(o,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:o[s]})},n.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);var s={};n.d(s,{G:()=>i.a});var e=n(112),i=n.n(e);const r=s.G;export{r as Headroom};

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.