PageSourceSearch

https://www.hamburg-travel.com/_assets/b4ccaba872ad200c4e382984a31…/Scripts/Organisms/pageHeader.js?1789550564

js hamburg-travel.com collected 2026-09-24 09:20:16 UTC 3,697 bytes, 1 lines download raw bytes

1!function(){var e={79656:function(e,t,n){"use strict";var o,a,r,i=n(5052),d=n.n(i);t.Z=(a=function(e,t){var n=window.globalStates_stateCollection;if(n[e]||(n[e]=[]),-1!==n[e].indexOf(t))return!1;if(n[e].push(t),!o.classList.contains(e)){var a=new CustomEvent("addState",{detail:{state:e}});o.dispatchEvent(a),o.classList.add("-state-"+e)}},r=function(e,t,n){var a=window.globalStates_stateCollection;if(!a[e])return!1;if(n)a[e]=[];else{var r=a[e].indexOf(t);if(-1===r)return!1;a[e].splice(r,1)}if(0===a[e].length){var i=new CustomEvent("removeState",{detail:{state:e}});o.dispatchEvent(i),o.classList.remove("-state-"+e)}},window.globalStates_stateCollection={},d().documentReady((function(){o=document.getElementsByTagName("html")[0],document.addEventListener("globalOverlay--addState",(function(e){a(e.detail.state,e.detail.initiator)})),document.addEventListener("globalOverlay--removeState",(function(e){r(e.detail.state,e.detail.initiator)}))})),{addState:a,removeState:r,hasState:function(e){var t=window.globalStates_stateCollection;return!!t[e]&&0!==t[e].length}})},5052:function(e){e.exports={offsetTop:function(e){var t=document.querySelector("body");return e.getBoundingClientRect().top-t.getBoundingClientRect().top},offsetLeft:function(e){var t=document.querySelector("body");return e.getBoundingClientRect().left-t.getBoundingClientRect().left},scrollTo:function(e,t,n){var o=function(){return{x:window.pageXOffset,y:window.pageYOffset}},a=o(),r={x:(e-a.x)/(n/15),y:(t-a.y)/(n/15)},i=setInterval((function(){!function(){var n=o(),a={x:!1,y:!1};return r.x<0?n.x+r.x<=e&&(a.x=!0):n.x+r.x>=e&&(a.x=!0),r.y<0?n.y+r.y<=t&&(a.y=!0):n.y+r.y>=t&&(a.y=!0),!(!a.x||!a.y)}()?window.scrollBy(r.x,r.y):(clearInterval(i),window.scrollTo(e,t))}),15)},scrollElementTo:function(e,t,n,o){var a=function(){return{x:o.scrollLeft,y:o.scrollTop}},r=a(),i=(e-r.x)/(n/15),d=(t-r.y)/(n/15),c=setInterval((function(){!function(){var n=a(),o={x:!1,y:!1};return i<0?n.x+i<=e&&(o.x=!0):n.x+i>=e&&(o.x=!0),d<0?n.y+d<=t&&(o.y=!0):n.y+d>=t&&(o.y=!0),!(!o.x||!o.y)}()?(o.scrollLeft+=i,o.scrollTop+=d):(clearInterval(c),o.scrollLeft=e,o.scrollTop+=t)}),15)},accessDataset:function(e,t){return e.dataset?e.dataset[t]:e.getAttribute("data-"+t)},extendObject:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e},documentReady:function(e){let t=!1;"undefined"!=typeof less&&"object"==typeof less.pageLoadFinished&&(t=!0);var n=function(){t?less.pageLoadFinished.then((()=>{setTimeout(e)})):setTimeout(e)},o=function(){document.removeEventListener("DOMContentLoaded",o),window.removeEventListener("load",o),n()};"complete"===document.readyState?n():(document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o))}}}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,o,a,r,i,d=n(79656),c=n(5052);e=function(){d.Z.addState("pageHeader--hidden","pageHeader")},t=function(){d.Z.removeState("pageHeader--hidden","pageHeader")},o=function(){d.Z.addState("pageHeader--sticky","pageHeader")},a=function(){d.Z.removeState("pageHeader--sticky","pageHeader")},r=function(){var n;(n=window.scrollY)>100?o():a(),n-i>0?(e(),i=n):n>100?(o(),t(),i=n):0==n?(a(),t(),i=n):(a(),e(),i=n)},i=0,n.n(c)().documentReady((function(){document.getElementById("pageHeader")&&window.addEventListener("scroll",r)}))}()}();

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.