PageSourceSearch

https://www.luebeck.de/data/js/js_15693_functionsjs_1789686476.js

js luebeck.de collected 2026-09-24 18:55:21 UTC 5,978 bytes, 13 lines download raw bytes

1if(document.querySelector('.pruefscript_overlay')){document.documentElement.classList.add('check');}
2document.querySelectorAll('.opendoor').forEach(el=>{el.querySelectorAll(':scope > details').forEach(detail=>{detail.open=true;});});function openByHash(){const hashId=decodeURIComponent(location.hash.slice(1));if(!hashId)return;const anchor=document.getElementById(hashId);if(!anchor)return;const target=Array.from(document.querySelectorAll('div.gcms_group')).filter(group=>group.contains(anchor))[0];if(!target)return;target.classList.add('hash-open');target.querySelectorAll(':scope > details').forEach(detail=>{detail.open=true;});target.classList.remove('hash-open');}
3openByHash();window.addEventListener('hashchange',openByHash);function updateBreadcrumb(link,text,beforeLink,beforeName){const breadcrumb=document.querySelector('.breadcrumb');if(!breadcrumb)return;const lastItem=breadcrumb.querySelector('li:last-child');if(!lastItem)return;const currentText=lastItem.textContent.trim();function safeHref(url){try{const u=new URL(url,location.origin);return(u.origin===location.origin)?u.href:'';}catch(e){return'';}}
4function makeLink(href,label){const a=document.createElement('a');a.className='bclink';a.href=safeHref(href);a.textContent=label;return a;}
5if(beforeLink&&beforeName){const beforeItem=document.createElement('li');beforeItem.appendChild(makeLink(beforeLink,beforeName));breadcrumb.insertBefore(beforeItem,lastItem);}
6if(link&&text){lastItem.textContent='';lastItem.appendChild(makeLink(link,currentText));const newItem=document.createElement('li');const span=document.createElement('span');span.className='bclink';span.setAttribute('aria-current','page');span.textContent=text;newItem.appendChild(span);breadcrumb.appendChild(newItem);}}
7window.addEventListener('load',function(){if(typeof bcupdate!=='undefined'){updateBreadcrumb(bcupdate.link,bcupdate.text,bcupdate.before_link,bcupdate.before_name);}});document.addEventListener('DOMContentLoaded',function(){document.querySelectorAll('.gcms_figure').forEach(function(figure){const picture=figure.querySelector(':scope > picture, picture');if(!picture)return;const copyright=picture.dataset.copyright;if(!copyright||copyright.trim()==='')return;let figcaption=figure.querySelector(':scope > figcaption');let createdFigcaption=false;if(!figcaption){figcaption=document.createElement('figcaption');figure.appendChild(figcaption);createdFigcaption=true;}
8if(figcaption.querySelector('.copyright, .copyright_ohne'))return;if(figcaption.textContent.trim()!==''){figcaption.appendChild(document.createTextNode(' '));}
9const span=document.createElement('span');span.className=createdFigcaption?'copyright_ohne':'copyright';span.textContent=copyright.trim();figcaption.appendChild(span);});document.querySelectorAll('.kopfbild_container > picture').forEach(function(picture){const copyright=picture.dataset.copyright;if(!copyright||copyright.trim()==='')return;const nextElement=picture.nextElementSibling;if(nextElement&&nextElement.classList.contains('copyright')){return;}
10const span=document.createElement('span');span.className='copyright';span.textContent=copyright.trim();picture.insertAdjacentElement('afterend',span);});});document.addEventListener('DOMContentLoaded',function(){const sliders=document.querySelectorAll('.galerie.swiper');sliders.forEach((slider)=>{const parent=slider.closest('.contentgalerie');if(!parent)return;const nextButton=parent.querySelector('.swiper-button-next');const prevButton=parent.querySelector('.swiper-button-prev');new Swiper(slider,{slidesPerView:3,spaceBetween:20,a11y:{enabled:true,containerMessage:'Bildergalerie',containerRoleDescriptionMessage:'Karussell',itemRoleDescriptionMessage:'Folie',slideLabelMessage:'{{index}} von {{slidesLength}}',prevSlideMessage:'Vorheriges Bild',nextSlideMessage:'Nächstes Bild',firstSlideMessage:'Dies ist das erste Bild',lastSlideMessage:'Dies ist das letzte Bild',paginationBulletMessage:'Gehe zu Bild {{index}}'},navigation:{nextEl:nextButton,prevEl:prevButton},breakpoints:{0:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3}}});});});const scrollBtn=document.querySelector('.scrollToTop');if(scrollBtn){scrollBtn.addEventListener('click',function(e){e.preventDefault();window.scrollTo({top:0,behavior:'smooth'});});window.addEventListener('scroll',function(){if(window.scrollY>200){scrollBtn.classList.add('visible');}else{scrollBtn.classList.remove('visible');}});}
11$(document).on('click','.readspeaker',function(e){e.preventDefault();window.closeHauptmenu();$('body').toggleClass('readspeaker_visible');if($('body').hasClass('readspeaker_visible')){$('#readspeaker_button1')[0]?.scrollIntoView({behavior:'smooth',block:'center'});}});document.addEventListener('DOMContentLoaded',()=>{const suchbox=document.querySelector('.startseiten_suchbox');const readspeaker=document.querySelector('.readspeak_container');if(suchbox&&readspeaker){suchbox.insertAdjacentElement('afterend',readspeaker);}});document.querySelectorAll('iframe[src*="platform.smart-hl.city"]').forEach(function(iframe){iframe.dataset.src=iframe.src;iframe.removeAttribute('src');
11iframe.setAttribute('loading','lazy');iframe.addEventListener('load',function(){iframe.closest('.gcms_embed')?.classList.add('loaded');},{once:true});});const observer=new IntersectionObserver(function(entries,observer){entries.forEach(function(entry){if(!entry.isIntersecting)return;const iframe=entry.target;if(iframe.dataset.src){iframe.src=iframe.dataset.src;}
12observer.unobserve(iframe);});},{rootMargin:'200px'});document.querySelectorAll('iframe[data-src*="platform.smart-hl.city"]').forEach(function(iframe){observer.observe(iframe);});$(function(){var $container=$('.kompakt_nl_container');if($container.length){$('article').last().append($('#form_typ_mailing'));}
13var $container2=$('#mailing_resonse');if($container2.length){$('article').last().append($('#mailing_resonse'));$('html, body').animate({scrollTop:$container2.offset().top-20},600);}});

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.