PageSourceSearch

https://www.fitzivot.cz/build/SfWk4sAi2.js

js fitzivot.cz collected 2026-09-25 08:08:12 UTC 2,717 bytes, 1 lines download raw bytes

1import{t as e}from"./7-dG5mu_.js";import{a as t,i as s}from"./CwpEE_Ai.js";import{t as i}from"./Zebr8AlW2.js";import{t as o}from"./DgnK-u_X2.js";var n=class{positions=[];constructor(e){i.isSeznamTraffic()&&e&&(this.positions=e,this.createScript(),this.createSticky(),this.handleSticky())}initAds(){const e=["m-sticky","skyscraper-1","skyscraper-2"],t=setInterval(()=>{window.sssp&&(this.loadAds(this.positions.filter(t=>!e.includes(t.id))),this.handleSidebar(),this.handleSticky(),clearInterval(t))},50)}loadAds(e){window.sssp.getAds(e.map(e=>({zoneId:e.zoneId,id:e.id,width:e.width,height:e.height,options:{infoCallback:e=>{if("empty"!==e.type&&"error"!==e.type){const t=document.getElementById(e.id);t&&(t.dataset.loaded="true")}}}})))}createScript(){const{seznam:t}=e.get("integrations");o(t.sspUrl,!0),this.initAds()}handleSidebar(){const e=["skyscraper-1","skyscraper-2"],t=document.querySelector(".js-seznam-sidebar");if(!t)return;const s=document.querySelectorAll(".js-seznam-sidebar-ad");t.scrollHeight<=3e3&&(s[0].classList.remove("flex-[1_1_50%]"),s[0].classList.add("flex-[0_0_100%]"),s[1]?.remove()),this.loadAds(this.positions.filter(t=>e.includes(t.id)))}getCookie(){return document.cookie.match("(^|;)\\s*seznam-popup-shown\\s*=\\s*([^;]+)")?.pop()||""}setCookie(e){const t=new Date;t.setTime(t.getTime()+18e5);const s="expires="+t.toUTCString();document.cookie="seznam-popup-shown="+e+";"+s+";path=/"}createSticky(){const e=document.createElement("div");e.className="js-seznam-sticky fixed bottom-0 left-0 w-full h-auto z-[3] bg-grey-4/80 hidden place-items-center",e.innerHTML="<button class='js-seznam-sticky-close absolute bottom-full right-0 text-center text-sm px-6 py-0 h-8 leading-8 bg-[#666] text-surface'>Zavřít reklamu</button>";const t=document.getElementById("m-sticky");t&&(t.parentElement?.insertBefore(e,t),e.append(t))}handleSticky(){const e=document.querySelector(".js-seznam-sticky");if(!e||t("(min-width: 64rem)"))return;this.getCookie()||this.setCookie(!1);const s=document.querySelector(".article-body"),i=this.positions.filter(e=>"m-sticky"==e.id);s&&i.length>0&&window.addEventListener("scroll",()=>{window.scrollY>s.offsetTop+s.scrollHeight-window.innerHeight&&"false"===this.getCookie()&&(window.sssp.getAds([{zoneId:i[0].zoneId,id:i[0].id,width:i[0].width,height:i[0].height,options:{infoCallback:t=>{"empty"===t.type||"error"===t.type?e.remove():(e.classList.add("grid"),e.classList.remove("hidden"))}}}]),this.handleStickyClose(),this.setCookie(!0))})}handleStickyClose(){const e=document.querySelector(".js-seznam-sticky");if(!e)return;const t=e.querySelector(".js-seznam-sticky-close");t&&t.addEventListener("click",t=>{t.preventDefault(),e.remove()})}};export{n as t};

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.