PageSourceSearch

https://www.leipzig.travel/dist/js/ndsadvertisement/advertisement/advertisement-Cc2dzMG8.js

js leipzig.travel collected 2026-09-24 09:09:48 UTC 1,326 bytes, 1 lines download raw bytes

1import{lazyImageLoader as e}from"../../ndsbase/lazyimages-5wQmeMzs.js";import{a as t}from"../../helpers-Sp44Zm8W.js";var n=`[data-ad-uid]`,r=(function(){return{init:function(){let r=document.querySelectorAll(n),i=[];if(r.length){r.forEach(function(e){let t={uid:e.dataset.adUid,layout:e.dataset.adLayout,cols:e.dataset.adCols};e.dataset.adSelected&&(t.selected=e.dataset.adSelected),i.push(t)});let n=r[0].dataset.adPid,a=new XMLHttpRequest;a.open(`POST`,t()+`?ndsajax=ndsadvertisement_get&no_cache=1`,!0),a.setRequestHeader(`Content-Type`,`application/json`),a.send(JSON.stringify({ads:i,pageId:n})),a.onload=function(){if(a.status===200){let t=JSON.parse(a.responseText);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];if(r.content){let t=document.querySelector(`[data-ad-uid="`+n+`"]`),i=t.parentNode,a=document.createDocumentFragment(),o=document.createElement(`div`);o.innerHTML=r.content;let s=o.firstElementChild,c=s.className.split(` `).find(e=>e.startsWith(`tile--scheme-`)),l=t.className.split(` `).find(e=>e.startsWith(`tile--scheme-`));for(s.className=t.className,c&&(s.classList.remove(l),s.classList.add(c));o.firstChild;)a.appendChild(o.firstChild);i.replaceChild(a,t),i.querySelectorAll(`.js-lazybg`).forEach(t=>{e.loadBgImage(t)})}}}}}}}})();document.querySelector(n)!==null&&r.init();

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.