PageSourceSearch

https://www.paderborn.de/WEB-IES/paderborn-module/3.4.0/js/customer.js

js paderborn.de collected 2026-10-02 03:57:48 UTC 19,837 bytes, 1 lines download raw bytes

1var breakpoints={grid:{xs:320,sm:480,md:640,lg:960,xl:1280,end:1412},tweak:{logo_scaletext:400,logo_showlogo:320},functional:{table_mode:768,offcanvas:960,contact_collapsible_max:639,contact_collapsible_min:640}};SP.lang.Class.define("SP.PictureZoom",{statics:{groups:{}},_options:null,_trigger:null,init:function(e){if(this._options={},!e.hasAttribute("data-sp-figure-zoom")||null===SP.dom.Element.findParent(e,"[data-sp-picture-gallery-item]")){var t,n=SP.dom.Element.findParent(e,"[data-sp-picture-gallery]"),i=this;null===n?t="default":n.hasAttribute("id")?t=n.getAttribute("id"):(t="gallery-"+this._getId(),n.setAttribute("id",t));var o={};if(e.hasAttribute("data-sp-figure-zoom")&&(o=JSON.parse(e.getAttribute("data-sp-figure-zoom"))),e.querySelector("[data-sp-figure-zoom]")&&(o=JSON.parse(e.querySelector("[data-sp-figure-zoom]").getAttribute("data-sp-figure-zoom"))),e.hasAttribute("data-sp-picture-gallery-item")){var r=JSON.parse(e.getAttribute("data-sp-picture-gallery-item"));r.downloadUrl&&(o.downloadUrl=r.downloadUrl)}o.id=e.id,e.hasAttribute("data-copyright")&&(o.copyright=e.getAttribute("data-copyright")),e.hasAttribute("data-description")&&(o.description=e.getAttribute("data-description")),e.hasAttribute("data-legend")&&(o.legend=e.getAttribute("data-legend")),(o.copyright||o.description||o.legend)&&(o.title=!0),o.trigger=e.querySelector('a:not([rel="copyright"])'),o.group=t,this._trigger=o.trigger,SP.PictureZoom.groups[t]||(SP.PictureZoom.groups[t]=[],n&&""!==n.getAttribute("data-sp-picture-gallery")&&(this._options=SP.lang.Object.apply({},JSON.parse(n.getAttribute("data-sp-picture-gallery"))||{}))),SP.PictureZoom.groups[t].push(o);var a=SP.PictureZoom.groups[t].length-1;if(o.trigger.addEventListener("click",function(e){e.preventDefault(),i._initPhotoswipe(SP.PictureZoom.groups[t],a)}),window.location.hash)for(var s=window.location.hash.replace("#",""),l=0;l<SP.PictureZoom.groups[t].length;l++)SP.PictureZoom.groups[t][l].id===s&&i._initPhotoswipe(SP.PictureZoom.groups[t],l)}},_configureShareButtons:function(){var e=[];return this._options.facebook&&this._options.facebook.enabled&&e.push({id:"facebook",label:this._options.facebook.label,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"}),this._options.twitter&&this._options.twitter.enabled&&e.push({id:"twitter",label:this._options.twitter.label,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"}),this._options.pinterest&&this._options.pinterest.enabled&&e.push({id:"pinterest",label:this._options.pinterest.label,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}),e},_getId:function(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)},_initPhotoswipe:function(e,t){var n=this._configureShareButtons(),i={index:t,shareEl:n.length>0,shareButtons:n,addCaptionHTMLFn:this._renderCaption.bind(this)},o=document.querySelector(".pswp"),r=new PhotoSwipe(o,PhotoSwipeUI_Default,e,i);r.init(),r.listen("close",function(){this._trigger.focus(),this._trigger.classList.add("focus--mouse")}.bind(this));var a=o.querySelector(".pswp__button--download");a.addEventListener("click",function(t){var n=e[r.getCurrentIndex()].downloadUrl;this.setAttribute("href",n)}),this._options.download&&this._options.download.enabled?a.style.display="block":"default"===e[t].group?(a.style.display=e[t].downloadUrl?"block":"none",r.listen("afterChange",function(){a.style.display=e[r.getCurrentIndex()].downloadUrl?"block":"none"})):a.style.display="none",document.documentElement.classList.add("SP-hasOverlay"),r.listen("close",function(){document.documentElement.classList.remove("SP-hasOverlay")})},_renderCaption:function(e,t){var n="";return!0!==e.title?(t.children[0].innerHTML="",!1):(e.copyright&&(n=n+"<small>"+(this._options.copyright&&this._options.copyright.label?this._options.copyright.label:"Copyright")+": "+e.copyright+"</small><br />"),e.legend&&(n=n+"<strong>"+e.legend+"</strong><br />"),e.description&&(n=n+e.description+"<br />"),t.children[0].innerHTML=n,!0)}});var main=function(){var e=function(){if(objectFitImages("img[data-object-fit]:not([data-ofi-src])",{watchMQ:!0}),Modernizr.picture&&!Modernizr.objectfit)for(var e,t=document.querySelectorAll("[data-object-fit]"),n=0;n<t.length;n++)for(var i=(e=t[n].parentNode.childNodes).length-1;i>=0;i--)e[i]!==t[n]&&t[n].parentNode.removeChild(e[i])};e(),document.addEventListener("lazybeforeunveil",function(t){e()});new SP.OffCanvas(document.querySelector("[data-sp-offcanvas]"),{where:"right"});for(var t=document.querySelectorAll(".SP-News__list"),n=[],i=0;i<t.length;i++)n.push(new SP.vendor.PanelList(t[i],{config:"news"}));$(document).ready(function(){$(".SP-Trigger--search").magnificPopup({items:{type:"inline",src:".SP-Form--quicksearch",midClick:!0},callbacks:{open:function(){var e=document.getElementById("search");e&&setTimeout(function(){e.focus()},100)}}});var e=function(e,t,n,i){$(e+" + "+t).each(function(e,o){var r=$(o.previousElementSibling),a=r.nextUntil(":not("+t+")"),s=r.outerHeight(!0),l=0;a.each(function(){l+=$(this).outerHeight(!0)}),s>=l?(r.addClass(i),a.addClass(n)):(a.addClass(i),r.addClass(n))})};e(".SP-Asset--large.SP-Asset--left",".SP-Asset--small.SP-Asset--right","SP-Asset--pair__short","SP-Asset--pair__tall"),e(".SP-Asset--small.SP-Asset--left",".SP-Asset--medium.SP-Asset--right","SP-Asset--pair__short","SP-Asset--pair__tall"),e(".SP-Linkbox--left",".SP-Linkbox--right","SP-Linkbox--pair__short","SP-Linkbox--pair__tall")}),$(".SP-SliderTeaserList .SP-SliderTeaserList__item").length>1&&$(".SP-SliderTeaserList").slick({arrows:!1,dots:!0,mobileFirst:!0,slidesToScroll:1,slidesToShow:1,centerMode:!0,edgeFriction:.05,centerPadding:0,prevArrow:'<button type="button" aria-label="vor" class="slick-prev"><svg class="SPi SPi-gallery-prev"><use xlink:href="#SPi-gallery-prev" /></svg></span></button>',nextArrow:'<button type="button" aria-label="zurück" class="slick-next"><svg class="SPi SPi-gallery-next"><use xlink:href="#SPi-gallery-next" /></svg></span></button>',infinite:!0,responsive:[{breakpoint:"639",settings:{arrows:!0,dots:!0}}]}),$(".SP-GallerySlider").slick({arrows:!0,dots:!1,infinite:!0,prevArrow:'<button type="button" aria-label="vor" class="slick-prev"><svg class="SPi SPi-gallery-prev"><use xlink:href="#SPi-gallery-prev" /></svg></span></button>',nextArrow:'<button type="button" aria-label="zurück" class="slick-next"><svg class="SPi SPi-gallery-next"><use xlink:href="#SPi-gallery-next" /></svg></span></button>',slidesToScroll:1,slidesToShow:1}),$(".SP-BannerSlider").slick({arrows:!0,dots:!1,infinite:!0,mobileFirst:!0,prevArrow:'<button type="button" aria-label="vor" class="slick-prev slick-arrow">vor</button>',nextArrow:'<button type="button" aria-label="zurück" class="slick-next slick-arrow">zurück</button>',slidesToScroll:1,slidesToShow:1,responsive:[{breakpoint:640,settings:{slidesToScroll:2,slidesToShow:2}},{breakpoint:960,settings:{slidesToScroll:3,slidesToShow:3}},{breakpoint:1280,settings:{slidesToScroll:4,slidesToShow:4}}]});var o,r;o=Array.prototype.slice.call(document.querySelectorAll("table")).filter(function(e){return null===SP.dom.Element.findParent(e,".kw_kalender")}),r=[],enquire.register("screen and (min-width: "+function(e){if(window.breakpoints[e])return window.breakpoints[e]/16+"em";for(var t in window.breakpoints)if(window.breakpoints[t][e])return window.breakpoints[t][e]/16+"em"}("table_mode")+")",{setup:function(){for(var e=0;e<o.length;
1e++)r.push(new SP.sitekit.Table(o[e],{enabled:!0}))},match:function(){for(var e=0;e<r.length;e++)r[e].reconfigure({enabled:!1})},unmatch:function(){for(var e=0;e<r.length;e++)r[e].reconfigure({enabled:!0})}})}();SP.lang.Class.define("SP.paderborn.Map",{_el:null,_data:null,_map:null,_bindings:null,statics:{FIND_BY_CATEGORY:new SP.net.rpc.client.Method(SP.env.rpcPortUrl,null,"SP\\SiteKit\\Rpc\\Map\\Service","findByCategory")},_rpcConnection:null,init:function(e,t){var n=this;n._rpcConnection=new SP.net.rpc.client.Connection,n._el=e,n._data=t,n._bindings={},this._translations=SP.lang.Object.apply({categoryA11yPrefix:"Suche nach",category:"Kategorien",markerLabel:"Kartenmarker",lock:"Interaktion mit der Karte sperren",unlock:"Interaktion mit der Karte entsperren",enterFullscreen:"Vollbild öffnen",exitFullscreen:"Vollbild verlassen",zoomInTitle:"Vergrößern",zoomOutTitle:"Verkleinern"},t.translations||{}),n._createBindings();var i=$(n._el).parents(".SP-Collapsible__content[aria-hidden=true]");i.length>0?i.one("expand",function(){n._drawMap(t.tiers)}):n._drawMap(t.tiers),$(n._el).find(".leaflet-control-dropdown").parent().hover(function(){$(this).addClass("SP-hover")},function(){$(this).removeClass("SP-hover")})},_getPadding:function(){return[45,5,5,5]},_applyPropertyToAllFeatures:function(e,t){var n={type:"FeatureCollection",features:[]};return e&&SP.lang.Object.each(e,function(e,i){SP.lang.Object.apply(i.properties,t),n.features.push(i)}),n},_createBindings:function(){var e=this;e._bindings.icon=new SP.geo.ui.binding.IconBinding({html:'<i class="SPi SPi-marker"></i>',iconSize:[21,21],iconAnchor:[10,10],popupAnchor:[0,0],filter:function(e){return"primary"===e.properties.type}}),e._bindings.smallIcon=new SP.geo.ui.binding.IconBinding({html:'<i class="SPi SPi-marker--small"></i>',iconSize:[10,10],iconAnchor:[5,5],popupAnchor:[0,0],filter:function(e){return"secondary"===e.properties.type||"visual"===e.properties.type}}),e._bindings.propertyPopup=new SP.geo.ui.binding.AsyncPopupBinding({minWidth:240,maxWidth:400,padding:e._getPadding(),filter:function(e){var t=e.properties,n=!1;return t.detailUrl&&"primary"===t.type&&(n=!0),t.label&&(n=!0),"Point"===e.geometry.type&&(n=!0),n},render:function(){return"Loading..."},asyncRenderer:function(t,n){var i=t.properties;return e._fetchPopup(i.detailUrl||e._data.detailUrl,t.id,function(e){n(e)})}}),e._bindings.vector=new SP.geo.ui.binding.StyleBinding({color:"#8D0073",opacity:1,weight:1,fillColor:"#8D0073",fillOpacity:.6,fn:function(e){if(e&&e.geometry&&"LineString"===e.geometry.type)return{weight:4,color:"#8D0073"}}})},_fetchPopup:function(e,t,n){console.log("fetch",e),qwest.get(e,{"sp:out":"htmlFragment",component:"mapPopup",feature:t}).then(function(e,t){n(t)})},_drawMap:function(e){var t=this;e=e||{};var n=[t._bindings.icon,t._bindings.smallIcon,t._bindings.vector,t._bindings.propertyPopup],i=[];i.push({id:"osm",label:"OpenStreetMap",baselayer:!0,layer:new SP.geo.ui.layer.TileLayer({url:"http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",urlSecure:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'© <a href="http://openstreetmap.org/copyright" target="_blank" rel="noopener">OpenStreetMap</a> contributors'})});var o=new SP.geo.ui.layer.ClusterLayer({bindings:n});if(this._dataLayer=o,e.primary&&o.addData(this._applyPropertyToAllFeatures(e.primary.features,{type:"primary"})),e.secondary&&o.addData(this._applyPropertyToAllFeatures(e.secondary.features,{type:"secondary"})),e.visual&&o.addData(this._applyPropertyToAllFeatures(e.visual.features,{type:"visual"})),o.storeState("self"),i.push({id:"data",label:"data",overlay:!0,layer:o}),e.confine&&i.push({id:"confine",label:"confine",overlay:!0,layer:new SP.geo.ui.layer.GeoJsonLayer({data:e.confine,bindings:[new SP.geo.ui.binding.IconBinding({className:"SPi-marker-hidden",html:"&nbsp;",iconSize:[1,1],iconAnchor:[1,1]})]})}),i.push({id:"geolocation",label:"geolocation",overlay:!0,layer:new SP.geo.ui.layer.GeoLocationLayer({bindings:[new SP.geo.ui.binding.IconBinding({html:'<i class="SPi SPi-target2"></i>',iconSize:[24,24],iconAnchor:[12,12]}),new SP.geo.ui.binding.StyleBinding({color:"#0149B9",weight:1,fillColor:"#0149B9"})]})}),t._map=new SP.geo.ui.Map({container:t._el,wrap:!0,layers:i,zoomControl:!1,zoom:t._data.defaultZoom,center:[t._data.defaultLat,t._data.defaultLng],padding:t._getPadding()}),t._map.disableInteractions(),t._map._instance.addControl(L.control.htmlcontrol({position:"topmenubar",html:"<span>"+(t._data.title||"")+"</span>",className:"leaflet-control-html-title"})),t._data.categories&&t._data.categories.length>0){var r=[];
1t._data.categories.forEach(function(e){r.push({value:e.id,label:e.title,checked:e.autoload})});new L.Control.Dropdown({position:"topmenubar",options:r,html:'<svg class="SPi SPi-collapsible"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#SPi-collapsible"></use></svg>'}).addTo(t._map._instance)}var a=new L.Control.Button({position:"topmenubar",states:[{stateName:"locked",label:this._translations.unlock,html:'<svg class="SPi SPi-lock"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#SPi-lock"></use></svg>',onClick:function(e){t._map.enableInteractions(),e.setState("unlocked")}},{stateName:"unlocked",label:this._translations.lock,html:'<svg class="SPi SPi-lock-open"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#SPi-lock-open"></use></svg>',onClick:function(e){t._map.disableInteractions(),e.setState("locked")}}]}).addTo(t._map._instance);new L.Control.Button({position:"topmenubar",states:[{stateName:"non-fullscreen",label:this._translations.enterFullscreen,html:'<svg class="SPi SPi-maximize"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#SPi-maximize"></use></svg>',onClick:function(e){t._map._instance.toggleFullscreen(),e.setState("fullscreen")}},{stateName:"fullscreen",label:this._translations.exitFullscreen,html:'<svg class="SPi SPi-minimize"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#SPi-minimize"></use></svg>',onClick:function(e){t._map._instance.toggleFullscreen(),e.setState("non-fullscreen")}}]}).addTo(t._map._instance);t._map._instance.on("popupopen enterFullscreen",function(){t._map.enableInteractions(),a.setState("unlocked")}),t._map._instance.on("dropdownChange",function(e){t._findByCategory(e.options)}),t._map._instance.on("fullscreenchange",function(){t._map._instance.isFullscreen()?(a.disable(),a.setState("unlocked"),t._map.enableInteractions()):a.enable()}),o._cluster.on("clusterclick",function(){a.setState("unlocked"),t._map.enableInteractions()}),t._fitBounds()},_onCategoryChanged:function(e){var t=[];Object.keys(e).forEach(function(n){!0===e[n].checked&&t.push(parseInt(n,10))}),this._findByCategory(t)},_resultCache:null,_findByCategory:function(e){e.sort();var t=this;if(null===t._resultCache&&(t._resultCache={}),0!==e.length){var n=e.join("#"),i=function(e){t._resultCache[n]=e,e&&(t._dataLayer.loadState("self"),e.forEach(function(e){e.geo.primary&&t._dataLayer.addData(t._applyPropertyToAllFeatures(e.geo.primary,{detailUrl:e.url,type:"primary"})),e.geo.secondary&&t._dataLayer.addData(t._applyPropertyToAllFeatures(e.geo.secondary,{detailUrl:e.url,type:"secondary"}))}),t._fitBounds(!0))};if(t._resultCache[n])i(t._resultCache[n]);else{var o=t.self.FIND_BY_CATEGORY.create(null,{searchId:t._data.searchId,searchUrl:t._data.searchUrl,categories:e},{success:i,failure:function(e){console.error("load nodes failed",e)}});this._rpcConnection.invoke(o)}}else t._dataLayer.loadState("self")},_fitBounds:function(e){var t=this._map,n=null;SP.lang.Object.each(t._layers,function(e,t){if(t instanceof SP.geo.ui.layer.GeoJsonLayer&&!(t instanceof SP.geo.ui.layer.GeoLocationLayer))if(null===n){var i=t._instance.getBounds();i&&i.isValid()&&(n=i)}else n.extend(t._instance.getBounds())}),null===n||t.getBounds()._toL().contains(n)&&t.getZoom()===t._instance.getBoundsZoom(n)||t.fitBounds(SP.geo.Bounds.fromL(n),null,e||!1)},_getCategoryConfig:function(e){var t=[];return SP.Object.each(this._categories,function(n,i){SP.Array.indexOf(e,"id"+i.id)>-1&&t.push({category:"id"+i.id,label:i.label,checked:i.autoload})}),t}}),SP.lang.Class.define("SP.paderborn.renderer.NavigationTeaser",{render:function(e,t,n){var i="";t.newWindow&&(i=' target="_blank" title="Site öffnet sich im neuen Fenster"');t.text||t.image;var o='<span class="title"><a class="link" href="'+this._rewriteUrl(t.url)+'"'+i+">"+t.title+"</a></span>";o+='<div class="teaser">',o+='<a class="link" href="'+this._rewriteUrl(t.url)+'"'+i+">"+this.renderImage(t.image)+'<span class="text">'+(t.text||"Diese Seite aufrufen")+"</span></a>",o+="</div>",e.innerHTML=o},_rewriteUrl:function(e){return"vhskurse.paderborn.de"===window.location.host?new URL(e,"https://www.paderborn.de").toString():e},_hasPlus:function(e){return!!(e.children&&e.children.length>0)||!(!e.text&&!e.image)},renderImage:function(e){return e&&e.sources&&e.sources.length>0?'<img class="image" src="'+this._rewriteUrl(e.sources[0].url)+'" alt="'+e.text+'">':""},renderOpenLink:function(e){return e?'<span class="SP-Link"><span class="SP-a"><i class="SPi SPi-link SP-Link__icon"></i><span class="SP-Link__label">'+e+"</span></span></span>":""}}),function(){"use strict";class e{constructor(e,t){var n;this.element=e;let i=!1;this.editButton=this.element.querySelector(".SP-ConsentBanner__button--edit"),this.acceptButton=this.element.querySelector(".SP-ConsentBanner__button--accept"),this.onlyNecessaryButton=this.element.querySelector(".SP-ConsentBanner__button--onlyNecessary");const o=(null===(n=this.element.parentElement)||void 0===n?void 0:n.classList.contains("SP-ConsentBanner__spacer"))?this.element.parentElement:null;o?this.editButton?this.acceptButton?this.onlyNecessaryButton?("true"==SP.net.Cookie.getCookie("cookies-accepted")&&this.destroy(),this.acceptButton.addEventListener("click",e=>{this.isPaqInitialized()?_paq.push(["rememberConsentGiven"]):console.error("_paq not found"),this.optInCookieConsent(),this.destroy()}),this.onlyNecessaryButton.addEventListener("click",e=>{this.optInCookieConsent(),this.destroy()}),this.editButton.addEventListener("click",t=>{null!=e.querySelector(".SP-ConsentBanner__settings")&&(0==i?(i=!0,this.adjustHeight(o)):1==i&&(i=!1,this.adjustHeight(o)))}),this.adjustHeight(o),this.onResizeAdjustHeight(o)):console.error("HTMLButton with class .SP-ConsentBanner__button--onlyNecessary missing"):console.error("HTMLButton with class .SP-ConsentBanner__button--accept missing"):console.error("HTMLButton with class .SP-ConsentBanner__button--edit missing"):console.error("HTMLElement with class .SP-Consent__spacer missing")}onResizeAdjustHeight(e){window.addEventListener("resize",SP.lang.Function.debounce(()=>{this.adjustHeight(e)},300))}adjustHeight(e){const t=this.element.getBoundingClientRect().height;e.style.marginBottom=t+"px"}destroy(){const e=this.element.parentNode,t=null==e?void 0:e.parentNode;e&&(null==t||t.removeChild(e))}isPaqInitialized(){return!!window._paq}optInCookieConsent(){SP.net.Cookie.setCookie("cookies-accepted","true",31536e3)}}e.CookieState={tracking:!1};SP.ns("SP.customer.DataProtection",class{constructor(e,t){this.element=e;const n=this.element.querySelector("[data-sp-revoke]"),i=this.element.querySelector("[data-button-addon]");null==n||n.addEventListener("click",e=>{this.revokeAll()}),null==i||i.addEventListener("click",e=>{this.save(e)})}revokeAll(){this.element.querySelector("[data-sp-cookiesusage-tracking] .SP-Field__control")&&this.optOutTracking(),this.revokeCookieConsent()}save(e){console.log("DataProtectionCookiesUsage: save()");const t=this.element.querySelector("[data-sp-cookiesusage-tracking] .SP-Field__control");t&&t.checked?this.optInTracking():t&&!t.checked&&this.optOutTracking(),this.optInCookieConsent()}revokeCookieConsent(){SP.net.Cookie.setCookie("cookies-accepted",null,0)}optInCookieConsent(){SP.net.Cookie.setCookie("cookies-accepted","true",31536e3)}optOutTracking(){console.debug("Opt-Out Tracking"),this.isPaqInitialized()?_paq.push(["forgetConsentGiven"]):console.error("_paq not found")}optInTracking(){console.debug("Opt-In Tracking"),this.isPaqInitialized()?(_paq.push(["forgetUserOptOut"]),_paq.push(["rememberConsentGiven"])):console.error("_paq not found")}isPaqInitialized(){return!!window._paq}}),SP.ns("SP.customer.ConsentBanner",e)}();

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.