powered-ad-config 0.0.70 → 0.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -197,7 +197,7 @@ const U = (I) => {
197
197
  xPosHalfpage: 695,
198
198
  yPosHalfpage: 32,
199
199
  stickyMargin: { offset: 160, isSticky: !0 },
200
- maskOffset: 306,
200
+ maskOffset: 298,
201
201
  zIndex: function() {
202
202
  var r, s, l, c, u, y, w, h, q, k, M;
203
203
  const t = window.parent.document, n = (C, $) => C.forEach((O) => $.forEach(([X, V]) => O.style[X] = V));
@@ -10,7 +10,7 @@
10
10
  div:has(#adspot-tablet-takeover-2-above) {
11
11
  position: static;
12
12
  }
13
- `,o.head.appendChild(n)}}},A={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:function(){return 720},yPosHalfpage:function(){return 16},stickyMargin:{offset:16,isSticky:!0},zIndex:function(){var f,m,e,i,a,d;const o=window.parent.document;(f=o.querySelector(".header-wrapper"))==null||f.setAttribute("style","height:124px"),(m=o.querySelector(".weather-widget-wrapper"))==null||m.setAttribute("style","bottom:0px"),(e=o.querySelector(".content"))==null||e.setAttribute("style","padding-top:32px"),(i=o.querySelector(".layout"))==null||i.setAttribute("style","position:relative;background-color:transparent;"),(a=o.querySelector(".footer-ad"))==null||a.setAttribute("style","position:relative"),(d=o.querySelector(".footer-netkit"))==null||d.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);")}},N=[{site:"https://www.nine.com.au/sport",config:p},{site:"https://www.nine.com.au/product-reviews",config:b},{site:"https://www.nine.com.au/property",config:b},{site:"https://www.nine.com.au/entertainment",config:b},{site:"https://staging.nine.com.au/sport",config:p},{site:"https://staging.nine.com.au/product-reviews",config:b},{site:"https://staging.nine.com.au/property",config:b},{site:"https://staging.nine.com.au/entertainment",config:b},{site:"https://render-web-nine-staging-v1.ffxblue.com.au",config:x},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:x},{site:"https://preview.nine.com.au/",config:x},{site:"https://www.nine",config:x},{site:"https://staging.nine",config:x},{site:"https://entertainment",config:g},{site:"https://celebrity",config:g},{site:"https://homes",config:g},{site:"https://travel",config:g},{site:"https://honey",config:g},{site:"https://style",config:g},{site:"https://coach",config:g},{site:"https://kitchen",config:g},{site:"https://finance",config:g},{site:"https://wwos",config:v},{site:"https://staging.wwos",config:p},{site:"https://www.9news",config:A},{site:"https://staging.9news",config:A},{site:"https://www.yourtv",config:g},{site:"https://staging.yourtv",config:g},{site:"https://9now",config:b},{site:"https://creative-preview-an.com",config:g}],P=()=>{const o=window.document.getElementById("nineContent");o&&(o.style.backgroundColor=E.siteBackgroundColor),O(),D(),window.parent.window.addEventListener("scroll",_),setTimeout(_,50)},L=()=>{let o=null;return window.parent&&(o=window.parent.document.querySelector('div[id*="billboard"][id*="above"]')),o},z=()=>{const o=window.parent.location.href;for(let f=0;f<N.length;f+=1)if(o.indexOf(N[f].site)>=0)return N[f].config},D=()=>{if(!S)return;const o=S.style;o.width="100%",o.height="1000px",o.position="fixed",o.left="50%",o.transform="translate(-50%, 0)"},O=()=>{if(!H)return;const o=H.style;H.className="",o.minHeight="250px",o.marginTop=E.adNodeMarginTop+"px",o.marginBottom=E.adNodeMarginBottom+"px",o.position="static",o.display="block",window.parent&&E.zIndex&&E.zIndex()},_=o=>{const f=window.parent.scrollY,m=S.style,e=document.getElementById("siteContent")?document.getElementById("siteContent").style:{};f>=0&&f<=B?(m.transform=`translate(-50%, ${-f}px)`,e.transform="translateY(0)"):f>B&&f<=I?(m.transform=`translate(-50%, ${-B}px)`,e.transform=`translateY(${B-f}px)`):f>I&&(m.transform=`translate(-50%, ${-B}px)`,e.transform="translateY(-250px)")},H=L(),E=z(),B=-E.responsiveScroll+T,I=B+250;P()},$=T=>{const S=window.frameElement?window.frameElement:null,g=window.parent.document,b=document.getElementById("nineMasthead"),x=b?b.style:{};let p;const v={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){var r,s,l,c,u,y,w,h,q,k;const t=window.parent.document,n=(M,C)=>M.forEach(X=>C.forEach(([V,U])=>X.style[V]=U));(r=t.querySelector(".nk-demographics"))==null||r.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),(s=t.querySelector(".nk-footer"))==null||s.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),(l=t.querySelector("article"))==null||l.setAttribute("style","position:relative"),(c=t.querySelector("#article"))==null||c.setAttribute("style","position:relative"),(u=t.querySelector("#VideoIndex"))==null||u.setAttribute("style","position:relative"),(y=t.querySelector("#Index"))==null||y.setAttribute("style","position:relative"),(w=t.querySelector(".show"))==null||w.setAttribute("style","position:relative"),(h=t.querySelector("#adspot-desktop-banner-7-below"))==null||h.setAttribute("style","position:relative"),n(t.querySelectorAll(".column"),[["position","relative"]]),n(t.querySelectorAll(".advert"),[["position","relative"]]),n(t.querySelectorAll("blockquote"),[["zIndex","1"]]),(q=t.querySelector('div[type="BANNER"]'))==null||q.setAttribute("style","display:none"),(k=t.querySelector('div[type="MBANNER"]'))==null||k.setAttribute("style","display:none")}},A={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:306,zIndex:function(){var r,s,l,c,u,y,w,h,q,k,M;const t=window.parent.document,n=(C,X)=>C.forEach(V=>X.forEach(([U,W])=>V.style[U]=W));(r=t.querySelector(".nk-demographics"))==null||r.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),(s=t.querySelector(".nk-footer"))==null||s.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),(l=t.querySelector("article"))==null||l.setAttribute("style","position:relative"),(c=t.querySelector("#article"))==null||c.setAttribute("style","position:relative"),(u=t.querySelector("#VideoIndex"))==null||u.setAttribute("style","position:relative"),(y=t.querySelector("#Index"))==null||y.setAttribute("style","position:relative"),(w=t.querySelector(".show"))==null||w.setAttribute("style","position:relative"),n(t.querySelectorAll(".column"),[["position","relative"]]),n(t.querySelectorAll(".advert"),[["position","relative"]]),n(t.querySelectorAll("blockquote"),[["zIndex","1"]]),(h=t.querySelector('div[class^="component__StrapContainer"]'))==null||h.setAttribute("style","position:relative"),(q=t.querySelector('section[class^="WatchNow__Container"]'))==null||q.setAttribute("style","margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);"),(k=t.querySelector('div[class*="ArticleContainer"]'))==null||k.setAttribute("style","max-width:1190px;margin-top:24px"),(M=t.querySelector('div[class*="MyContainer"]'))==null||M.setAttribute("style","max-width:1190px;margin-top:24px")}},N={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){var r,s,l,c,u,y;const t=window.parent.document;if((r=t.querySelector('section[data-section="marketing-banner"]'))==null||r.setAttribute("style","position:relative"),(l=(s=t.querySelector('div[data-testid="live-tv"]'))==null?void 0:s.parentNode)==null||l.setAttribute("style","position:relative"),(u=(c=t.querySelector('div[data-contentunit-id="stan"]'))==null?void 0:c.parentNode)==null||u.setAttribute("style","position:relative"),(y=t.querySelector("small"))==null||y.setAttribute("style","position:inherit"),t.querySelector('div[id*="tablet"][id*="takeover"]')){let w=t.createElement("style");w.innerHTML=`
13
+ `,o.head.appendChild(n)}}},A={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:function(){return 720},yPosHalfpage:function(){return 16},stickyMargin:{offset:16,isSticky:!0},zIndex:function(){var f,m,e,i,a,d;const o=window.parent.document;(f=o.querySelector(".header-wrapper"))==null||f.setAttribute("style","height:124px"),(m=o.querySelector(".weather-widget-wrapper"))==null||m.setAttribute("style","bottom:0px"),(e=o.querySelector(".content"))==null||e.setAttribute("style","padding-top:32px"),(i=o.querySelector(".layout"))==null||i.setAttribute("style","position:relative;background-color:transparent;"),(a=o.querySelector(".footer-ad"))==null||a.setAttribute("style","position:relative"),(d=o.querySelector(".footer-netkit"))==null||d.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);")}},N=[{site:"https://www.nine.com.au/sport",config:p},{site:"https://www.nine.com.au/product-reviews",config:b},{site:"https://www.nine.com.au/property",config:b},{site:"https://www.nine.com.au/entertainment",config:b},{site:"https://staging.nine.com.au/sport",config:p},{site:"https://staging.nine.com.au/product-reviews",config:b},{site:"https://staging.nine.com.au/property",config:b},{site:"https://staging.nine.com.au/entertainment",config:b},{site:"https://render-web-nine-staging-v1.ffxblue.com.au",config:x},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:x},{site:"https://preview.nine.com.au/",config:x},{site:"https://www.nine",config:x},{site:"https://staging.nine",config:x},{site:"https://entertainment",config:g},{site:"https://celebrity",config:g},{site:"https://homes",config:g},{site:"https://travel",config:g},{site:"https://honey",config:g},{site:"https://style",config:g},{site:"https://coach",config:g},{site:"https://kitchen",config:g},{site:"https://finance",config:g},{site:"https://wwos",config:v},{site:"https://staging.wwos",config:p},{site:"https://www.9news",config:A},{site:"https://staging.9news",config:A},{site:"https://www.yourtv",config:g},{site:"https://staging.yourtv",config:g},{site:"https://9now",config:b},{site:"https://creative-preview-an.com",config:g}],P=()=>{const o=window.document.getElementById("nineContent");o&&(o.style.backgroundColor=E.siteBackgroundColor),O(),D(),window.parent.window.addEventListener("scroll",_),setTimeout(_,50)},L=()=>{let o=null;return window.parent&&(o=window.parent.document.querySelector('div[id*="billboard"][id*="above"]')),o},z=()=>{const o=window.parent.location.href;for(let f=0;f<N.length;f+=1)if(o.indexOf(N[f].site)>=0)return N[f].config},D=()=>{if(!S)return;const o=S.style;o.width="100%",o.height="1000px",o.position="fixed",o.left="50%",o.transform="translate(-50%, 0)"},O=()=>{if(!H)return;const o=H.style;H.className="",o.minHeight="250px",o.marginTop=E.adNodeMarginTop+"px",o.marginBottom=E.adNodeMarginBottom+"px",o.position="static",o.display="block",window.parent&&E.zIndex&&E.zIndex()},_=o=>{const f=window.parent.scrollY,m=S.style,e=document.getElementById("siteContent")?document.getElementById("siteContent").style:{};f>=0&&f<=B?(m.transform=`translate(-50%, ${-f}px)`,e.transform="translateY(0)"):f>B&&f<=I?(m.transform=`translate(-50%, ${-B}px)`,e.transform=`translateY(${B-f}px)`):f>I&&(m.transform=`translate(-50%, ${-B}px)`,e.transform="translateY(-250px)")},H=L(),E=z(),B=-E.responsiveScroll+T,I=B+250;P()},$=T=>{const S=window.frameElement?window.frameElement:null,g=window.parent.document,b=document.getElementById("nineMasthead"),x=b?b.style:{};let p;const v={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){var r,s,l,c,u,y,w,h,q,k;const t=window.parent.document,n=(M,C)=>M.forEach(X=>C.forEach(([V,U])=>X.style[V]=U));(r=t.querySelector(".nk-demographics"))==null||r.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),(s=t.querySelector(".nk-footer"))==null||s.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),(l=t.querySelector("article"))==null||l.setAttribute("style","position:relative"),(c=t.querySelector("#article"))==null||c.setAttribute("style","position:relative"),(u=t.querySelector("#VideoIndex"))==null||u.setAttribute("style","position:relative"),(y=t.querySelector("#Index"))==null||y.setAttribute("style","position:relative"),(w=t.querySelector(".show"))==null||w.setAttribute("style","position:relative"),(h=t.querySelector("#adspot-desktop-banner-7-below"))==null||h.setAttribute("style","position:relative"),n(t.querySelectorAll(".column"),[["position","relative"]]),n(t.querySelectorAll(".advert"),[["position","relative"]]),n(t.querySelectorAll("blockquote"),[["zIndex","1"]]),(q=t.querySelector('div[type="BANNER"]'))==null||q.setAttribute("style","display:none"),(k=t.querySelector('div[type="MBANNER"]'))==null||k.setAttribute("style","display:none")}},A={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){var r,s,l,c,u,y,w,h,q,k,M;const t=window.parent.document,n=(C,X)=>C.forEach(V=>X.forEach(([U,W])=>V.style[U]=W));(r=t.querySelector(".nk-demographics"))==null||r.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),(s=t.querySelector(".nk-footer"))==null||s.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),(l=t.querySelector("article"))==null||l.setAttribute("style","position:relative"),(c=t.querySelector("#article"))==null||c.setAttribute("style","position:relative"),(u=t.querySelector("#VideoIndex"))==null||u.setAttribute("style","position:relative"),(y=t.querySelector("#Index"))==null||y.setAttribute("style","position:relative"),(w=t.querySelector(".show"))==null||w.setAttribute("style","position:relative"),n(t.querySelectorAll(".column"),[["position","relative"]]),n(t.querySelectorAll(".advert"),[["position","relative"]]),n(t.querySelectorAll("blockquote"),[["zIndex","1"]]),(h=t.querySelector('div[class^="component__StrapContainer"]'))==null||h.setAttribute("style","position:relative"),(q=t.querySelector('section[class^="WatchNow__Container"]'))==null||q.setAttribute("style","margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);"),(k=t.querySelector('div[class*="ArticleContainer"]'))==null||k.setAttribute("style","max-width:1190px;margin-top:24px"),(M=t.querySelector('div[class*="MyContainer"]'))==null||M.setAttribute("style","max-width:1190px;margin-top:24px")}},N={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){var r,s,l,c,u,y;const t=window.parent.document;if((r=t.querySelector('section[data-section="marketing-banner"]'))==null||r.setAttribute("style","position:relative"),(l=(s=t.querySelector('div[data-testid="live-tv"]'))==null?void 0:s.parentNode)==null||l.setAttribute("style","position:relative"),(u=(c=t.querySelector('div[data-contentunit-id="stan"]'))==null?void 0:c.parentNode)==null||u.setAttribute("style","position:relative"),(y=t.querySelector("small"))==null||y.setAttribute("style","position:inherit"),t.querySelector('div[id*="tablet"][id*="takeover"]')){let w=t.createElement("style");w.innerHTML=`
14
14
  div:has(#adspot-tablet-takeover-2-above) {
15
15
  position: static;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powered-ad-config",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "description": "Configure Ads to load smoothly and at the right position on All Nine's websites",
5
5
  "main": "dist/powered-ad-config.umd.js",
6
6
  "module": "dist/powered-ad-config.es.js",