PageSourceSearch

https://www.horizont.net/js/lib/b2.js?28

js horizont.net collected 2026-09-24 15:22:49 UTC 6,796 bytes, 1 lines download raw bytes

1(()=>{"use strict";let e=window.spData;function t(e){let t;try{t=window[e];const n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(e){return!1}}function n(n="",o=""){let a=!1;""===o&&(o=localStorage.getItem("dfv_uc_transaction_id")),""===n?n=null!==localStorage.getItem("dfv_uc_sp_reason")?localStorage.getItem("dfv_uc_sp_reason"):"essentiell":t("localStorage")&&localStorage.setItem("dfv_uc_sp_reason",n),e.context&&e.context.forEach((e=>{e.data.processing_reason&&(a=!0,e.data.processing_reason=n,e.data.transaction_id=o)})),a||e.context.push({schema:e.additional_schemas.consent_context,data:{processing_reason:n,transaction_id:o}})}function o(e,t=0,n=255){const o=[" ",".",",","!","?","/"].map((e=>encodeURIComponent(e))),a=n;let i,s=[];if((e=encodeURIComponent(e.trim())).length<=a)return decodeURIComponent(e);if(o.forEach((t=>{let n=new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");for(;null!==(i=n.exec(e));)s.push(i);s&&(s=s.filter((e=>e.index+e[0].length<=a)))})),!s)return decodeURIComponent(e);s.sort(((e,t)=>e.index-t.index));let l=s.pop(),c=l.index+l[0].length;return e=e.slice(t,c),decodeURIComponent(e)}function a(e,t,n,o,a,i,s,l){window.snowplow("setCustomUrl","/vp"+t),window.snowplow("clearGlobalContexts"),e&&(e.data.image_id=a,e.data.position=i,s?o[l]=e:o[o.length]=e),window.snowplow("addGlobalContexts",o.filter((e=>void 0===e.data.news_id))),n?window.snowplow("trackPageView",{title:n}):window.snowplow("trackPageView"),e&&!s&&window.spData.context.splice(l,1),window.snowplow("clearGlobalContexts"),window.snowplow("addGlobalContexts",window.spData.context),window.snowplow("setCustomUrl",window.location.pathname+window.location.search)}const i=function(e,n="",o="",i=null){const s=window.spData.context;let l=window.spData.context.findIndex((e=>void 0!==e.data.gallery_id));const c=l>-1,r=i||document.getElementById(e);if(!r)return void(n&&a(null,n,o,s,0,0,!1,0));let d=r.querySelectorAll(".swiper-slide");if(void 0!==d&&0!==d.length||(d=r.querySelectorAll(".slick-slide")),void 0===d||0===d.length)return;const w=Array.from(d).filter((e=>!e.classList.contains("slick-cloned")&&!e.classList.contains("MediaGallery_thumbnailImage"))),p=e=>e.classList.contains("swiper-slide-active")||e.classList.contains("slick-active"),_=w.filter(p),g=w.findIndex(p)+1,m=_[0].getElementsByTagName("img")[0],u=(m.getAttribute("src")||m.getAttribute("data-lazy")).match(/\/gallery\/media(p)?\/([0-9]+)\/([0-9]+)-.*\.[a-z]+/),v=_[0].getElementsByClassName("MediaImageGallery");let f=null,h=null;if(!u||1!==_.length||0!==v.length)return void a(null,n,o,s,0,0,!0,0);f=u[2],h=u[3];const x="_sp_galCtx_";if(t("sessionStorage"))if(c||null!==sessionStorage.getItem(x+f))null!==sessionStorage.getItem(x+f)?a(JSON.parse(sessionStorage.getItem(x+f)),n,o,s,h,g,c,l):a(s[l],n,o,s,h,g,c,l);else{const e=new XMLHttpRequest;e.open("POST","/gallery-context-data"),e.setRequestHeader("Content-Type","application/json"),e.onreadystatechange=()=>{e.readyState===XMLHttpRequest.DONE&&200===e.status&&(sessionStorage.setItem(x+f,e.response),a(JSON.parse(sessionStorage.getItem(x+f)),n,o,s,h,g,c,l))};const t=JSON.stringify({gallery_id:f});e.send(t)}},s=document.querySelectorAll("section[class^='Stage'], .TeaserSlider, .StageTeaserImageSlider, .EventsSlider");for(let e=0;e<s.length;e++){const t=s[e],n=t.getElementsByClassName("slick-slider")[0]||null;if(null===n)continue;let o=window.location.pathname+window.location.search;"/"===o&&(o="");const a=t.getElementsByClassName("StageTitle-title")[0]||null;let l="";a&&(l=a.textContent.trim());let c=n,r=c.slick.currentSlide;n.addEventListener("click",(function(){const e=c.slick.currentSlide;r!==e&&(r=e,i(null,o,l,this),"function"==typeof window.dfv_ga_vpageview&&window.dfv_ga_vpageview(o,l),"function"==typeof window.dfv_iom_rpl&&window.dfv_iom_rpl())}))}function l(){const t=e.events_listening_to,n=e.context_events;if(t)for(let o=0;o<t.length;o++){switch(t[o]){case"piano_view":window.snowplow("trackSelfDescribingEvent",{event:{schema:"iglu:de.dfv.sp/piano_view_context/jsonschema/1-0-1",data:{piano_template_id:e.context_events.piano.view.piano_template_id||"",transaction_id:e.context_events.piano.view.transaction_id||"",container:e.context_events.piano.view.container||"",template_name:e.context_events.piano.view.template_name||"",template_type:e.context_events.piano.view.template_type||"",type:e.context_events.piano.view.type||""}}});break;case"doi_link_click":window.snowplow("trackSelfDescribingEvent",{event:{schema:"iglu:de.dfv.sp/piano_conversion_context/jsonschema/1-0-1",data:{piano_template_id:e.context_events.piano.lead_conversion.piano_template_id||"",transaction_id:e.context_events.piano.lead_conversion.transaction_id||"",type:"conversion",abo_id:"",voucher:"",amount:0}}}),n.piano&&n.piano.lead_conversion&&(n.piano.lead_conversion.length=0);break;default:continue}t.splice(o,1),--o}}var c,r,d,w,p,_,g;window.sp_track_virtual_page_view||(window.sp_track_virtual_page_view=i),c=window,r=document,d="script",w=e.settings.library_path,c[p="snowplow"]||(c.GlobalSnowplowNamespace=c.GlobalSnowplowNamespace||[],c.GlobalSnowplowNamespace.push(p),c[p]=function(){(c[p].q=c[p].q||[]).push(arguments)},c[p].q=c[p].q||[],_=r.createElement(d),g=r.getElementsByTagName(d)[0],_.async=1,_.src=w,g.parentNode.insertBefore(_,g));let m=0;function u(){window.snowplow("enableActivityTracking",{minimumVisitLength:5,heartbeatDelay:5})}function v(t,a="",i=""){0===t?(window.snowplow("newTracker","sp_tracker_1",e.settings.collector_url,{appId:e.settings.app_id,cookieDomain:e.settings.cookie_domain,postPath:"/roller/coaster"}),e.context&&e.context.forEach((e=>
1{e.data.user_id&&window.snowplow("setUserId",e.data.user_id)})),n(a,i),window.snowplow("addGlobalContexts",e.context),["click","auxclick"].forEach((t=>{document.addEventListener(t,(t=>{let n=t.target;const a=t.target;"A"!==n.tagName&&"A"===a.parentNode.tagName&&(n=a.parentNode);const i=n;void 0!==i.href&&window.snowplow("trackSelfDescribingEvent",{event:{schema:e.additional_schemas.clicked_link_context,data:{link_title:o(n.innerText,0,255),destination_url:o(i.href,0,255),target_attr:i.target,classes:n.className.trim().split(" "),id:n.id}}})}))})),l(),u(),window.snowplow("trackPageView")):(n(a,i),l(),u(),window.snowplow("trackPageView"))}"true"!==localStorage.getItem("uc_user_interaction")&&"true"!==localStorage.getItem("dfv_uc_user_interaction")||(v(m),m++),window.addEventListener("UC_CONSENT",(e=>{let n="essentiell";if(void 0!==e){const o=Object.values(e.detail.services||[]).find((({name:e})=>"SnowPlow Extended"===e)),a=e.detail.consent.controllerId;o&&o.consent&&!0===o.consent.given&&(n="marketing"),t("localStorage")&&(localStorage.setItem("dfv_uc_user_interaction","true"),localStorage.setItem("dfv_uc_transaction_id",a)),v(m,n,a),m++}}))})();

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.