powered-ad-config 0.0.91 → 0.0.92
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.
- package/dist/powered-ad-config.es.js +152 -163
- package/dist/powered-ad-config.umd.js +7 -7
- package/package.json +1 -1
|
@@ -2,12 +2,12 @@ const V = (w) => {
|
|
|
2
2
|
const n = window.frameElement ? window.frameElement : null;
|
|
3
3
|
if (!n) return () => {
|
|
4
4
|
};
|
|
5
|
-
const
|
|
6
|
-
if (!
|
|
5
|
+
const m = window.parent;
|
|
6
|
+
if (!m || m === window) return () => {
|
|
7
7
|
};
|
|
8
|
-
let
|
|
8
|
+
let p = null;
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
p = m.document, m.location.href;
|
|
11
11
|
} catch {
|
|
12
12
|
return () => {
|
|
13
13
|
};
|
|
@@ -22,7 +22,7 @@ const V = (w) => {
|
|
|
22
22
|
yPosHalfpage: 72,
|
|
23
23
|
stickyMargin: { offset: 72, isSticky: !0 },
|
|
24
24
|
zIndex: function() {
|
|
25
|
-
const o = window.parent.document, f = (v, t) => v.forEach((r) => t.forEach(([
|
|
25
|
+
const o = window.parent.document, f = (v, t) => v.forEach((r) => t.forEach(([g, h]) => r.style[g] = h));
|
|
26
26
|
o.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector("article")?.setAttribute("style", "position:relative"), o.querySelector("#article")?.setAttribute("style", "position:relative"), o.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), o.querySelector("#Index")?.setAttribute("style", "position:relative"), o.querySelector(".show")?.setAttribute("style", "position:relative"), o.querySelector("#adspot-desktop-banner-7-below")?.setAttribute("style", "position:relative"), f(o.querySelectorAll(".column"), [["position", "relative"]]), f(o.querySelectorAll(".advert"), [["position", "relative"]]), f(o.querySelectorAll("blockquote"), [["zIndex", "1"]]), o.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:-24px"), o.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
|
|
27
27
|
}
|
|
28
28
|
}, S = {
|
|
@@ -35,7 +35,7 @@ const V = (w) => {
|
|
|
35
35
|
yPosHalfpage: 32,
|
|
36
36
|
stickyMargin: { offset: 32, isSticky: !0 },
|
|
37
37
|
zIndex: function() {
|
|
38
|
-
const o = window.parent.document, f = (v, t) => v.forEach((r) => t.forEach(([
|
|
38
|
+
const o = window.parent.document, f = (v, t) => v.forEach((r) => t.forEach(([g, h]) => r.style[g] = h));
|
|
39
39
|
o.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector("article")?.setAttribute("style", "position:relative"), o.querySelector("#article")?.setAttribute("style", "position:relative"), o.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), o.querySelector("#Index")?.setAttribute("style", "position:relative"), o.querySelector(".show")?.setAttribute("style", "position:relative"), f(o.querySelectorAll(".column"), [["position", "relative"]]), f(o.querySelectorAll(".advert"), [["position", "relative"]]), f(o.querySelectorAll("blockquote"), [["zIndex", "1"]]), o.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style", "position:relative"), o.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px"), o.querySelector('div[class*="MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:24px");
|
|
40
40
|
}
|
|
41
41
|
}, s = {
|
|
@@ -58,7 +58,7 @@ const V = (w) => {
|
|
|
58
58
|
`, o.head.appendChild(v);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
},
|
|
61
|
+
}, y = {
|
|
62
62
|
siteBackgroundColor: "#ffffff",
|
|
63
63
|
fireplaceLeftMargin: 0,
|
|
64
64
|
adNodeMarginTop: -24,
|
|
@@ -88,7 +88,7 @@ const V = (w) => {
|
|
|
88
88
|
yPosHalfpage: 32,
|
|
89
89
|
stickyMargin: { offset: 104, isSticky: !0 },
|
|
90
90
|
zIndex: function() {
|
|
91
|
-
const o = window.parent.document, f = (t, r) => t.forEach((
|
|
91
|
+
const o = window.parent.document, f = (t, r) => t.forEach((g) => r.forEach(([h, e]) => g.style[h] = e));
|
|
92
92
|
if (o.querySelector(".container--padded")?.setAttribute("style", "position:relative"), f(o.querySelectorAll(".advert"), [["position", "relative"]]), o.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), o.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), o.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
|
|
93
93
|
let t = o.createElement("style");
|
|
94
94
|
t.innerHTML = `
|
|
@@ -111,12 +111,12 @@ const V = (w) => {
|
|
|
111
111
|
const o = window.parent.document;
|
|
112
112
|
o.querySelector(".header-wrapper")?.setAttribute("style", "height:124px"), o.querySelector(".weather-widget-wrapper")?.setAttribute("style", "bottom:0px"), o.querySelector(".content")?.setAttribute("style", "padding-top:32px"), o.querySelector(".layout")?.setAttribute("style", "position:relative;background-color:transparent;"), o.querySelector(".footer-ad")?.setAttribute("style", "position:relative"), o.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);");
|
|
113
113
|
}
|
|
114
|
-
},
|
|
115
|
-
{ site: "https://www.nine.com.au/sport", config:
|
|
114
|
+
}, B = [
|
|
115
|
+
{ site: "https://www.nine.com.au/sport", config: y },
|
|
116
116
|
{ site: "https://www.nine.com.au/product-reviews", config: S },
|
|
117
117
|
{ site: "https://www.nine.com.au/property", config: S },
|
|
118
118
|
{ site: "https://www.nine.com.au/entertainment", config: S },
|
|
119
|
-
{ site: "https://staging.nine.com.au/sport", config:
|
|
119
|
+
{ site: "https://staging.nine.com.au/sport", config: y },
|
|
120
120
|
{ site: "https://staging.nine.com.au/product-reviews", config: S },
|
|
121
121
|
{ site: "https://staging.nine.com.au/property", config: S },
|
|
122
122
|
{ site: "https://staging.nine.com.au/entertainment", config: S },
|
|
@@ -135,60 +135,60 @@ const V = (w) => {
|
|
|
135
135
|
{ site: "https://kitchen", config: l },
|
|
136
136
|
{ site: "https://finance", config: l },
|
|
137
137
|
{ site: "https://wwos", config: b },
|
|
138
|
-
{ site: "https://staging.wwos", config:
|
|
138
|
+
{ site: "https://staging.wwos", config: y },
|
|
139
139
|
{ site: "https://www.9news", config: A },
|
|
140
140
|
{ site: "https://staging.9news", config: A },
|
|
141
141
|
{ site: "https://www.yourtv", config: l },
|
|
142
142
|
{ site: "https://staging.yourtv", config: l },
|
|
143
143
|
{ site: "https://9now", config: S },
|
|
144
144
|
{ site: "https://creative-preview-an.com", config: l }
|
|
145
|
-
],
|
|
145
|
+
], M = () => {
|
|
146
146
|
const o = window.document.getElementById("nineContent");
|
|
147
|
-
o && (o.style.backgroundColor = x.siteBackgroundColor),
|
|
147
|
+
o && (o.style.backgroundColor = x.siteBackgroundColor), H(), D(), m.addEventListener("scroll", I), c = setTimeout(I, 50);
|
|
148
148
|
}, C = () => {
|
|
149
149
|
let o = null;
|
|
150
|
-
return o =
|
|
151
|
-
},
|
|
152
|
-
const o =
|
|
153
|
-
for (let f = 0; f <
|
|
154
|
-
if (o.indexOf(
|
|
155
|
-
return
|
|
156
|
-
},
|
|
150
|
+
return o = p.querySelector('div[id*="billboard"][id*="above"]'), o;
|
|
151
|
+
}, E = () => {
|
|
152
|
+
const o = m.location.href;
|
|
153
|
+
for (let f = 0; f < B.length; f += 1)
|
|
154
|
+
if (o.indexOf(B[f].site) >= 0)
|
|
155
|
+
return B[f].config;
|
|
156
|
+
}, D = () => {
|
|
157
157
|
if (!n) return;
|
|
158
158
|
const o = n.style;
|
|
159
159
|
o.width = "100%", o.height = "1000px", o.position = "fixed", o.left = "50%", o.transform = "translate(-50%, 0)";
|
|
160
|
-
},
|
|
160
|
+
}, H = () => {
|
|
161
161
|
if (!N) return;
|
|
162
162
|
const o = N.style;
|
|
163
163
|
N.className = "", o.minHeight = "250px", o.marginTop = x.adNodeMarginTop + "px", o.marginBottom = x.adNodeMarginBottom + "px", o.position = "static", o.display = "block", x.zIndex && x.zIndex();
|
|
164
164
|
}, I = () => {
|
|
165
|
-
const o =
|
|
166
|
-
o >= 0 && o <= i ? (f.transform = `translate(-50%, ${-o}px)`, v.transform = "translateY(0)") : o > i && o <=
|
|
167
|
-
}, N = C(), x =
|
|
165
|
+
const o = m.scrollY, f = n.style, v = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
|
|
166
|
+
o >= 0 && o <= i ? (f.transform = `translate(-50%, ${-o}px)`, v.transform = "translateY(0)") : o > i && o <= d ? (f.transform = `translate(-50%, ${-i}px)`, v.transform = `translateY(${i - o}px)`) : o > d && (f.transform = `translate(-50%, ${-i}px)`, v.transform = "translateY(-250px)");
|
|
167
|
+
}, N = C(), x = E();
|
|
168
168
|
if (!x) return () => {
|
|
169
169
|
};
|
|
170
170
|
let c = null;
|
|
171
|
-
const i = -x.responsiveScroll + w,
|
|
172
|
-
return
|
|
173
|
-
|
|
171
|
+
const i = -x.responsiveScroll + w, d = i + 250;
|
|
172
|
+
return M(), () => {
|
|
173
|
+
m.removeEventListener("scroll", I), c && (clearTimeout(c), c = null);
|
|
174
174
|
};
|
|
175
175
|
}, F = (w) => {
|
|
176
176
|
const n = window.frameElement ? window.frameElement : null;
|
|
177
177
|
if (!n) return () => {
|
|
178
178
|
};
|
|
179
|
-
const
|
|
180
|
-
if (!
|
|
179
|
+
const m = window.parent;
|
|
180
|
+
if (!m || m === window) return () => {
|
|
181
181
|
};
|
|
182
|
-
let
|
|
182
|
+
let p = null;
|
|
183
183
|
try {
|
|
184
|
-
|
|
184
|
+
p = m.document, m.location.href;
|
|
185
185
|
} catch {
|
|
186
186
|
return () => {
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
const l = document.getElementById("nineMasthead"), S = l ? l.style : {};
|
|
190
190
|
let s;
|
|
191
|
-
const
|
|
191
|
+
const y = {
|
|
192
192
|
siteBackgroundColor: "#ffffff",
|
|
193
193
|
fireplaceLeftMargin: 0,
|
|
194
194
|
adNodeMarginTop: -24,
|
|
@@ -237,7 +237,7 @@ const V = (w) => {
|
|
|
237
237
|
`, e.head.appendChild(u);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
},
|
|
240
|
+
}, B = {
|
|
241
241
|
siteBackgroundColor: "#ffffff",
|
|
242
242
|
fireplaceLeftMargin: 0,
|
|
243
243
|
adNodeMarginTop: -24,
|
|
@@ -258,7 +258,7 @@ const V = (w) => {
|
|
|
258
258
|
`, e.head.appendChild(k);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
},
|
|
261
|
+
}, M = {
|
|
262
262
|
siteBackgroundColor: "#ffffff",
|
|
263
263
|
fireplaceLeftMargin: 0,
|
|
264
264
|
adNodeMarginTop: -25,
|
|
@@ -295,12 +295,12 @@ const V = (w) => {
|
|
|
295
295
|
const a = e.querySelector('[class*="VideoIndexComponent"]');
|
|
296
296
|
a && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), a.style.maxWidth = "1190px", a.style.margin = "auto", a.style.position = "relative");
|
|
297
297
|
}
|
|
298
|
-
},
|
|
299
|
-
{ site: "https://www.nine.com.au/sport", config:
|
|
298
|
+
}, E = [
|
|
299
|
+
{ site: "https://www.nine.com.au/sport", config: B },
|
|
300
300
|
{ site: "https://www.nine.com.au/product-reviews", config: b },
|
|
301
301
|
{ site: "https://www.nine.com.au/property", config: b },
|
|
302
302
|
{ site: "https://www.nine.com.au/entertainment", config: b },
|
|
303
|
-
{ site: "https://staging.nine.com.au/sport", config:
|
|
303
|
+
{ site: "https://staging.nine.com.au/sport", config: B },
|
|
304
304
|
{ site: "https://staging.nine.com.au/product-reviews", config: b },
|
|
305
305
|
{ site: "https://staging.nine.com.au/property", config: b },
|
|
306
306
|
{ site: "https://staging.nine.com.au/entertainment", config: b },
|
|
@@ -309,33 +309,33 @@ const V = (w) => {
|
|
|
309
309
|
{ site: "https://preview.nine.com.au/", config: A },
|
|
310
310
|
{ site: "https://www.nine", config: A },
|
|
311
311
|
{ site: "https://staging.nine", config: A },
|
|
312
|
-
{ site: "https://entertainment", config:
|
|
313
|
-
{ site: "https://celebrity", config:
|
|
314
|
-
{ site: "https://homes", config:
|
|
315
|
-
{ site: "https://travel", config:
|
|
316
|
-
{ site: "https://honey", config:
|
|
317
|
-
{ site: "https://style", config:
|
|
318
|
-
{ site: "https://coach", config:
|
|
319
|
-
{ site: "https://kitchen", config:
|
|
320
|
-
{ site: "https://finance", config:
|
|
321
|
-
{ site: "https://wwos", config:
|
|
322
|
-
{ site: "https://staging.wwos", config:
|
|
312
|
+
{ site: "https://entertainment", config: y },
|
|
313
|
+
{ site: "https://celebrity", config: y },
|
|
314
|
+
{ site: "https://homes", config: y },
|
|
315
|
+
{ site: "https://travel", config: y },
|
|
316
|
+
{ site: "https://honey", config: y },
|
|
317
|
+
{ site: "https://style", config: y },
|
|
318
|
+
{ site: "https://coach", config: y },
|
|
319
|
+
{ site: "https://kitchen", config: y },
|
|
320
|
+
{ site: "https://finance", config: y },
|
|
321
|
+
{ site: "https://wwos", config: M },
|
|
322
|
+
{ site: "https://staging.wwos", config: B },
|
|
323
323
|
{ site: "https://www.9news", config: C },
|
|
324
324
|
{ site: "https://staging.9news", config: C },
|
|
325
|
-
{ site: "https://www.yourtv", config:
|
|
326
|
-
{ site: "https://staging.yourtv", config:
|
|
325
|
+
{ site: "https://www.yourtv", config: y },
|
|
326
|
+
{ site: "https://staging.yourtv", config: y },
|
|
327
327
|
{ site: "https://9now", config: b },
|
|
328
|
-
{ site: "https://creative-preview-an.com", config:
|
|
329
|
-
],
|
|
328
|
+
{ site: "https://creative-preview-an.com", config: y }
|
|
329
|
+
], D = () => {
|
|
330
330
|
const e = window.document.getElementById("nineContent");
|
|
331
|
-
e && (e.style.backgroundColor = t.siteBackgroundColor), l && (S.setProperty("--masthead-height", "250px"), S.height = "var(--masthead-height)"), c(), x(), I(), i(),
|
|
332
|
-
},
|
|
331
|
+
e && (e.style.backgroundColor = t.siteBackgroundColor), l && (S.setProperty("--masthead-height", "250px"), S.height = "var(--masthead-height)"), c(), x(), I(), i(), m.addEventListener("scroll", f, { passive: !0 }), r = setTimeout(f, 50);
|
|
332
|
+
}, H = () => {
|
|
333
333
|
let e = null;
|
|
334
|
-
return e =
|
|
334
|
+
return e = p.querySelector('div[id*="billboard"][id*="above"]'), e;
|
|
335
335
|
}, I = () => {
|
|
336
336
|
let e = null;
|
|
337
337
|
if (!window.parent) return e;
|
|
338
|
-
if (e =
|
|
338
|
+
if (e = p.querySelector('div[id*="halfpage"][id*="above"]'), !e) return;
|
|
339
339
|
let a = e;
|
|
340
340
|
for (let u = 0; u < 3; u++)
|
|
341
341
|
if (a = a.parentNode, a && getComputedStyle(a).position === "sticky") {
|
|
@@ -343,10 +343,10 @@ const V = (w) => {
|
|
|
343
343
|
break;
|
|
344
344
|
}
|
|
345
345
|
}, N = () => {
|
|
346
|
-
const e =
|
|
347
|
-
for (let a = 0; a <
|
|
348
|
-
if (e.indexOf(
|
|
349
|
-
return
|
|
346
|
+
const e = m.location.href;
|
|
347
|
+
for (let a = 0; a < E.length; a += 1)
|
|
348
|
+
if (e.indexOf(E[a].site) >= 0)
|
|
349
|
+
return E[a].config;
|
|
350
350
|
}, x = () => {
|
|
351
351
|
if (!n) return;
|
|
352
352
|
const e = n.style;
|
|
@@ -356,11 +356,11 @@ const V = (w) => {
|
|
|
356
356
|
const e = v.style;
|
|
357
357
|
v.className = "", e.minHeight = "250px", e.marginTop = t.adNodeMarginTop + "px", e.marginBottom = t.adNodeMarginBottom + "px", e.position = "static", e.display = "block", t.zIndex && t.zIndex();
|
|
358
358
|
}, i = () => {
|
|
359
|
-
s =
|
|
359
|
+
s = p.querySelector('div[data-contentunit-id="stan"]')?.parentNode || p.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode || p.querySelector('div[class*="__MyContainer"]') || p.querySelector('div[class*="__ArticleContainer"]') || p.querySelector('div[class*="__VideoIndexComponent"]') || p.querySelector("div.container.layout") || p.querySelector("main.container.layout"), s && (s.style.willChange = "clip-path", s.style.transition = "none", s.style.webkitBackfaceVisibility = "hidden", s.style.backfaceVisibility = "hidden", s.style.transform = "translate3d(0,0,0)", s.style.backgroundColor = t.siteBackgroundColor, s.style.setProperty("--mask-inset", "0px"), s.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
|
|
360
360
|
};
|
|
361
|
-
let
|
|
361
|
+
let d = 0, o = 0;
|
|
362
362
|
const f = () => {
|
|
363
|
-
const e =
|
|
363
|
+
const e = m.scrollY, a = e > d, u = e > h ? e - t.maskOffset : 0, q = Math.abs(u - o);
|
|
364
364
|
if (s)
|
|
365
365
|
if (a && u > o)
|
|
366
366
|
if (q > 100) {
|
|
@@ -370,18 +370,18 @@ const V = (w) => {
|
|
|
370
370
|
s.style.transition = "clip-path 0.3s ease-out", s.style.setProperty("--mask-inset", `${u}px`);
|
|
371
371
|
else
|
|
372
372
|
s.style.transition = "none", s.style.setProperty("--mask-inset", `${u}px`);
|
|
373
|
-
|
|
374
|
-
}, v =
|
|
373
|
+
d = e, o = u, e > h ? (n.style.setProperty("--transform-y", `${-g}px`), S.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > g && e <= h ? (n.style.setProperty("--transform-y", `${-g}px`), S.setProperty("--masthead-height", `${250 + g - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= g && (n.style.setProperty("--transform-y", `${-e}px`), S.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
|
|
374
|
+
}, v = H(), t = N();
|
|
375
375
|
if (!t) return () => {
|
|
376
376
|
};
|
|
377
377
|
let r = null;
|
|
378
|
-
const
|
|
379
|
-
return
|
|
380
|
-
|
|
378
|
+
const g = -t.responsiveScroll + w, h = g + 150;
|
|
379
|
+
return D(), () => {
|
|
380
|
+
m.removeEventListener("scroll", f), r && (clearTimeout(r), r = null);
|
|
381
381
|
};
|
|
382
|
-
}, X = (w, n,
|
|
383
|
-
const
|
|
384
|
-
if (!
|
|
382
|
+
}, X = (w, n, m) => {
|
|
383
|
+
const p = window.frameElement ? window.frameElement : null;
|
|
384
|
+
if (!p) return () => {
|
|
385
385
|
};
|
|
386
386
|
const l = window.parent;
|
|
387
387
|
if (!l || l === window) return () => {
|
|
@@ -402,10 +402,10 @@ const V = (w) => {
|
|
|
402
402
|
logoSmallTransform: "translateX(0px)",
|
|
403
403
|
logoSmallFilter: "none",
|
|
404
404
|
zIndex: function() {
|
|
405
|
-
const t = window.parent.document, r = (
|
|
405
|
+
const t = window.parent.document, r = (g, h) => g.forEach((e) => h.forEach(([a, u]) => e.style[a] = u));
|
|
406
406
|
t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), r(t.querySelectorAll(".advert"), [["position", "relative"]]), t.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
|
|
407
407
|
}
|
|
408
|
-
},
|
|
408
|
+
}, y = {
|
|
409
409
|
siteBackgroundColor: "#ffffff",
|
|
410
410
|
logoTop: "44px",
|
|
411
411
|
logoLeft: "50%",
|
|
@@ -414,7 +414,7 @@ const V = (w) => {
|
|
|
414
414
|
logoSmallTransform: "translateX(-50%)",
|
|
415
415
|
logoSmallFilter: "none",
|
|
416
416
|
zIndex: function() {
|
|
417
|
-
const t = window.parent.document, r = (
|
|
417
|
+
const t = window.parent.document, r = (g, h) => g.forEach((e) => h.forEach(([a, u]) => e.style[a] = u));
|
|
418
418
|
t.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector("article")?.setAttribute("style", "position:relative"), t.querySelector("#article")?.setAttribute("style", "position:relative"), t.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), t.querySelector("#Index")?.setAttribute("style", "position:relative"), t.querySelector(".show")?.setAttribute("style", "position:relative"), r(t.querySelectorAll(".column"), [["position", "relative"]]), r(t.querySelectorAll(".advert"), [["position", "relative"]]), r(t.querySelectorAll("blockquote"), [["zIndex", "1"]]), t.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:-24px"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
|
|
419
419
|
}
|
|
420
420
|
}, b = {
|
|
@@ -426,7 +426,7 @@ const V = (w) => {
|
|
|
426
426
|
logoSmallTransform: "translateX(-50%)",
|
|
427
427
|
logoSmallFilter: "none",
|
|
428
428
|
zIndex: function() {
|
|
429
|
-
const t = window.parent.document, r = (
|
|
429
|
+
const t = window.parent.document, r = (g, h) => g.forEach((e) => h.forEach(([a, u]) => e.style[a] = u));
|
|
430
430
|
t.querySelector(".nk-demographics")?.setAttribute("style", "max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector(".nk-footer")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector("article")?.setAttribute("style", "position:relative"), t.querySelector("#article")?.setAttribute("style", "position:relative"), t.querySelector("#VideoIndex")?.setAttribute("style", "position:relative"), t.querySelector("#Index")?.setAttribute("style", "position:relative"), t.querySelector(".show")?.setAttribute("style", "position:relative"), r(t.querySelectorAll(".column"), [["position", "relative"]]), r(t.querySelectorAll(".advert"), [["position", "relative"]]), r(t.querySelectorAll("blockquote"), [["zIndex", "1"]]), t.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style", "position:relative"), t.querySelector('section[class^="WatchNow__Container"]')?.setAttribute("style", "margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);"), t.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style", "max-width:1190px;margin-top:0px"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
|
|
431
431
|
}
|
|
432
432
|
}, A = {
|
|
@@ -438,10 +438,10 @@ const V = (w) => {
|
|
|
438
438
|
logoSmallTransform: "translateX(-50%)",
|
|
439
439
|
logoSmallFilter: "none",
|
|
440
440
|
zIndex: function() {
|
|
441
|
-
const t = window.parent.document, r = (
|
|
441
|
+
const t = window.parent.document, r = (g, h) => g.forEach((e) => h.forEach(([a, u]) => e.style[a] = u));
|
|
442
442
|
t.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style", "position:relative"), t.querySelector(".container--ads")?.setAttribute("style", "min-height:0"), t.getElementById("mastheadAnchorToggle")?.setAttribute("style", "display:none"), r(t.querySelectorAll(".advert"), [["position", "relative"]]), r(t.querySelectorAll("iframe"), [["position", "relative"]]), t.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style", "position:relative"), t.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style", "position:relative"), r(t.querySelectorAll("small"), [["position", "relative"]]), t.querySelector("small")?.setAttribute("style", "position:inherit"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
|
|
443
443
|
}
|
|
444
|
-
},
|
|
444
|
+
}, B = {
|
|
445
445
|
siteBackgroundColor: "#ffffff",
|
|
446
446
|
logoTop: "-148px",
|
|
447
447
|
logoLeft: "50%",
|
|
@@ -450,10 +450,10 @@ const V = (w) => {
|
|
|
450
450
|
logoSmallTransform: "translateX(-50%)",
|
|
451
451
|
logoSmallFilter: "none",
|
|
452
452
|
zIndex: function() {
|
|
453
|
-
const t = window.parent.document, r = (
|
|
453
|
+
const t = window.parent.document, r = (g, h) => g.forEach((e) => h.forEach(([a, u]) => e.style[a] = u));
|
|
454
454
|
t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), r(t.querySelectorAll(".advert"), [["position", "relative"]]), t.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
|
|
455
455
|
}
|
|
456
|
-
},
|
|
456
|
+
}, M = {
|
|
457
457
|
siteBackgroundColor: "#ffffff",
|
|
458
458
|
logoTop: "44px",
|
|
459
459
|
logoLeft: "50%",
|
|
@@ -479,83 +479,75 @@ const V = (w) => {
|
|
|
479
479
|
{ site: "https://preview.nine.com.au/", config: A },
|
|
480
480
|
{ site: "https://www.nine", config: A },
|
|
481
481
|
{ site: "https://staging.nine", config: A },
|
|
482
|
-
{ site: "https://entertainment", config:
|
|
483
|
-
{ site: "https://celebrity", config:
|
|
484
|
-
{ site: "https://homes", config:
|
|
485
|
-
{ site: "https://travel", config:
|
|
486
|
-
{ site: "https://honey", config:
|
|
487
|
-
{ site: "https://style", config:
|
|
488
|
-
{ site: "https://coach", config:
|
|
489
|
-
{ site: "https://kitchen", config:
|
|
490
|
-
{ site: "https://finance", config:
|
|
491
|
-
{ site: "https://wwos", config:
|
|
492
|
-
{ site: "https://staging.wwos", config:
|
|
493
|
-
{ site: "https://www.9news", config:
|
|
494
|
-
{ site: "https://staging.9news", config:
|
|
495
|
-
{ site: "https://www.yourtv", config:
|
|
496
|
-
{ site: "https://staging.yourtv", config:
|
|
482
|
+
{ site: "https://entertainment", config: y },
|
|
483
|
+
{ site: "https://celebrity", config: y },
|
|
484
|
+
{ site: "https://homes", config: y },
|
|
485
|
+
{ site: "https://travel", config: y },
|
|
486
|
+
{ site: "https://honey", config: y },
|
|
487
|
+
{ site: "https://style", config: y },
|
|
488
|
+
{ site: "https://coach", config: y },
|
|
489
|
+
{ site: "https://kitchen", config: y },
|
|
490
|
+
{ site: "https://finance", config: y },
|
|
491
|
+
{ site: "https://wwos", config: B },
|
|
492
|
+
{ site: "https://staging.wwos", config: B },
|
|
493
|
+
{ site: "https://www.9news", config: M },
|
|
494
|
+
{ site: "https://staging.9news", config: M },
|
|
495
|
+
{ site: "https://www.yourtv", config: y },
|
|
496
|
+
{ site: "https://staging.yourtv", config: y },
|
|
497
497
|
{ site: "https://9now", config: b },
|
|
498
|
-
{ site: "https://creative-preview-an.com", config:
|
|
499
|
-
],
|
|
498
|
+
{ site: "https://creative-preview-an.com", config: y }
|
|
499
|
+
], E = () => {
|
|
500
500
|
const t = window.document.getElementById("logo-small");
|
|
501
|
-
t && (t.style.left =
|
|
502
|
-
},
|
|
501
|
+
t && (t.style.left = d.logoSmallLeft, t.style.transform = d.logoSmallTransform, t.style.filter = d.logoSmallFilter), N(), I(), l.addEventListener("scroll", c), o = setTimeout(c, 50);
|
|
502
|
+
}, D = () => {
|
|
503
503
|
let t = null;
|
|
504
504
|
return t = S.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'), t;
|
|
505
|
-
},
|
|
505
|
+
}, H = () => {
|
|
506
506
|
const t = l.location.href;
|
|
507
507
|
for (let r = 0; r < C.length; r += 1)
|
|
508
508
|
if (t.indexOf(C[r].site) >= 0)
|
|
509
509
|
return C[r].config;
|
|
510
510
|
}, I = () => {
|
|
511
|
-
if (!
|
|
512
|
-
const t =
|
|
511
|
+
if (!p) return;
|
|
512
|
+
const t = p.style;
|
|
513
513
|
t.width = "100%", t.height = `${n}px`, t.position = "relative";
|
|
514
514
|
}, N = () => {
|
|
515
515
|
if (!i) return;
|
|
516
516
|
const t = i.style;
|
|
517
|
-
t.maxHeight = `${n}px`, t.minHeight = `${n}px`, t.marginTop = "0px", t.marginBottom = "0px", t.position = "absolute", t.width = "1900px", t.top =
|
|
517
|
+
t.maxHeight = `${n}px`, t.minHeight = `${n}px`, t.marginTop = "0px", t.marginBottom = "0px", t.position = "absolute", t.width = "1900px", t.top = d.logoTop, t.left = d.logoLeft, t.transform = d.logoTransform, t.zIndex = "10000", t.pointerEvents = "none", d.zIndex && d.zIndex();
|
|
518
518
|
}, x = (t) => {
|
|
519
519
|
if (!i) return;
|
|
520
520
|
const r = i.style;
|
|
521
|
-
t === "big" && !window.bigActive ? (r.maxHeight = `${n}px`, r.minHeight = `${n}px`, r.position = "absolute", r.top =
|
|
521
|
+
t === "big" && !window.bigActive ? (r.maxHeight = `${n}px`, r.minHeight = `${n}px`, r.position = "absolute", r.top = d.logoTop, r.zIndex = "10000", window.loadBig()) : t === "small" && !window.smallActive && (r.maxHeight = `${m}px`, r.minHeight = `${m}px`, r.position = "fixed", r.top = "0px", r.zIndex = "100000", window.loadSmall());
|
|
522
522
|
}, c = () => {
|
|
523
523
|
const t = l.scrollY;
|
|
524
|
-
|
|
525
|
-
}, i =
|
|
526
|
-
if (!
|
|
524
|
+
p.style, t >= 0 && t <= f ? x("big") : t > f && (t > v ? x("small") : x("big"), v = t <= 0 ? 0 : t);
|
|
525
|
+
}, i = D(), d = H();
|
|
526
|
+
if (!d) return () => {
|
|
527
527
|
};
|
|
528
528
|
let o = null;
|
|
529
529
|
const f = w;
|
|
530
530
|
let v = 0;
|
|
531
|
-
return
|
|
531
|
+
return E(), () => {
|
|
532
532
|
l.removeEventListener("scroll", c), o && (clearTimeout(o), o = null);
|
|
533
533
|
};
|
|
534
534
|
}, Y = (w) => {
|
|
535
535
|
if (w === 0 || w === 1) return w;
|
|
536
536
|
const n = 2 * Math.PI / 3;
|
|
537
537
|
return Math.pow(2, -10 * w) * Math.sin((w * 10 - 0.75) * n) + 1;
|
|
538
|
-
}, U = (w, n = 50) => `linear(${Array.from({ length: n + 1 }, (
|
|
538
|
+
}, U = (w, n = 50) => `linear(${Array.from({ length: n + 1 }, (p, l) => w(l / n)).map((p) => +p.toFixed(4)).join(", ")})`, W = U(Y), j = (w = {}) => {
|
|
539
539
|
const n = {
|
|
540
540
|
// Ad scroll zone
|
|
541
541
|
// How tall the ad container is — controls how long the ad stays in view.
|
|
542
542
|
// 100vh = scrolls away after one viewport height; 200vh = twice as long, etc.
|
|
543
543
|
adScrollHeight: "300vh",
|
|
544
|
-
// Reveal mode
|
|
545
|
-
// Controls how the ad creative enters the viewport as the user scrolls.
|
|
546
|
-
// 'clip' (default) — iframe stays fixed at top:0; the clip-path on the
|
|
547
|
-
// container unmasks the creative from the bottom up.
|
|
548
|
-
// 'slide' — iframe top tracks the container top so the creative
|
|
549
|
-
// slides in anchored to the top band, then snaps to
|
|
550
|
-
// top:0 once the container clears the viewport top.
|
|
551
|
-
revealMode: "clip",
|
|
552
544
|
// Band dimensions
|
|
553
545
|
bandHeight: 24,
|
|
554
546
|
// px — height of both bands
|
|
555
547
|
// Band overhang
|
|
556
548
|
// A masking block rendered above the top band, coloured to match the
|
|
557
549
|
// pre-content background. Covers any iframe pixels that bleed above the
|
|
558
|
-
// band due to clip-path inset rounding
|
|
550
|
+
// band due to clip-path inset rounding.
|
|
559
551
|
bandOverhangHeight: 20,
|
|
560
552
|
// px — height of the masking block
|
|
561
553
|
bandOverhangBg: "#fff",
|
|
@@ -570,7 +562,7 @@ const V = (w) => {
|
|
|
570
562
|
bandFontFamily: "Arial, Helvetica, sans-serif",
|
|
571
563
|
bandLetterSpacing: "1px",
|
|
572
564
|
// Band labels
|
|
573
|
-
labelTop: "
|
|
565
|
+
labelTop: "Advertisement9",
|
|
574
566
|
labelBottomResume: "Scroll to continue",
|
|
575
567
|
// shown from 0–20% ad progress
|
|
576
568
|
labelBottomMid: "Keep scrolling",
|
|
@@ -589,11 +581,11 @@ const V = (w) => {
|
|
|
589
581
|
// Bottom band visibility thresholds
|
|
590
582
|
// How many px the ad container must travel past the viewport bottom before
|
|
591
583
|
// the bottom band appears (on scroll down / reveal).
|
|
592
|
-
bottomBandShowAt:
|
|
584
|
+
bottomBandShowAt: 400,
|
|
593
585
|
// How many px the container must scroll back above the viewport bottom before
|
|
594
586
|
// the bottom band hides again (on scroll up). Should be less than bottomBandShowAt
|
|
595
587
|
// to create a hysteresis gap and prevent flickering.
|
|
596
|
-
bottomBandHideAt:
|
|
588
|
+
bottomBandHideAt: 300,
|
|
597
589
|
// Stretch animation
|
|
598
590
|
snapPx: 50,
|
|
599
591
|
// gap (px) at which the elastic snap fires
|
|
@@ -622,15 +614,15 @@ const V = (w) => {
|
|
|
622
614
|
thresholds: [],
|
|
623
615
|
// Merge caller-supplied options (overrides any default above)
|
|
624
616
|
...w
|
|
625
|
-
},
|
|
626
|
-
if (!
|
|
617
|
+
}, m = window.frameElement ? window.frameElement : null;
|
|
618
|
+
if (!m) return () => {
|
|
627
619
|
};
|
|
628
|
-
const
|
|
629
|
-
if (!
|
|
620
|
+
const p = window.parent;
|
|
621
|
+
if (!p || p === window) return () => {
|
|
630
622
|
};
|
|
631
623
|
let l = null;
|
|
632
624
|
try {
|
|
633
|
-
l =
|
|
625
|
+
l = p.document, p.location.href;
|
|
634
626
|
} catch {
|
|
635
627
|
return () => {
|
|
636
628
|
};
|
|
@@ -638,16 +630,16 @@ const V = (w) => {
|
|
|
638
630
|
const s = (() => {
|
|
639
631
|
const c = l.querySelector("#adspot-mobile-mobile-3-above");
|
|
640
632
|
if (c) return c;
|
|
641
|
-
let i =
|
|
633
|
+
let i = m.parentElement;
|
|
642
634
|
for (; i && i !== l.body; ) {
|
|
643
635
|
if (i.id && i.id.includes("adspot")) return i;
|
|
644
636
|
i = i.parentElement;
|
|
645
637
|
}
|
|
646
|
-
return
|
|
638
|
+
return m.parentElement;
|
|
647
639
|
})();
|
|
648
640
|
if (!s) return () => {
|
|
649
641
|
};
|
|
650
|
-
const
|
|
642
|
+
const y = s.getAttribute("style"), b = m.getAttribute("style"), A = {
|
|
651
643
|
width: "100vw",
|
|
652
644
|
marginLeft: "calc(50% - 50vw)",
|
|
653
645
|
height: n.bandHeight + "px",
|
|
@@ -665,13 +657,13 @@ const V = (w) => {
|
|
|
665
657
|
(() => {
|
|
666
658
|
const c = s.style;
|
|
667
659
|
c.height = n.adScrollHeight, c.position = "relative", c.clipPath = `inset(-${n.bandHeight}px 0 0 0)`, c.overflow = "visible", c.width = "100vw", c.maxWidth = "100vw", c.marginLeft = "calc(50% - 50vw)", c.marginRight = "0", c.marginTop = "0", c.marginBottom = "0", c.padding = "0", c.className = "";
|
|
668
|
-
const i =
|
|
660
|
+
const i = m.style;
|
|
669
661
|
i.position = "fixed", i.top = "0", i.left = "0", i.width = "100vw", i.height = "100vh", i.maxWidth = "100vw", i.margin = "0", i.padding = "0", i.border = "none", i.zIndex = "1";
|
|
670
|
-
const
|
|
662
|
+
const d = s.previousElementSibling, o = () => {
|
|
671
663
|
const h = ["transparent", "rgba(0, 0, 0, 0)", ""];
|
|
672
|
-
let e =
|
|
664
|
+
let e = d || s.parentElement;
|
|
673
665
|
for (; e && e !== l.documentElement; ) {
|
|
674
|
-
const a =
|
|
666
|
+
const a = p.getComputedStyle(e).backgroundColor;
|
|
675
667
|
if (!h.includes(a)) return a;
|
|
676
668
|
e = e.parentElement;
|
|
677
669
|
}
|
|
@@ -683,8 +675,7 @@ const V = (w) => {
|
|
|
683
675
|
width: "100vw",
|
|
684
676
|
marginLeft: "calc(50% - 50vw)",
|
|
685
677
|
zIndex: n.zIndexTop,
|
|
686
|
-
pointerEvents: "none"
|
|
687
|
-
...n.revealMode === "slide" && { marginBottom: `-${n.bandHeight}px` }
|
|
678
|
+
pointerEvents: "none"
|
|
688
679
|
});
|
|
689
680
|
const v = l.createElement("div");
|
|
690
681
|
v.id = "interscroller-top-band-overhang", Object.assign(v.style, {
|
|
@@ -701,7 +692,7 @@ const V = (w) => {
|
|
|
701
692
|
// wrapper handles the full-bleed breakout
|
|
702
693
|
marginLeft: "0",
|
|
703
694
|
transformOrigin: "top center"
|
|
704
|
-
}), f.appendChild(v), f.appendChild(t),
|
|
695
|
+
}), f.appendChild(v), f.appendChild(t), d ? d.appendChild(f) : s.parentElement.insertBefore(f, s);
|
|
705
696
|
const r = l.createElement("div");
|
|
706
697
|
r.id = "interscroller-bottom-band", Object.assign(r.style, A, {
|
|
707
698
|
position: "fixed",
|
|
@@ -718,8 +709,8 @@ const V = (w) => {
|
|
|
718
709
|
transition: "none"
|
|
719
710
|
// no animation on first paint
|
|
720
711
|
});
|
|
721
|
-
const
|
|
722
|
-
if (
|
|
712
|
+
const g = l.createElement("span");
|
|
713
|
+
if (g.id = "interscroller-bottom-label", g.textContent = n.labelBottomResume, g.style.cssText = "position:relative;z-index:1;pointer-events:none;", r.appendChild(g), n.progressBarColor) {
|
|
723
714
|
const h = l.createElement("span");
|
|
724
715
|
h.id = "interscroller-bottom-progress", h.style.cssText = [
|
|
725
716
|
"position:absolute",
|
|
@@ -733,43 +724,41 @@ const V = (w) => {
|
|
|
733
724
|
}
|
|
734
725
|
s.after(r);
|
|
735
726
|
})();
|
|
736
|
-
const
|
|
737
|
-
let
|
|
727
|
+
const M = n.bandHeight, C = n.snapPx;
|
|
728
|
+
let E = !1, D = !1, H = !1, I = !1;
|
|
738
729
|
const N = (n.thresholds || []).map(() => !1), x = () => {
|
|
739
730
|
const c = l.querySelector("#interscroller-top-band"), i = l.querySelector("#interscroller-bottom-band");
|
|
740
731
|
if (!i) return;
|
|
741
|
-
const
|
|
742
|
-
n.
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
const R = N[z], _ = m >= P.at;
|
|
746
|
-
!R && _ ? (N[z] = !0, P.onEnter && P.onEnter(m)) : R && !_ && (N[z] = !1, P.onLeave && P.onLeave(m));
|
|
732
|
+
const d = s.getBoundingClientRect(), o = p.innerHeight, f = d.top <= o, v = d.bottom <= o - M, t = I ? d.top <= o - n.bottomBandHideAt : d.top <= o - n.bottomBandShowAt, r = s.offsetHeight, g = Math.min(1, Math.max(0, (o - d.top) / (r + o))), h = Math.min(1, Math.max(0, (o - d.top) / (r + M))), e = Math.min(1, Math.max(0, (o - d.top) / r)), a = Math.min(d.bottom, o) - Math.max(d.top - M, 0), u = Math.min(1, Math.max(0, a / o)), q = Math.max(0, Math.round(d.bottom - o));
|
|
733
|
+
!D && f && n.onEnter && n.onEnter(), !H && v && n.onExit && n.onExit(), D = f, H = v, I = t, n.onProgress && n.onProgress({ scrollProgress: g, adExposure: e, viewportCoverage: u, pxRemaining: q }), (n.thresholds || []).forEach((P, z) => {
|
|
734
|
+
const _ = N[z], $ = g >= P.at;
|
|
735
|
+
!_ && $ ? (N[z] = !0, P.onEnter && P.onEnter(g)) : _ && !$ && (N[z] = !1, P.onLeave && P.onLeave(g));
|
|
747
736
|
});
|
|
748
|
-
const k = o
|
|
749
|
-
if (c &&
|
|
750
|
-
const P = k -
|
|
751
|
-
if (!
|
|
752
|
-
const z = 1 + Math.max(0, P + n.stretchOverlap) /
|
|
737
|
+
const k = o;
|
|
738
|
+
if (c && d.top <= k + n.stretchOverlap && !v) {
|
|
739
|
+
const P = k - d.top;
|
|
740
|
+
if (!E && P <= C - n.snapOverlap) {
|
|
741
|
+
const z = 1 + Math.max(0, P + n.stretchOverlap) / M;
|
|
753
742
|
c.style.transition = "none", c.style.transform = `scaleY(${z})`;
|
|
754
|
-
} else !
|
|
755
|
-
} else c &&
|
|
756
|
-
const T = l.querySelector("#interscroller-bottom-label"), L = l.querySelector("#interscroller-bottom-progress"), O =
|
|
743
|
+
} else !E && P > C - n.snapOverlap && (E = !0, c.style.transition = `transform ${n.snapDuration}s ${n.snapEase}`, c.style.transform = "scaleY(1)");
|
|
744
|
+
} else c && d.top > k + n.stretchOverlap && (E = !1, c.style.transition = "none", c.style.transform = "scaleY(1)");
|
|
745
|
+
const T = l.querySelector("#interscroller-bottom-label"), L = l.querySelector("#interscroller-bottom-progress"), O = p.visualViewport ? Math.round(p.innerHeight - (p.visualViewport.offsetTop + p.visualViewport.height)) : 0;
|
|
757
746
|
v ? (i.style.transition = "none", i.style.transform = "none", i.style.position = "sticky", i.style.top = "0", i.style.bottom = "", i.style.left = "", i.style.marginLeft = "calc(50% - 50vw)", i.style.width = "100vw", T && (T.textContent = n.labelBottomNow), L && (L.style.width = "100%")) : t ? (T && (T.textContent = q > 0 ? h < 0.2 ? n.labelBottomResume : h < 0.75 ? n.labelBottomMid : n.labelBottomLate : n.labelBottomNow), L && (L.style.width = `${Math.round(h * 100)}%`), i.style.transition = "transform 0.3s ease", i.style.transform = "translateY(0)", i.style.position = "fixed", i.style.bottom = `${O}px`, i.style.top = "", i.style.left = "0", i.style.marginLeft = "0", i.style.width = "100vw") : (i.style.transition = "transform 0.3s ease", i.style.transform = "translateY(100%)", i.style.position = "fixed", i.style.bottom = `${O}px`, i.style.left = "0", i.style.marginLeft = "0", i.style.width = "100vw");
|
|
758
747
|
};
|
|
759
|
-
return x(),
|
|
760
|
-
|
|
761
|
-
const c = l.querySelector("#interscroller-top-band"), i = l.querySelector("#interscroller-top-band-wrapper"),
|
|
762
|
-
i ? i.remove() : c && c.remove(),
|
|
748
|
+
return x(), p.addEventListener("scroll", x, { passive: !0 }), p.visualViewport?.addEventListener("resize", x, { passive: !0 }), () => {
|
|
749
|
+
p.removeEventListener("scroll", x), p.visualViewport?.removeEventListener("resize", x);
|
|
750
|
+
const c = l.querySelector("#interscroller-top-band"), i = l.querySelector("#interscroller-top-band-wrapper"), d = l.querySelector("#interscroller-bottom-band");
|
|
751
|
+
i ? i.remove() : c && c.remove(), d && d.remove(), y ? s.setAttribute("style", y) : s.removeAttribute("style"), b ? m.setAttribute("style", b) : m.removeAttribute("style");
|
|
763
752
|
};
|
|
764
753
|
};
|
|
765
|
-
let
|
|
754
|
+
let R = () => {
|
|
766
755
|
};
|
|
767
|
-
function G({ adFormat: w = "", stickyOffset: n = 0, logoPosX:
|
|
768
|
-
typeof
|
|
756
|
+
function G({ adFormat: w = "", stickyOffset: n = 0, logoPosX: m = 0, logoHeight: p = 0, logoSmallHeight: l = 0, ...S } = {}) {
|
|
757
|
+
typeof R == "function" && R();
|
|
769
758
|
let s = () => {
|
|
770
759
|
};
|
|
771
|
-
return w === "fireplace" ? s = V(n) : w === "fireplace-collant" ? s = F(n) : w === "logomorph" ? s = X(
|
|
772
|
-
},
|
|
760
|
+
return w === "fireplace" ? s = V(n) : w === "fireplace-collant" ? s = F(n) : w === "logomorph" ? s = X(m, p, l) : w === "interscroller" ? s = j(S) : console.warn("[powered-ad-config] Unknown ad format:", w), R = typeof s == "function" ? s : () => {
|
|
761
|
+
}, R;
|
|
773
762
|
}
|
|
774
763
|
export {
|
|
775
764
|
G as default
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
(function(z,O){typeof exports=="object"&&typeof module<"u"?module.exports=O():typeof define=="function"&&define.amd?define(O):(z=typeof globalThis<"u"?globalThis:z||self,z.poweredAdConfig=O())})(this,(function(){"use strict";const z=w=>{const n=window.frameElement?window.frameElement:null;if(!n)return()=>{};const
|
|
1
|
+
(function(z,O){typeof exports=="object"&&typeof module<"u"?module.exports=O():typeof define=="function"&&define.amd?define(O):(z=typeof globalThis<"u"?globalThis:z||self,z.poweredAdConfig=O())})(this,(function(){"use strict";const z=w=>{const n=window.frameElement?window.frameElement:null;if(!n)return()=>{};const m=window.parent;if(!m||m===window)return()=>{};let p=null;try{p=m.document,m.location.href}catch{return()=>{}}const l={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:72,stickyMargin:{offset:72,isSticky:!0},zIndex:function(){const o=window.parent.document,f=(v,t)=>v.forEach(r=>t.forEach(([g,h])=>r.style[g]=h));o.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),o.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),o.querySelector("article")?.setAttribute("style","position:relative"),o.querySelector("#article")?.setAttribute("style","position:relative"),o.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),o.querySelector("#Index")?.setAttribute("style","position:relative"),o.querySelector(".show")?.setAttribute("style","position:relative"),o.querySelector("#adspot-desktop-banner-7-below")?.setAttribute("style","position:relative"),f(o.querySelectorAll(".column"),[["position","relative"]]),f(o.querySelectorAll(".advert"),[["position","relative"]]),f(o.querySelectorAll("blockquote"),[["zIndex","1"]]),o.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style","max-width:1190px;margin-top:-24px"),o.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),o.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none")}},S={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:32,isSticky:!0},zIndex:function(){const o=window.parent.document,f=(v,t)=>v.forEach(r=>t.forEach(([g,h])=>r.style[g]=h));o.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),o.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),o.querySelector("article")?.setAttribute("style","position:relative"),o.querySelector("#article")?.setAttribute("style","position:relative"),o.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),o.querySelector("#Index")?.setAttribute("style","position:relative"),o.querySelector(".show")?.setAttribute("style","position:relative"),f(o.querySelectorAll(".column"),[["position","relative"]]),f(o.querySelectorAll(".advert"),[["position","relative"]]),f(o.querySelectorAll("blockquote"),[["zIndex","1"]]),o.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style","position:relative"),o.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style","max-width:1190px;margin-top:24px"),o.querySelector('div[class*="MyContainer"]')?.setAttribute("style","max-width:1190px;margin-top:24px")}},s={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:8,isSticky:!0},zIndex:function(){const o=window.parent.document;if(o.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style","position:relative"),o.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style","position:relative"),o.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style","position:relative"),o.querySelector("small")?.setAttribute("style","position:inherit"),o.querySelector('div[id*="tablet"][id*="takeover"]')){let v=o.createElement("style");v.innerHTML=`
|
|
2
2
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
3
3
|
position: static;
|
|
4
4
|
}
|
|
5
|
-
`,o.head.appendChild(v)}}},
|
|
5
|
+
`,o.head.appendChild(v)}}},y={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:104,isSticky:!0},zIndex:function(){const o=window.parent.document,v=o.querySelector("footer").previousElementSibling;if(v&&v.tagName.toLowerCase()==="div"&&(v.style.position="relative"),o.querySelector('div[id*="tablet"][id*="takeover"]')){let r=o.createElement("style");r.innerHTML=`
|
|
6
6
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
7
7
|
position: static;
|
|
8
8
|
}
|
|
9
|
-
`,o.head.appendChild(r)}}},b={siteBackgroundColor:"#f7f7f7",fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:104,isSticky:!0},zIndex:function(){const o=window.parent.document,f=(t,r)=>t.forEach(
|
|
9
|
+
`,o.head.appendChild(r)}}},b={siteBackgroundColor:"#f7f7f7",fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:104,isSticky:!0},zIndex:function(){const o=window.parent.document,f=(t,r)=>t.forEach(g=>r.forEach(([h,e])=>g.style[h]=e));if(o.querySelector(".container--padded")?.setAttribute("style","position:relative"),f(o.querySelectorAll(".advert"),[["position","relative"]]),o.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),o.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),o.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),o.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none"),o.querySelector('div[id*="tablet"][id*="takeover"]')){let t=o.createElement("style");t.innerHTML=`
|
|
10
10
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
11
11
|
position: static;
|
|
12
12
|
}
|
|
13
|
-
`,o.head.appendChild(t)}}},A={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:16,isSticky:!0},zIndex:function(){const o=window.parent.document;o.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),o.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),o.querySelector(".content")?.setAttribute("style","padding-top:32px"),o.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),o.querySelector(".footer-ad")?.setAttribute("style","position:relative"),o.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);")}},
|
|
13
|
+
`,o.head.appendChild(t)}}},A={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:18,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:16,isSticky:!0},zIndex:function(){const o=window.parent.document;o.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),o.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),o.querySelector(".content")?.setAttribute("style","padding-top:32px"),o.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),o.querySelector(".footer-ad")?.setAttribute("style","position:relative"),o.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);")}},B=[{site:"https://www.nine.com.au/sport",config:y},{site:"https://www.nine.com.au/product-reviews",config:S},{site:"https://www.nine.com.au/property",config:S},{site:"https://www.nine.com.au/entertainment",config:S},{site:"https://staging.nine.com.au/sport",config:y},{site:"https://staging.nine.com.au/product-reviews",config:S},{site:"https://staging.nine.com.au/property",config:S},{site:"https://staging.nine.com.au/entertainment",config:S},{site:"https://render-web-nine-staging-v1.ffxblue.com.au",config:s},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:s},{site:"https://preview.nine.com.au/",config:s},{site:"https://www.nine",config:s},{site:"https://staging.nine",config:s},{site:"https://entertainment",config:l},{site:"https://celebrity",config:l},{site:"https://homes",config:l},{site:"https://travel",config:l},{site:"https://honey",config:l},{site:"https://style",config:l},{site:"https://coach",config:l},{site:"https://kitchen",config:l},{site:"https://finance",config:l},{site:"https://wwos",config:b},{site:"https://staging.wwos",config:y},{site:"https://www.9news",config:A},{site:"https://staging.9news",config:A},{site:"https://www.yourtv",config:l},{site:"https://staging.yourtv",config:l},{site:"https://9now",config:S},{site:"https://creative-preview-an.com",config:l}],C=()=>{const o=window.document.getElementById("nineContent");o&&(o.style.backgroundColor=x.siteBackgroundColor),H(),D(),m.addEventListener("scroll",T),c=setTimeout(T,50)},M=()=>{let o=null;return o=p.querySelector('div[id*="billboard"][id*="above"]'),o},E=()=>{const o=m.location.href;for(let f=0;f<B.length;f+=1)if(o.indexOf(B[f].site)>=0)return B[f].config},D=()=>{if(!n)return;const o=n.style;o.width="100%",o.height="1000px",o.position="fixed",o.left="50%",o.transform="translate(-50%, 0)"},H=()=>{if(!N)return;const o=N.style;N.className="",o.minHeight="250px",o.marginTop=x.adNodeMarginTop+"px",o.marginBottom=x.adNodeMarginBottom+"px",o.position="static",o.display="block",x.zIndex&&x.zIndex()},T=()=>{const o=m.scrollY,f=n.style,v=document.getElementById("siteContent")?document.getElementById("siteContent").style:{};o>=0&&o<=i?(f.transform=`translate(-50%, ${-o}px)`,v.transform="translateY(0)"):o>i&&o<=d?(f.transform=`translate(-50%, ${-i}px)`,v.transform=`translateY(${i-o}px)`):o>d&&(f.transform=`translate(-50%, ${-i}px)`,v.transform="translateY(-250px)")},N=M(),x=E();if(!x)return()=>{};let c=null;const i=-x.responsiveScroll+w,d=i+250;return C(),()=>{m.removeEventListener("scroll",T),c&&(clearTimeout(c),c=null)}},O=w=>{const n=window.frameElement?window.frameElement:null;if(!n)return()=>{};const m=window.parent;if(!m||m===window)return()=>{};let p=null;try{p=m.document,m.location.href}catch{return()=>{}}const l=document.getElementById("nineMasthead"),S=l?l.style:{};let s;const y={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:24,responsiveScroll:-124,xPosHalfpage:722,yPosHalfpage:72,stickyMargin:{offset:160,isSticky:!0},maskOffset:298,zIndex:function(){const e=window.parent.document,a=(u,q)=>u.forEach(k=>q.forEach(([I,L])=>k.style[I]=L));e.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),e.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),e.querySelector("article")?.setAttribute("style","position:relative"),e.querySelector("#article")?.setAttribute("style","position:relative"),e.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),e.querySelector("#Index")?.setAttribute("style","position:relative"),e.querySelector(".show")?.setAttribute("style","position:relative"),e.querySelector("#adspot-desktop-banner-7-below")?.setAttribute("style","position:relative"),a(e.querySelectorAll(".column"),[["position","relative"]]),a(e.querySelectorAll(".advert"),[["position","relative"]]),a(e.querySelectorAll("blockquote"),[["zIndex","1"]]),e.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),e.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none")}},b={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:695,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector('div[class*="video-index__MyContainer"]')?248:298,zIndex:function(){const e=window.parent.document,a=(u,q)=>u.forEach(k=>q.forEach(([I,L])=>k.style[I]=L));e.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),e.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),e.querySelector("article")?.setAttribute("style","position:relative"),e.querySelector("#article")?.setAttribute("style","position:relative"),e.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),e.querySelector("#Index")?.setAttribute("style","position:relative"),e.querySelector(".show")?.setAttribute("style","position:relative"),a(e.querySelectorAll(".column"),[["position","relative"]]),a(e.querySelectorAll(".advert"),[["position","relative"]]),a(e.querySelectorAll("blockquote"),[["zIndex","1"]]),e.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style","position:relative"),e.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style","max-width:1190px;margin-top:24px"),e.querySelector('div[class*="MyContainer"]')?.setAttribute("style","max-width:1190px;margin-top:24px")}},A={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:-13,responsiveScroll:-120,xPosHalfpage:722,yPosHalfpage:32,stickyMargin:{offset:166,isSticky:!0},maskOffset:304,zIndex:function(){const e=window.parent.document;if(e.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style","position:relative"),e.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style","position:relative"),e.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style","position:relative"),e.querySelector("small")?.setAttribute("style","position:inherit"),e.querySelector('div[id*="tablet"][id*="takeover"]')){let u=e.createElement("style");u.innerHTML=`
|
|
14
14
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
15
15
|
position: static;
|
|
16
16
|
}
|
|
17
|
-
`,e.head.appendChild(u)}}},
|
|
17
|
+
`,e.head.appendChild(u)}}},B={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-24,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:160,isSticky:!0},maskOffset:312,zIndex:function(){const e=window.parent.document,u=e.querySelector("footer").previousElementSibling;if(u&&u.tagName.toLowerCase()==="div"&&(u.style.position="relative"),e.querySelector('div[id*="tablet"][id*="takeover"]')){let k=e.createElement("style");k.innerHTML=`
|
|
18
18
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
19
19
|
position: static;
|
|
20
20
|
}
|
|
21
|
-
`,e.head.appendChild(k)}}},
|
|
21
|
+
`,e.head.appendChild(k)}}},C={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-25,adNodeMarginBottom:0,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:32,stickyMargin:{offset:175,isSticky:!0},maskOffset:274,zIndex:function(){const e=window.parent.document,a=(q,k)=>q.forEach(I=>k.forEach(([L,$])=>I.style[L]=$));if(e.querySelector(".container--padded")?.setAttribute("style","position:relative"),a(e.querySelectorAll(".advert"),[["position","relative"]]),e.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),e.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),e.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),e.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none"),e.querySelector(".score-strip")?.setAttribute("style","display:none"),e.querySelector(".feed-header__breadcrumbs")?.setAttribute("style","display:none"),e.querySelector(".layout.container")?.setAttribute("style","padding:0"),e.querySelector(".empty-div")?.setAttribute("style","display:none"),e.querySelector('div[id*="tablet"][id*="takeover"]')){let q=e.createElement("style");q.innerHTML=`
|
|
22
22
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
23
23
|
position: static;
|
|
24
24
|
}
|
|
25
|
-
`,e.head.appendChild(q)}}},C={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector('div[class*="VideoIndexComponent"]')?324:292,zIndex:function(){const e=window.parent.document;e.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),e.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),e.querySelector(".content")?.setAttribute("style","padding-top:32px"),e.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),e.querySelector(".footer-ad")?.setAttribute("style","position:relative"),e.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);");const a=e.querySelector('[class*="VideoIndexComponent"]');a&&(e.querySelector(".breadcrumbs")?.setAttribute("style","display:none"),a.style.maxWidth="1190px",a.style.margin="auto",a.style.position="relative")}},B=[{site:"https://www.nine.com.au/sport",config:M},{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:M},{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:A},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:A},{site:"https://preview.nine.com.au/",config:A},{site:"https://www.nine",config:A},{site:"https://staging.nine",config:A},{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:E},{site:"https://staging.wwos",config:M},{site:"https://www.9news",config:C},{site:"https://staging.9news",config:C},{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}],H=()=>{const e=window.document.getElementById("nineContent");e&&(e.style.backgroundColor=t.siteBackgroundColor),l&&(S.setProperty("--masthead-height","250px"),S.height="var(--masthead-height)"),c(),x(),T(),i(),y.addEventListener("scroll",f,{passive:!0}),r=setTimeout(f,50)},D=()=>{let e=null;return e=d.querySelector('div[id*="billboard"][id*="above"]'),e},T=()=>{let e=null;if(!window.parent)return e;if(e=d.querySelector('div[id*="halfpage"][id*="above"]'),!e)return;let a=e;for(let u=0;u<3;u++)if(a=a.parentNode,a&&getComputedStyle(a).position==="sticky"){a.setAttribute("style",`top: ${t.stickyMargin.offset}px`);break}},N=()=>{const e=y.location.href;for(let a=0;a<B.length;a+=1)if(e.indexOf(B[a].site)>=0)return B[a].config},x=()=>{if(!n)return;const e=n.style;e.width="100%",e.height="1000px",e.position="fixed",e.left="50%",e.setProperty("--transform-y","0px"),e.transform="translate3d(-50%, var(--transform-y), 0)"},c=()=>{if(!v)return;const e=v.style;v.className="",e.minHeight="250px",e.marginTop=t.adNodeMarginTop+"px",e.marginBottom=t.adNodeMarginBottom+"px",e.position="static",e.display="block",t.zIndex&&t.zIndex()},i=()=>{s=d.querySelector('div[data-contentunit-id="stan"]')?.parentNode||d.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode||d.querySelector('div[class*="__MyContainer"]')||d.querySelector('div[class*="__ArticleContainer"]')||d.querySelector('div[class*="__VideoIndexComponent"]')||d.querySelector("div.container.layout")||d.querySelector("main.container.layout"),s&&(s.style.willChange="clip-path",s.style.transition="none",s.style.webkitBackfaceVisibility="hidden",s.style.backfaceVisibility="hidden",s.style.transform="translate3d(0,0,0)",s.style.backgroundColor=t.siteBackgroundColor,s.style.setProperty("--mask-inset","0px"),s.style.clipPath="inset(var(--mask-inset, 0px) 0 0 0)")};let p=0,o=0;const f=()=>{const e=y.scrollY,a=e>p,u=e>h?e-t.maskOffset:0,q=Math.abs(u-o);if(s)if(a&&u>o)if(q>100){const k=Math.max(0,u-100);s.style.transition="none",s.style.setProperty("--mask-inset",`${k}px`),s.offsetHeight,s.style.transition="clip-path 0.3s ease-out",s.style.setProperty("--mask-inset",`${u}px`)}else s.style.transition="clip-path 0.3s ease-out",s.style.setProperty("--mask-inset",`${u}px`);else s.style.transition="none",s.style.setProperty("--mask-inset",`${u}px`);p=e,o=u,e>h?(n.style.setProperty("--transform-y",`${-m}px`),S.setProperty("--masthead-height","100px"),window.CollantOn||window.goCollant()):e>m&&e<=h?(n.style.setProperty("--transform-y",`${-m}px`),S.setProperty("--masthead-height",`${250+m-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=m&&(n.style.setProperty("--transform-y",`${-e}px`),S.setProperty("--masthead-height","250px"),window.CollantOn&&window.goBillboard())},v=D(),t=N();if(!t)return()=>{};let r=null;const m=-t.responsiveScroll+w,h=m+150;return H(),()=>{y.removeEventListener("scroll",f),r&&(clearTimeout(r),r=null)}},X=(w,n,y)=>{const d=window.frameElement?window.frameElement:null;if(!d)return()=>{};const l=window.parent;if(!l||l===window)return()=>{};let S=null;try{S=l.document,l.location.href}catch{return()=>{}}const s={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"250px",logoSmallTransform:"translateX(0px)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(m,h)=>m.forEach(e=>h.forEach(([a,u])=>e.style[a]=u));t.querySelector(".container--padded")?.setAttribute("style","position:relative"),r(t.querySelectorAll(".advert"),[["position","relative"]]),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},g={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(m,h)=>m.forEach(e=>h.forEach(([a,u])=>e.style[a]=u));t.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector("article")?.setAttribute("style","position:relative"),t.querySelector("#article")?.setAttribute("style","position:relative"),t.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),t.querySelector("#Index")?.setAttribute("style","position:relative"),t.querySelector(".show")?.setAttribute("style","position:relative"),r(t.querySelectorAll(".column"),[["position","relative"]]),r(t.querySelectorAll(".advert"),[["position","relative"]]),r(t.querySelectorAll("blockquote"),[["zIndex","1"]]),t.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style","max-width:1190px;margin-top:-24px"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},b={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(m,h)=>m.forEach(e=>h.forEach(([a,u])=>e.style[a]=u));t.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector("article")?.setAttribute("style","position:relative"),t.querySelector("#article")?.setAttribute("style","position:relative"),t.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),t.querySelector("#Index")?.setAttribute("style","position:relative"),t.querySelector(".show")?.setAttribute("style","position:relative"),r(t.querySelectorAll(".column"),[["position","relative"]]),r(t.querySelectorAll(".advert"),[["position","relative"]]),r(t.querySelectorAll("blockquote"),[["zIndex","1"]]),t.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style","position:relative"),t.querySelector('section[class^="WatchNow__Container"]')?.setAttribute("style","margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);"),t.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style","max-width:1190px;margin-top:0px"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},A={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(m,h)=>m.forEach(e=>h.forEach(([a,u])=>e.style[a]=u));t.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style","position:relative"),t.querySelector(".container--ads")?.setAttribute("style","min-height:0"),t.getElementById("mastheadAnchorToggle")?.setAttribute("style","display:none"),r(t.querySelectorAll(".advert"),[["position","relative"]]),r(t.querySelectorAll("iframe"),[["position","relative"]]),t.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style","position:relative"),t.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style","position:relative"),r(t.querySelectorAll("small"),[["position","relative"]]),t.querySelector("small")?.setAttribute("style","position:inherit"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},M={siteBackgroundColor:"#ffffff",logoTop:"-148px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(m,h)=>m.forEach(e=>h.forEach(([a,u])=>e.style[a]=u));t.querySelector(".container--padded")?.setAttribute("style","position:relative"),r(t.querySelectorAll(".advert"),[["position","relative"]]),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},E={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"invert(1)",zIndex:function(){const t=window.parent.document;t.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),t.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),t.querySelector(".content")?.setAttribute("style","padding-top:32px"),t.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),t.querySelector(".footer-ad")?.setAttribute("style","position:relative"),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},C=[{site:"https://www.nine.com.au/sport",config:s},{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:s},{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:A},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:A},{site:"https://preview.nine.com.au/",config:A},{site:"https://www.nine",config:A},{site:"https://staging.nine",config:A},{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:M},{site:"https://staging.wwos",config:M},{site:"https://www.9news",config:E},{site:"https://staging.9news",config:E},{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}],B=()=>{const t=window.document.getElementById("logo-small");t&&(t.style.left=p.logoSmallLeft,t.style.transform=p.logoSmallTransform,t.style.filter=p.logoSmallFilter),N(),T(),l.addEventListener("scroll",c),o=setTimeout(c,50)},H=()=>{let t=null;return t=S.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'),t},D=()=>{const t=l.location.href;for(let r=0;r<C.length;r+=1)if(t.indexOf(C[r].site)>=0)return C[r].config},T=()=>{if(!d)return;const t=d.style;t.width="100%",t.height=`${n}px`,t.position="relative"},N=()=>{if(!i)return;const t=i.style;t.maxHeight=`${n}px`,t.minHeight=`${n}px`,t.marginTop="0px",t.marginBottom="0px",t.position="absolute",t.width="1900px",t.top=p.logoTop,t.left=p.logoLeft,t.transform=p.logoTransform,t.zIndex="10000",t.pointerEvents="none",p.zIndex&&p.zIndex()},x=t=>{if(!i)return;const r=i.style;t==="big"&&!window.bigActive?(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position="absolute",r.top=p.logoTop,r.zIndex="10000",window.loadBig()):t==="small"&&!window.smallActive&&(r.maxHeight=`${y}px`,r.minHeight=`${y}px`,r.position="fixed",r.top="0px",r.zIndex="100000",window.loadSmall())},c=()=>{const t=l.scrollY;d.style,t>=0&&t<=f?x("big"):t>f&&(t>v?x("small"):x("big"),v=t<=0?0:t)},i=H(),p=D();if(!p)return()=>{};let o=null;const f=w;let v=0;return B(),()=>{l.removeEventListener("scroll",c),o&&(clearTimeout(o),o=null)}},Y=((w,n=50)=>`linear(${Array.from({length:n+1},(d,l)=>w(l/n)).map(d=>+d.toFixed(4)).join(", ")})`)(w=>{if(w===0||w===1)return w;const n=2*Math.PI/3;return Math.pow(2,-10*w)*Math.sin((w*10-.75)*n)+1}),U=(w={})=>{const n={adScrollHeight:"300vh",revealMode:"clip",bandHeight:24,bandOverhangHeight:20,bandOverhangBg:"#fff",bandBg:"#222",bandColor:"#fff",bandFontSize:"10px",bandFontFamily:"Arial, Helvetica, sans-serif",bandLetterSpacing:"1px",labelTop:"Advertisement6",labelBottomResume:"Scroll to continue",labelBottomMid:"Keep scrolling",labelBottomLate:"Almost there",labelBottomNow:"Content now ↓",progressBarColor:"rgba(255,255,255,0.35)",zIndexTop:9,zIndexBottom:8,bottomBandShowAt:100,bottomBandHideAt:60,snapPx:50,snapOverlap:2,stretchOverlap:4,snapDuration:.9,snapEase:Y,onEnter:null,onExit:null,onProgress:null,thresholds:[],...w},y=window.frameElement?window.frameElement:null;if(!y)return()=>{};const d=window.parent;if(!d||d===window)return()=>{};let l=null;try{l=d.document,d.location.href}catch{return()=>{}}const s=(()=>{const c=l.querySelector("#adspot-mobile-mobile-3-above");if(c)return c;let i=y.parentElement;for(;i&&i!==l.body;){if(i.id&&i.id.includes("adspot"))return i;i=i.parentElement}return y.parentElement})();if(!s)return()=>{};const g=s.getAttribute("style"),b=y.getAttribute("style"),A={width:"100vw",marginLeft:"calc(50% - 50vw)",height:n.bandHeight+"px",backgroundColor:n.bandBg,color:n.bandColor,fontSize:n.bandFontSize,fontFamily:n.bandFontFamily,textTransform:"uppercase",letterSpacing:n.bandLetterSpacing,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"};(()=>{const c=s.style;c.height=n.adScrollHeight,c.position="relative",c.clipPath=`inset(-${n.bandHeight}px 0 0 0)`,c.overflow="visible",c.width="100vw",c.maxWidth="100vw",c.marginLeft="calc(50% - 50vw)",c.marginRight="0",c.marginTop="0",c.marginBottom="0",c.padding="0",c.className="";const i=y.style;i.position="fixed",i.top="0",i.left="0",i.width="100vw",i.height="100vh",i.maxWidth="100vw",i.margin="0",i.padding="0",i.border="none",i.zIndex="1";const p=s.previousElementSibling,o=()=>{const h=["transparent","rgba(0, 0, 0, 0)",""];let e=p||s.parentElement;for(;e&&e!==l.documentElement;){const a=d.getComputedStyle(e).backgroundColor;if(!h.includes(a))return a;e=e.parentElement}return n.bandOverhangBg},f=l.createElement("div");f.id="interscroller-top-band-wrapper",Object.assign(f.style,{position:"sticky",bottom:"0",width:"100vw",marginLeft:"calc(50% - 50vw)",zIndex:n.zIndexTop,pointerEvents:"none",...n.revealMode==="slide"&&{marginBottom:`-${n.bandHeight}px`}});const v=l.createElement("div");v.id="interscroller-top-band-overhang",Object.assign(v.style,{width:"100%",height:n.bandOverhangHeight+"px",backgroundColor:o(),pointerEvents:"none"});const t=l.createElement("div");t.id="interscroller-top-band",t.textContent=n.labelTop,Object.assign(t.style,A,{position:"relative",width:"100%",marginLeft:"0",transformOrigin:"top center"}),f.appendChild(v),f.appendChild(t),p?p.appendChild(f):s.parentElement.insertBefore(f,s);const r=l.createElement("div");r.id="interscroller-bottom-band",Object.assign(r.style,A,{position:"fixed",bottom:"0",left:"0",zIndex:n.zIndexBottom,display:"flex",overflow:"hidden",transform:"translateY(100%)",transition:"none"});const m=l.createElement("span");if(m.id="interscroller-bottom-label",m.textContent=n.labelBottomResume,m.style.cssText="position:relative;z-index:1;pointer-events:none;",r.appendChild(m),n.progressBarColor){const h=l.createElement("span");h.id="interscroller-bottom-progress",h.style.cssText=["position:absolute","inset:0","width:0%",`background:${n.progressBarColor}`,"transition:none","z-index:0","pointer-events:none"].join(";"),r.appendChild(h)}s.after(r)})();const E=n.bandHeight,C=n.snapPx;let B=!1,H=!1,D=!1,T=!1;const N=(n.thresholds||[]).map(()=>!1),x=()=>{const c=l.querySelector("#interscroller-top-band"),i=l.querySelector("#interscroller-bottom-band");if(!i)return;const p=s.getBoundingClientRect(),o=d.innerHeight,f=p.top<=o,v=p.bottom<=o-E,t=T?p.top<=o-n.bottomBandHideAt:p.top<=o-n.bottomBandShowAt;n.revealMode==="slide"&&(y.style.top=f&&p.top>0?`${p.top}px`:"0");const r=s.offsetHeight,m=Math.min(1,Math.max(0,(o-p.top)/(r+o))),h=Math.min(1,Math.max(0,(o-p.top)/(r+E))),e=Math.min(1,Math.max(0,(o-p.top)/r)),a=Math.min(p.bottom,o)-Math.max(p.top-E,0),u=Math.min(1,Math.max(0,a/o)),q=Math.max(0,Math.round(p.bottom-o));!H&&f&&n.onEnter&&n.onEnter(),!D&&v&&n.onExit&&n.onExit(),H=f,D=v,T=t,n.onProgress&&n.onProgress({scrollProgress:m,adExposure:e,viewportCoverage:u,pxRemaining:q}),(n.thresholds||[]).forEach((P,_)=>{const V=N[_],F=m>=P.at;!V&&F?(N[_]=!0,P.onEnter&&P.onEnter(m)):V&&!F&&(N[_]=!1,P.onLeave&&P.onLeave(m))});const k=o-(n.revealMode==="slide"?E:0);if(c&&p.top<=k+n.stretchOverlap&&!v){const P=k-p.top;if(!B&&P<=C-n.snapOverlap){const _=1+Math.max(0,P+n.stretchOverlap)/E;c.style.transition="none",c.style.transform=`scaleY(${_})`}else!B&&P>C-n.snapOverlap&&(B=!0,c.style.transition=`transform ${n.snapDuration}s ${n.snapEase}`,c.style.transform="scaleY(1)")}else c&&p.top>k+n.stretchOverlap&&(B=!1,c.style.transition="none",c.style.transform="scaleY(1)");const I=l.querySelector("#interscroller-bottom-label"),L=l.querySelector("#interscroller-bottom-progress"),R=d.visualViewport?Math.round(d.innerHeight-(d.visualViewport.offsetTop+d.visualViewport.height)):0;v?(i.style.transition="none",i.style.transform="none",i.style.position="sticky",i.style.top="0",i.style.bottom="",i.style.left="",i.style.marginLeft="calc(50% - 50vw)",i.style.width="100vw",I&&(I.textContent=n.labelBottomNow),L&&(L.style.width="100%")):t?(I&&(I.textContent=q>0?h<.2?n.labelBottomResume:h<.75?n.labelBottomMid:n.labelBottomLate:n.labelBottomNow),L&&(L.style.width=`${Math.round(h*100)}%`),i.style.transition="transform 0.3s ease",i.style.transform="translateY(0)",i.style.position="fixed",i.style.bottom=`${R}px`,i.style.top="",i.style.left="0",i.style.marginLeft="0",i.style.width="100vw"):(i.style.transition="transform 0.3s ease",i.style.transform="translateY(100%)",i.style.position="fixed",i.style.bottom=`${R}px`,i.style.left="0",i.style.marginLeft="0",i.style.width="100vw")};return x(),d.addEventListener("scroll",x,{passive:!0}),d.visualViewport?.addEventListener("resize",x,{passive:!0}),()=>{d.removeEventListener("scroll",x),d.visualViewport?.removeEventListener("resize",x);const c=l.querySelector("#interscroller-top-band"),i=l.querySelector("#interscroller-top-band-wrapper"),p=l.querySelector("#interscroller-bottom-band");i?i.remove():c&&c.remove(),p&&p.remove(),g?s.setAttribute("style",g):s.removeAttribute("style"),b?y.setAttribute("style",b):y.removeAttribute("style")}};let $=()=>{};function W({adFormat:w="",stickyOffset:n=0,logoPosX:y=0,logoHeight:d=0,logoSmallHeight:l=0,...S}={}){typeof $=="function"&&$();let s=()=>{};return w==="fireplace"?s=z(n):w==="fireplace-collant"?s=O(n):w==="logomorph"?s=X(y,d,l):w==="interscroller"?s=U(S):console.warn("[powered-ad-config] Unknown ad format:",w),$=typeof s=="function"?s:()=>{},$}return W}));
|
|
25
|
+
`,e.head.appendChild(q)}}},M={siteBackgroundColor:"#ffffff",fireplaceLeftMargin:0,adNodeMarginTop:-32,adNodeMarginBottom:8,responsiveScroll:-124,xPosHalfpage:720,yPosHalfpage:16,stickyMargin:{offset:160,isSticky:!0},maskOffset:window.parent.document.querySelector('div[class*="VideoIndexComponent"]')?324:292,zIndex:function(){const e=window.parent.document;e.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),e.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),e.querySelector(".content")?.setAttribute("style","padding-top:32px"),e.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),e.querySelector(".footer-ad")?.setAttribute("style","position:relative"),e.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);");const a=e.querySelector('[class*="VideoIndexComponent"]');a&&(e.querySelector(".breadcrumbs")?.setAttribute("style","display:none"),a.style.maxWidth="1190px",a.style.margin="auto",a.style.position="relative")}},E=[{site:"https://www.nine.com.au/sport",config:B},{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:B},{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:A},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:A},{site:"https://preview.nine.com.au/",config:A},{site:"https://www.nine",config:A},{site:"https://staging.nine",config:A},{site:"https://entertainment",config:y},{site:"https://celebrity",config:y},{site:"https://homes",config:y},{site:"https://travel",config:y},{site:"https://honey",config:y},{site:"https://style",config:y},{site:"https://coach",config:y},{site:"https://kitchen",config:y},{site:"https://finance",config:y},{site:"https://wwos",config:C},{site:"https://staging.wwos",config:B},{site:"https://www.9news",config:M},{site:"https://staging.9news",config:M},{site:"https://www.yourtv",config:y},{site:"https://staging.yourtv",config:y},{site:"https://9now",config:b},{site:"https://creative-preview-an.com",config:y}],D=()=>{const e=window.document.getElementById("nineContent");e&&(e.style.backgroundColor=t.siteBackgroundColor),l&&(S.setProperty("--masthead-height","250px"),S.height="var(--masthead-height)"),c(),x(),T(),i(),m.addEventListener("scroll",f,{passive:!0}),r=setTimeout(f,50)},H=()=>{let e=null;return e=p.querySelector('div[id*="billboard"][id*="above"]'),e},T=()=>{let e=null;if(!window.parent)return e;if(e=p.querySelector('div[id*="halfpage"][id*="above"]'),!e)return;let a=e;for(let u=0;u<3;u++)if(a=a.parentNode,a&&getComputedStyle(a).position==="sticky"){a.setAttribute("style",`top: ${t.stickyMargin.offset}px`);break}},N=()=>{const e=m.location.href;for(let a=0;a<E.length;a+=1)if(e.indexOf(E[a].site)>=0)return E[a].config},x=()=>{if(!n)return;const e=n.style;e.width="100%",e.height="1000px",e.position="fixed",e.left="50%",e.setProperty("--transform-y","0px"),e.transform="translate3d(-50%, var(--transform-y), 0)"},c=()=>{if(!v)return;const e=v.style;v.className="",e.minHeight="250px",e.marginTop=t.adNodeMarginTop+"px",e.marginBottom=t.adNodeMarginBottom+"px",e.position="static",e.display="block",t.zIndex&&t.zIndex()},i=()=>{s=p.querySelector('div[data-contentunit-id="stan"]')?.parentNode||p.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode||p.querySelector('div[class*="__MyContainer"]')||p.querySelector('div[class*="__ArticleContainer"]')||p.querySelector('div[class*="__VideoIndexComponent"]')||p.querySelector("div.container.layout")||p.querySelector("main.container.layout"),s&&(s.style.willChange="clip-path",s.style.transition="none",s.style.webkitBackfaceVisibility="hidden",s.style.backfaceVisibility="hidden",s.style.transform="translate3d(0,0,0)",s.style.backgroundColor=t.siteBackgroundColor,s.style.setProperty("--mask-inset","0px"),s.style.clipPath="inset(var(--mask-inset, 0px) 0 0 0)")};let d=0,o=0;const f=()=>{const e=m.scrollY,a=e>d,u=e>h?e-t.maskOffset:0,q=Math.abs(u-o);if(s)if(a&&u>o)if(q>100){const k=Math.max(0,u-100);s.style.transition="none",s.style.setProperty("--mask-inset",`${k}px`),s.offsetHeight,s.style.transition="clip-path 0.3s ease-out",s.style.setProperty("--mask-inset",`${u}px`)}else s.style.transition="clip-path 0.3s ease-out",s.style.setProperty("--mask-inset",`${u}px`);else s.style.transition="none",s.style.setProperty("--mask-inset",`${u}px`);d=e,o=u,e>h?(n.style.setProperty("--transform-y",`${-g}px`),S.setProperty("--masthead-height","100px"),window.CollantOn||window.goCollant()):e>g&&e<=h?(n.style.setProperty("--transform-y",`${-g}px`),S.setProperty("--masthead-height",`${250+g-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=g&&(n.style.setProperty("--transform-y",`${-e}px`),S.setProperty("--masthead-height","250px"),window.CollantOn&&window.goBillboard())},v=H(),t=N();if(!t)return()=>{};let r=null;const g=-t.responsiveScroll+w,h=g+150;return D(),()=>{m.removeEventListener("scroll",f),r&&(clearTimeout(r),r=null)}},X=(w,n,m)=>{const p=window.frameElement?window.frameElement:null;if(!p)return()=>{};const l=window.parent;if(!l||l===window)return()=>{};let S=null;try{S=l.document,l.location.href}catch{return()=>{}}const s={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"250px",logoSmallTransform:"translateX(0px)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(g,h)=>g.forEach(e=>h.forEach(([a,u])=>e.style[a]=u));t.querySelector(".container--padded")?.setAttribute("style","position:relative"),r(t.querySelectorAll(".advert"),[["position","relative"]]),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},y={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(g,h)=>g.forEach(e=>h.forEach(([a,u])=>e.style[a]=u));t.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector("article")?.setAttribute("style","position:relative"),t.querySelector("#article")?.setAttribute("style","position:relative"),t.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),t.querySelector("#Index")?.setAttribute("style","position:relative"),t.querySelector(".show")?.setAttribute("style","position:relative"),r(t.querySelectorAll(".column"),[["position","relative"]]),r(t.querySelectorAll(".advert"),[["position","relative"]]),r(t.querySelectorAll("blockquote"),[["zIndex","1"]]),t.querySelector('div[class*="article__MyContainer"]')?.setAttribute("style","max-width:1190px;margin-top:-24px"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},b={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(g,h)=>g.forEach(e=>h.forEach(([a,u])=>e.style[a]=u));t.querySelector(".nk-demographics")?.setAttribute("style","max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector(".nk-footer")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector("article")?.setAttribute("style","position:relative"),t.querySelector("#article")?.setAttribute("style","position:relative"),t.querySelector("#VideoIndex")?.setAttribute("style","position:relative"),t.querySelector("#Index")?.setAttribute("style","position:relative"),t.querySelector(".show")?.setAttribute("style","position:relative"),r(t.querySelectorAll(".column"),[["position","relative"]]),r(t.querySelectorAll(".advert"),[["position","relative"]]),r(t.querySelectorAll("blockquote"),[["zIndex","1"]]),t.querySelector('div[class^="component__StrapContainer"]')?.setAttribute("style","position:relative"),t.querySelector('section[class^="WatchNow__Container"]')?.setAttribute("style","margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);"),t.querySelector('div[class*="ArticleContainer"]')?.setAttribute("style","max-width:1190px;margin-top:0px"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},A={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(g,h)=>g.forEach(e=>h.forEach(([a,u])=>e.style[a]=u));t.querySelector('section[data-section="marketing-banner"]')?.setAttribute("style","position:relative"),t.querySelector(".container--ads")?.setAttribute("style","min-height:0"),t.getElementById("mastheadAnchorToggle")?.setAttribute("style","display:none"),r(t.querySelectorAll(".advert"),[["position","relative"]]),r(t.querySelectorAll("iframe"),[["position","relative"]]),t.querySelector('div[data-testid="live-tv"]')?.parentNode?.setAttribute("style","position:relative"),t.querySelector('div[data-contentunit-id="stan"]')?.parentNode?.setAttribute("style","position:relative"),r(t.querySelectorAll("small"),[["position","relative"]]),t.querySelector("small")?.setAttribute("style","position:inherit"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},B={siteBackgroundColor:"#ffffff",logoTop:"-148px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(g,h)=>g.forEach(e=>h.forEach(([a,u])=>e.style[a]=u));t.querySelector(".container--padded")?.setAttribute("style","position:relative"),r(t.querySelectorAll(".advert"),[["position","relative"]]),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},C={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"invert(1)",zIndex:function(){const t=window.parent.document;t.querySelector(".header-wrapper")?.setAttribute("style","height:124px"),t.querySelector(".weather-widget-wrapper")?.setAttribute("style","bottom:0px"),t.querySelector(".content")?.setAttribute("style","padding-top:32px"),t.querySelector(".layout")?.setAttribute("style","position:relative;background-color:transparent;"),t.querySelector(".footer-ad")?.setAttribute("style","position:relative"),t.querySelector(".footer-netkit")?.setAttribute("style","position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"),t.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none"),t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style","display:none")}},M=[{site:"https://www.nine.com.au/sport",config:s},{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:s},{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:A},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:A},{site:"https://preview.nine.com.au/",config:A},{site:"https://www.nine",config:A},{site:"https://staging.nine",config:A},{site:"https://entertainment",config:y},{site:"https://celebrity",config:y},{site:"https://homes",config:y},{site:"https://travel",config:y},{site:"https://honey",config:y},{site:"https://style",config:y},{site:"https://coach",config:y},{site:"https://kitchen",config:y},{site:"https://finance",config:y},{site:"https://wwos",config:B},{site:"https://staging.wwos",config:B},{site:"https://www.9news",config:C},{site:"https://staging.9news",config:C},{site:"https://www.yourtv",config:y},{site:"https://staging.yourtv",config:y},{site:"https://9now",config:b},{site:"https://creative-preview-an.com",config:y}],E=()=>{const t=window.document.getElementById("logo-small");t&&(t.style.left=d.logoSmallLeft,t.style.transform=d.logoSmallTransform,t.style.filter=d.logoSmallFilter),N(),T(),l.addEventListener("scroll",c),o=setTimeout(c,50)},D=()=>{let t=null;return t=S.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'),t},H=()=>{const t=l.location.href;for(let r=0;r<M.length;r+=1)if(t.indexOf(M[r].site)>=0)return M[r].config},T=()=>{if(!p)return;const t=p.style;t.width="100%",t.height=`${n}px`,t.position="relative"},N=()=>{if(!i)return;const t=i.style;t.maxHeight=`${n}px`,t.minHeight=`${n}px`,t.marginTop="0px",t.marginBottom="0px",t.position="absolute",t.width="1900px",t.top=d.logoTop,t.left=d.logoLeft,t.transform=d.logoTransform,t.zIndex="10000",t.pointerEvents="none",d.zIndex&&d.zIndex()},x=t=>{if(!i)return;const r=i.style;t==="big"&&!window.bigActive?(r.maxHeight=`${n}px`,r.minHeight=`${n}px`,r.position="absolute",r.top=d.logoTop,r.zIndex="10000",window.loadBig()):t==="small"&&!window.smallActive&&(r.maxHeight=`${m}px`,r.minHeight=`${m}px`,r.position="fixed",r.top="0px",r.zIndex="100000",window.loadSmall())},c=()=>{const t=l.scrollY;p.style,t>=0&&t<=f?x("big"):t>f&&(t>v?x("small"):x("big"),v=t<=0?0:t)},i=D(),d=H();if(!d)return()=>{};let o=null;const f=w;let v=0;return E(),()=>{l.removeEventListener("scroll",c),o&&(clearTimeout(o),o=null)}},Y=((w,n=50)=>`linear(${Array.from({length:n+1},(p,l)=>w(l/n)).map(p=>+p.toFixed(4)).join(", ")})`)(w=>{if(w===0||w===1)return w;const n=2*Math.PI/3;return Math.pow(2,-10*w)*Math.sin((w*10-.75)*n)+1}),U=(w={})=>{const n={adScrollHeight:"300vh",bandHeight:24,bandOverhangHeight:20,bandOverhangBg:"#fff",bandBg:"#222",bandColor:"#fff",bandFontSize:"10px",bandFontFamily:"Arial, Helvetica, sans-serif",bandLetterSpacing:"1px",labelTop:"Advertisement9",labelBottomResume:"Scroll to continue",labelBottomMid:"Keep scrolling",labelBottomLate:"Almost there",labelBottomNow:"Content now ↓",progressBarColor:"rgba(255,255,255,0.35)",zIndexTop:9,zIndexBottom:8,bottomBandShowAt:400,bottomBandHideAt:300,snapPx:50,snapOverlap:2,stretchOverlap:4,snapDuration:.9,snapEase:Y,onEnter:null,onExit:null,onProgress:null,thresholds:[],...w},m=window.frameElement?window.frameElement:null;if(!m)return()=>{};const p=window.parent;if(!p||p===window)return()=>{};let l=null;try{l=p.document,p.location.href}catch{return()=>{}}const s=(()=>{const c=l.querySelector("#adspot-mobile-mobile-3-above");if(c)return c;let i=m.parentElement;for(;i&&i!==l.body;){if(i.id&&i.id.includes("adspot"))return i;i=i.parentElement}return m.parentElement})();if(!s)return()=>{};const y=s.getAttribute("style"),b=m.getAttribute("style"),A={width:"100vw",marginLeft:"calc(50% - 50vw)",height:n.bandHeight+"px",backgroundColor:n.bandBg,color:n.bandColor,fontSize:n.bandFontSize,fontFamily:n.bandFontFamily,textTransform:"uppercase",letterSpacing:n.bandLetterSpacing,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"};(()=>{const c=s.style;c.height=n.adScrollHeight,c.position="relative",c.clipPath=`inset(-${n.bandHeight}px 0 0 0)`,c.overflow="visible",c.width="100vw",c.maxWidth="100vw",c.marginLeft="calc(50% - 50vw)",c.marginRight="0",c.marginTop="0",c.marginBottom="0",c.padding="0",c.className="";const i=m.style;i.position="fixed",i.top="0",i.left="0",i.width="100vw",i.height="100vh",i.maxWidth="100vw",i.margin="0",i.padding="0",i.border="none",i.zIndex="1";const d=s.previousElementSibling,o=()=>{const h=["transparent","rgba(0, 0, 0, 0)",""];let e=d||s.parentElement;for(;e&&e!==l.documentElement;){const a=p.getComputedStyle(e).backgroundColor;if(!h.includes(a))return a;e=e.parentElement}return n.bandOverhangBg},f=l.createElement("div");f.id="interscroller-top-band-wrapper",Object.assign(f.style,{position:"sticky",bottom:"0",width:"100vw",marginLeft:"calc(50% - 50vw)",zIndex:n.zIndexTop,pointerEvents:"none"});const v=l.createElement("div");v.id="interscroller-top-band-overhang",Object.assign(v.style,{width:"100%",height:n.bandOverhangHeight+"px",backgroundColor:o(),pointerEvents:"none"});const t=l.createElement("div");t.id="interscroller-top-band",t.textContent=n.labelTop,Object.assign(t.style,A,{position:"relative",width:"100%",marginLeft:"0",transformOrigin:"top center"}),f.appendChild(v),f.appendChild(t),d?d.appendChild(f):s.parentElement.insertBefore(f,s);const r=l.createElement("div");r.id="interscroller-bottom-band",Object.assign(r.style,A,{position:"fixed",bottom:"0",left:"0",zIndex:n.zIndexBottom,display:"flex",overflow:"hidden",transform:"translateY(100%)",transition:"none"});const g=l.createElement("span");if(g.id="interscroller-bottom-label",g.textContent=n.labelBottomResume,g.style.cssText="position:relative;z-index:1;pointer-events:none;",r.appendChild(g),n.progressBarColor){const h=l.createElement("span");h.id="interscroller-bottom-progress",h.style.cssText=["position:absolute","inset:0","width:0%",`background:${n.progressBarColor}`,"transition:none","z-index:0","pointer-events:none"].join(";"),r.appendChild(h)}s.after(r)})();const C=n.bandHeight,M=n.snapPx;let E=!1,D=!1,H=!1,T=!1;const N=(n.thresholds||[]).map(()=>!1),x=()=>{const c=l.querySelector("#interscroller-top-band"),i=l.querySelector("#interscroller-bottom-band");if(!i)return;const d=s.getBoundingClientRect(),o=p.innerHeight,f=d.top<=o,v=d.bottom<=o-C,t=T?d.top<=o-n.bottomBandHideAt:d.top<=o-n.bottomBandShowAt,r=s.offsetHeight,g=Math.min(1,Math.max(0,(o-d.top)/(r+o))),h=Math.min(1,Math.max(0,(o-d.top)/(r+C))),e=Math.min(1,Math.max(0,(o-d.top)/r)),a=Math.min(d.bottom,o)-Math.max(d.top-C,0),u=Math.min(1,Math.max(0,a/o)),q=Math.max(0,Math.round(d.bottom-o));!D&&f&&n.onEnter&&n.onEnter(),!H&&v&&n.onExit&&n.onExit(),D=f,H=v,T=t,n.onProgress&&n.onProgress({scrollProgress:g,adExposure:e,viewportCoverage:u,pxRemaining:q}),(n.thresholds||[]).forEach((P,_)=>{const V=N[_],F=g>=P.at;!V&&F?(N[_]=!0,P.onEnter&&P.onEnter(g)):V&&!F&&(N[_]=!1,P.onLeave&&P.onLeave(g))});const k=o;if(c&&d.top<=k+n.stretchOverlap&&!v){const P=k-d.top;if(!E&&P<=M-n.snapOverlap){const _=1+Math.max(0,P+n.stretchOverlap)/C;c.style.transition="none",c.style.transform=`scaleY(${_})`}else!E&&P>M-n.snapOverlap&&(E=!0,c.style.transition=`transform ${n.snapDuration}s ${n.snapEase}`,c.style.transform="scaleY(1)")}else c&&d.top>k+n.stretchOverlap&&(E=!1,c.style.transition="none",c.style.transform="scaleY(1)");const I=l.querySelector("#interscroller-bottom-label"),L=l.querySelector("#interscroller-bottom-progress"),$=p.visualViewport?Math.round(p.innerHeight-(p.visualViewport.offsetTop+p.visualViewport.height)):0;v?(i.style.transition="none",i.style.transform="none",i.style.position="sticky",i.style.top="0",i.style.bottom="",i.style.left="",i.style.marginLeft="calc(50% - 50vw)",i.style.width="100vw",I&&(I.textContent=n.labelBottomNow),L&&(L.style.width="100%")):t?(I&&(I.textContent=q>0?h<.2?n.labelBottomResume:h<.75?n.labelBottomMid:n.labelBottomLate:n.labelBottomNow),L&&(L.style.width=`${Math.round(h*100)}%`),i.style.transition="transform 0.3s ease",i.style.transform="translateY(0)",i.style.position="fixed",i.style.bottom=`${$}px`,i.style.top="",i.style.left="0",i.style.marginLeft="0",i.style.width="100vw"):(i.style.transition="transform 0.3s ease",i.style.transform="translateY(100%)",i.style.position="fixed",i.style.bottom=`${$}px`,i.style.left="0",i.style.marginLeft="0",i.style.width="100vw")};return x(),p.addEventListener("scroll",x,{passive:!0}),p.visualViewport?.addEventListener("resize",x,{passive:!0}),()=>{p.removeEventListener("scroll",x),p.visualViewport?.removeEventListener("resize",x);const c=l.querySelector("#interscroller-top-band"),i=l.querySelector("#interscroller-top-band-wrapper"),d=l.querySelector("#interscroller-bottom-band");i?i.remove():c&&c.remove(),d&&d.remove(),y?s.setAttribute("style",y):s.removeAttribute("style"),b?m.setAttribute("style",b):m.removeAttribute("style")}};let R=()=>{};function W({adFormat:w="",stickyOffset:n=0,logoPosX:m=0,logoHeight:p=0,logoSmallHeight:l=0,...S}={}){typeof R=="function"&&R();let s=()=>{};return w==="fireplace"?s=z(n):w==="fireplace-collant"?s=O(n):w==="logomorph"?s=X(m,p,l):w==="interscroller"?s=U(S):console.warn("[powered-ad-config] Unknown ad format:",w),R=typeof s=="function"?s:()=>{},R}return W}));
|
package/package.json
CHANGED