PageSourceSearch

https://www.bt.no/seksjon/dist/7364-8f57df60b14346909488.min.js

js bt.no collected 2026-10-01 10:40:23 UTC 2,265 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfastenposten=self.webpackChunkfastenposten||[]).push([[7364],{7364:(e,t,n)=>{n.r(t),n.d(t,{calculateScaleFactor:()=>o,getAspectRatio:()=>d,scaleAd:()=>i,scaleAdIpadAirPortrait:()=>s,scaleAds:()=>c});var r=n(5161);n(4848);const o=(e,t)=>{const n=e.width,r=(null!=t?t:window.screen.width)/n;return r<1?r:1},i=(e,t=window.screen.width,n,r)=>{const i=o(e,t);if(n&&n(e,i),r)return void r(e);const d=document.querySelector(`iframe[id^="utif_${e.targetId}"]`);d&&(d.style.transform=`scale(${i})`,d.style.transformOrigin="left top")},d=(e,t)=>{if(e&&t)return t/e},l=new Map;l.set("insider",{scale:.82,transformOrigin:"left center",cogwheelAdjust:!0}),l.set("panorama",{scale:.79,transformOrigin:"center center"}),l.set("outstream",{scale:.79,transformOrigin:"center center"}),l.set("integration",{scale:.79,transformOrigin:"center center"}),l.set("toppanorama",{scale:.8,transformOrigin:"left center"});const s=e=>{if(!((null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.clientWidth)>r.I&&(null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.clientWidth)<=r.B))return;var t,n;const o=(0,r.C)(e),i=l.get(o),d=document.querySelector(`#${e.targetId}`);if(!d||!i)return;if(d.style.transformOrigin=i.transformOrigin,d.style.transform=`scale(${i.scale})`,!(null==i?void 0:i.cogwheelAdjust))return;const s=document.querySelector(`div[class*="gdpr-cogwheel-button"][id$="${e.targetId}"]`),c=null==d?void 0:d.offsetWidth;s&&"number"==typeof c&&!isNaN(c)&&s.style.setProperty("right",String(-1*c*.2)+"px")},c=e=>{var t,n,o,d,l,s;const{adScaleConfig:c,pageContext:{deviceType:a}}=r.c.get();if(!(null==c?void 0:c.enabled))return;if((0,r.E)(e,r.S.ANY_FULLSCREEN))return;const u=null!==(t=c.adsToBeScaled[a])&&void 0!==t?t:[],f=(0,r.F)(e.targetId.split("-")[0]);if(!u.includes(f))return;const m=null!==(o=null===(n=c.offset)||void 0===n?void 0:n[f])&&void 0!==o?o:0,v=document.getElementById(e.targetId),g=null!==(d=null==v?void 0:v.offsetWidth)&&void 0!==d?d:window.screen.width,p=null!==(s=null===(l=null==v?void 0:v.parentElement)||void 0===l?void 0:l.offsetWidth)&&void 0!==s?s:window.screen.width;i(e,(g<p?g:p)-m)}}}]);
2//# sourceMappingURL=7364-8f57df60b14346909488.min.js.map

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.