PageSourceSearch

https://www.frankfurt-rhein-main.de/dist/js/ndsbase/lazyimages-Bov0MclW.js

js frankfurt-rhein-main.de collected 2026-09-30 13:25:45 UTC 2,099 bytes, 1 lines download raw bytes

1import{n as e}from"../helperLib-B7ilb_e4.js";import{t}from"../background-focus-DyLH06_S.js";var n=`.js-lazybg`,r=`.js-lazyimg`,i=(function(){let i=`js-lazy-is-loaded`,a=document.querySelectorAll(n),o=document.querySelectorAll(r),s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),c=window.matchMedia(`print`),l={root:null,rootMargin:`0px`,threshold:.1},u=function(n){if(!n.classList.contains(i)&&!(e()&&n.classList.contains(`no-mobile-bg-image`))){if(Object.prototype.hasOwnProperty.call(n.dataset,`srcset`)){let e=p(n.dataset.srcset.split(`, `));n.style.backgroundImage=`url(${e})`,n.classList.add(i)}if(Object.prototype.hasOwnProperty.call(n.dataset,`focus`))try{t.observe(n,JSON.parse(n.dataset.focus))}catch{}}},d=e=>{e&&typeof e==`function`&&e()},f=function(e,t){if(e.classList.contains(i)){d(t);return}let n=e.width;e.hasAttribute(`srcset`)&&n!==0&&e.setAttribute(`sizes`,n+`px`),Object.prototype.hasOwnProperty.call(e.dataset,`srcset`)&&(e.setAttribute(`srcset`,e.dataset.srcset),n!==0&&e.setAttribute(`sizes`,n+`px`),e.classList.add(i)),d(t)},p=function(e){let t=null;if(e.length>0){let n=[];e.forEach(function(e){n.push({src:e.substr(0,e.indexOf(` `)),mediaquery:e.substr(e.indexOf(` `)+1)})});for(let e=0;e<n.length;e++){let r=n[e];if(r.mediaquery.length>0){if(window.matchMedia(r.mediaquery).matches){t=r.src;break}}else{t=r.src;break}}}return t},m=function(e,t){e.forEach(function(e){e.intersectionRatio>0&&u(e.target)})},h=function(e,t){e.forEach(function(e){e.intersectionRatio>0&&f(e.target)})},g=new IntersectionObserver(m,l),_=new IntersectionObserver(h,l);function v(){a.forEach(function(e){g.observe(e)}),o.forEach(function(e){_.observe(e)}),window.addEventListener(`resize`,function(){document.querySelectorAll(`.`+i).forEach(function(e){e.classList.remove(i)})});let e=function(){a.forEach(function(e){u(e)}),o.forEach(function(e){f(e)})};s?c.addListener(function(t){t.matches&&e()}):window.onbeforeprint=function(){e()}}return{init:v,loadBgImage:u,loadContentImage:f}})();document.querySelector(`.js-lazybg,.js-lazyimg`)!==null&&i.init();export{i as lazyImageLoader};

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.