powered-ad-config 0.0.87 → 0.0.88
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 +271 -244
- package/dist/powered-ad-config.umd.js +7 -7
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ const _ = (w) => {
|
|
|
12
12
|
return () => {
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const l = {
|
|
16
16
|
siteBackgroundColor: "#ffffff",
|
|
17
17
|
fireplaceLeftMargin: 0,
|
|
18
18
|
adNodeMarginTop: -24,
|
|
@@ -22,10 +22,10 @@ const _ = (w) => {
|
|
|
22
22
|
yPosHalfpage: 72,
|
|
23
23
|
stickyMargin: { offset: 72, isSticky: !0 },
|
|
24
24
|
zIndex: function() {
|
|
25
|
-
const o = window.parent.document,
|
|
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"),
|
|
25
|
+
const o = window.parent.document, p = (m, t) => m.forEach((r) => t.forEach(([h, b]) => r.style[h] = b));
|
|
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"), p(o.querySelectorAll(".column"), [["position", "relative"]]), p(o.querySelectorAll(".advert"), [["position", "relative"]]), p(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
|
+
}, A = {
|
|
29
29
|
siteBackgroundColor: "#ffffff",
|
|
30
30
|
fireplaceLeftMargin: 0,
|
|
31
31
|
adNodeMarginTop: -24,
|
|
@@ -35,8 +35,8 @@ const _ = (w) => {
|
|
|
35
35
|
yPosHalfpage: 32,
|
|
36
36
|
stickyMargin: { offset: 32, isSticky: !0 },
|
|
37
37
|
zIndex: function() {
|
|
38
|
-
const o = window.parent.document,
|
|
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"),
|
|
38
|
+
const o = window.parent.document, p = (m, t) => m.forEach((r) => t.forEach(([h, b]) => r.style[h] = b));
|
|
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"), p(o.querySelectorAll(".column"), [["position", "relative"]]), p(o.querySelectorAll(".advert"), [["position", "relative"]]), p(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 = {
|
|
42
42
|
siteBackgroundColor: "#ffffff",
|
|
@@ -50,15 +50,15 @@ const _ = (w) => {
|
|
|
50
50
|
zIndex: function() {
|
|
51
51
|
const o = window.parent.document;
|
|
52
52
|
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"]')) {
|
|
53
|
-
let
|
|
54
|
-
|
|
53
|
+
let m = o.createElement("style");
|
|
54
|
+
m.innerHTML = `
|
|
55
55
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
56
56
|
position: static;
|
|
57
57
|
}
|
|
58
|
-
`, o.head.appendChild(
|
|
58
|
+
`, o.head.appendChild(m);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
},
|
|
61
|
+
}, f = {
|
|
62
62
|
siteBackgroundColor: "#ffffff",
|
|
63
63
|
fireplaceLeftMargin: 0,
|
|
64
64
|
adNodeMarginTop: -24,
|
|
@@ -68,14 +68,14 @@ const _ = (w) => {
|
|
|
68
68
|
yPosHalfpage: 32,
|
|
69
69
|
stickyMargin: { offset: 104, isSticky: !0 },
|
|
70
70
|
zIndex: function() {
|
|
71
|
-
const o = window.parent.document,
|
|
72
|
-
if (
|
|
73
|
-
let
|
|
74
|
-
|
|
71
|
+
const o = window.parent.document, m = o.querySelector("footer").previousElementSibling;
|
|
72
|
+
if (m && m.tagName.toLowerCase() === "div" && (m.style.position = "relative"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
|
|
73
|
+
let r = o.createElement("style");
|
|
74
|
+
r.innerHTML = `
|
|
75
75
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
76
76
|
position: static;
|
|
77
77
|
}
|
|
78
|
-
`, o.head.appendChild(
|
|
78
|
+
`, o.head.appendChild(r);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}, S = {
|
|
@@ -88,8 +88,8 @@ const _ = (w) => {
|
|
|
88
88
|
yPosHalfpage: 32,
|
|
89
89
|
stickyMargin: { offset: 104, isSticky: !0 },
|
|
90
90
|
zIndex: function() {
|
|
91
|
-
const o = window.parent.document,
|
|
92
|
-
if (o.querySelector(".container--padded")?.setAttribute("style", "position:relative"),
|
|
91
|
+
const o = window.parent.document, p = (t, r) => t.forEach((h) => r.forEach(([b, e]) => h.style[b] = e));
|
|
92
|
+
if (o.querySelector(".container--padded")?.setAttribute("style", "position:relative"), p(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 = `
|
|
95
95
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
@@ -98,7 +98,7 @@ const _ = (w) => {
|
|
|
98
98
|
`, o.head.appendChild(t);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
},
|
|
101
|
+
}, q = {
|
|
102
102
|
siteBackgroundColor: "#ffffff",
|
|
103
103
|
fireplaceLeftMargin: 0,
|
|
104
104
|
adNodeMarginTop: -32,
|
|
@@ -111,65 +111,65 @@ const _ = (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:
|
|
116
|
-
{ site: "https://www.nine.com.au/product-reviews", config:
|
|
117
|
-
{ site: "https://www.nine.com.au/property", config:
|
|
118
|
-
{ site: "https://www.nine.com.au/entertainment", config:
|
|
119
|
-
{ site: "https://staging.nine.com.au/sport", config:
|
|
120
|
-
{ site: "https://staging.nine.com.au/product-reviews", config:
|
|
121
|
-
{ site: "https://staging.nine.com.au/property", config:
|
|
122
|
-
{ site: "https://staging.nine.com.au/entertainment", config:
|
|
114
|
+
}, M = [
|
|
115
|
+
{ site: "https://www.nine.com.au/sport", config: f },
|
|
116
|
+
{ site: "https://www.nine.com.au/product-reviews", config: A },
|
|
117
|
+
{ site: "https://www.nine.com.au/property", config: A },
|
|
118
|
+
{ site: "https://www.nine.com.au/entertainment", config: A },
|
|
119
|
+
{ site: "https://staging.nine.com.au/sport", config: f },
|
|
120
|
+
{ site: "https://staging.nine.com.au/product-reviews", config: A },
|
|
121
|
+
{ site: "https://staging.nine.com.au/property", config: A },
|
|
122
|
+
{ site: "https://staging.nine.com.au/entertainment", config: A },
|
|
123
123
|
{ site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: s },
|
|
124
124
|
{ site: "https://render-web-nine-production-v1.ffxblue.com.au", config: s },
|
|
125
125
|
{ site: "https://preview.nine.com.au/", config: s },
|
|
126
126
|
{ site: "https://www.nine", config: s },
|
|
127
127
|
{ site: "https://staging.nine", config: s },
|
|
128
|
-
{ site: "https://entertainment", config:
|
|
129
|
-
{ site: "https://celebrity", config:
|
|
130
|
-
{ site: "https://homes", config:
|
|
131
|
-
{ site: "https://travel", config:
|
|
132
|
-
{ site: "https://honey", config:
|
|
133
|
-
{ site: "https://style", config:
|
|
134
|
-
{ site: "https://coach", config:
|
|
135
|
-
{ site: "https://kitchen", config:
|
|
136
|
-
{ site: "https://finance", config:
|
|
128
|
+
{ site: "https://entertainment", config: l },
|
|
129
|
+
{ site: "https://celebrity", config: l },
|
|
130
|
+
{ site: "https://homes", config: l },
|
|
131
|
+
{ site: "https://travel", config: l },
|
|
132
|
+
{ site: "https://honey", config: l },
|
|
133
|
+
{ site: "https://style", config: l },
|
|
134
|
+
{ site: "https://coach", config: l },
|
|
135
|
+
{ site: "https://kitchen", config: l },
|
|
136
|
+
{ site: "https://finance", config: l },
|
|
137
137
|
{ site: "https://wwos", config: S },
|
|
138
|
-
{ site: "https://staging.wwos", config:
|
|
139
|
-
{ site: "https://www.9news", config:
|
|
140
|
-
{ site: "https://staging.9news", config:
|
|
141
|
-
{ site: "https://www.yourtv", config:
|
|
142
|
-
{ site: "https://staging.yourtv", config:
|
|
143
|
-
{ site: "https://9now", config:
|
|
144
|
-
{ site: "https://creative-preview-an.com", config:
|
|
145
|
-
],
|
|
138
|
+
{ site: "https://staging.wwos", config: f },
|
|
139
|
+
{ site: "https://www.9news", config: q },
|
|
140
|
+
{ site: "https://staging.9news", config: q },
|
|
141
|
+
{ site: "https://www.yourtv", config: l },
|
|
142
|
+
{ site: "https://staging.yourtv", config: l },
|
|
143
|
+
{ site: "https://9now", config: A },
|
|
144
|
+
{ site: "https://creative-preview-an.com", config: l }
|
|
145
|
+
], C = () => {
|
|
146
146
|
const o = window.document.getElementById("nineContent");
|
|
147
|
-
o && (o.style.backgroundColor = a.siteBackgroundColor),
|
|
148
|
-
},
|
|
147
|
+
o && (o.style.backgroundColor = a.siteBackgroundColor), D(), L(), u.addEventListener("scroll", N), n = setTimeout(N, 50);
|
|
148
|
+
}, E = () => {
|
|
149
149
|
let o = null;
|
|
150
150
|
return o = y.querySelector('div[id*="billboard"][id*="above"]'), o;
|
|
151
|
-
},
|
|
151
|
+
}, B = () => {
|
|
152
152
|
const o = u.location.href;
|
|
153
|
-
for (let
|
|
154
|
-
if (o.indexOf(
|
|
155
|
-
return
|
|
156
|
-
},
|
|
153
|
+
for (let p = 0; p < M.length; p += 1)
|
|
154
|
+
if (o.indexOf(M[p].site) >= 0)
|
|
155
|
+
return M[p].config;
|
|
156
|
+
}, L = () => {
|
|
157
157
|
if (!i) return;
|
|
158
158
|
const o = i.style;
|
|
159
159
|
o.width = "100%", o.height = "1000px", o.position = "fixed", o.left = "50%", o.transform = "translate(-50%, 0)";
|
|
160
|
-
},
|
|
161
|
-
if (!
|
|
162
|
-
const o =
|
|
163
|
-
|
|
160
|
+
}, D = () => {
|
|
161
|
+
if (!I) return;
|
|
162
|
+
const o = I.style;
|
|
163
|
+
I.className = "", o.minHeight = "250px", o.marginTop = a.adNodeMarginTop + "px", o.marginBottom = a.adNodeMarginBottom + "px", o.position = "static", o.display = "block", a.zIndex && a.zIndex();
|
|
164
164
|
}, N = () => {
|
|
165
|
-
const o = u.scrollY,
|
|
166
|
-
o >= 0 && o <=
|
|
167
|
-
},
|
|
165
|
+
const o = u.scrollY, p = i.style, m = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
|
|
166
|
+
o >= 0 && o <= v ? (p.transform = `translate(-50%, ${-o}px)`, m.transform = "translateY(0)") : o > v && o <= g ? (p.transform = `translate(-50%, ${-v}px)`, m.transform = `translateY(${v - o}px)`) : o > g && (p.transform = `translate(-50%, ${-v}px)`, m.transform = "translateY(-250px)");
|
|
167
|
+
}, I = E(), a = B();
|
|
168
168
|
if (!a) return () => {
|
|
169
169
|
};
|
|
170
170
|
let n = null;
|
|
171
|
-
const
|
|
172
|
-
return
|
|
171
|
+
const v = -a.responsiveScroll + w, g = v + 250;
|
|
172
|
+
return C(), () => {
|
|
173
173
|
u.removeEventListener("scroll", N), n && (clearTimeout(n), n = null);
|
|
174
174
|
};
|
|
175
175
|
}, R = (w) => {
|
|
@@ -186,9 +186,9 @@ const _ = (w) => {
|
|
|
186
186
|
return () => {
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
const
|
|
189
|
+
const l = document.getElementById("nineMasthead"), A = l ? l.style : {};
|
|
190
190
|
let s;
|
|
191
|
-
const
|
|
191
|
+
const f = {
|
|
192
192
|
siteBackgroundColor: "#ffffff",
|
|
193
193
|
fireplaceLeftMargin: 0,
|
|
194
194
|
adNodeMarginTop: -24,
|
|
@@ -199,8 +199,8 @@ const _ = (w) => {
|
|
|
199
199
|
stickyMargin: { offset: 160, isSticky: !0 },
|
|
200
200
|
maskOffset: 298,
|
|
201
201
|
zIndex: function() {
|
|
202
|
-
const e = window.parent.document,
|
|
203
|
-
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"),
|
|
202
|
+
const e = window.parent.document, c = (d, k) => d.forEach((x) => k.forEach(([T, P]) => x.style[T] = P));
|
|
203
|
+
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"), c(e.querySelectorAll(".column"), [["position", "relative"]]), c(e.querySelectorAll(".advert"), [["position", "relative"]]), c(e.querySelectorAll("blockquote"), [["zIndex", "1"]]), e.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), e.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none");
|
|
204
204
|
}
|
|
205
205
|
}, S = {
|
|
206
206
|
siteBackgroundColor: "#ffffff",
|
|
@@ -213,10 +213,10 @@ const _ = (w) => {
|
|
|
213
213
|
stickyMargin: { offset: 160, isSticky: !0 },
|
|
214
214
|
maskOffset: window.parent.document.querySelector('div[class*="video-index__MyContainer"]') ? 248 : 298,
|
|
215
215
|
zIndex: function() {
|
|
216
|
-
const e = window.parent.document,
|
|
217
|
-
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"),
|
|
216
|
+
const e = window.parent.document, c = (d, k) => d.forEach((x) => k.forEach(([T, P]) => x.style[T] = P));
|
|
217
|
+
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"), c(e.querySelectorAll(".column"), [["position", "relative"]]), c(e.querySelectorAll(".advert"), [["position", "relative"]]), c(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");
|
|
218
218
|
}
|
|
219
|
-
},
|
|
219
|
+
}, q = {
|
|
220
220
|
siteBackgroundColor: "#ffffff",
|
|
221
221
|
fireplaceLeftMargin: 0,
|
|
222
222
|
adNodeMarginTop: -24,
|
|
@@ -229,15 +229,15 @@ const _ = (w) => {
|
|
|
229
229
|
zIndex: function() {
|
|
230
230
|
const e = window.parent.document;
|
|
231
231
|
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"]')) {
|
|
232
|
-
let
|
|
233
|
-
|
|
232
|
+
let d = e.createElement("style");
|
|
233
|
+
d.innerHTML = `
|
|
234
234
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
235
235
|
position: static;
|
|
236
236
|
}
|
|
237
|
-
`, e.head.appendChild(
|
|
237
|
+
`, e.head.appendChild(d);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
},
|
|
240
|
+
}, M = {
|
|
241
241
|
siteBackgroundColor: "#ffffff",
|
|
242
242
|
fireplaceLeftMargin: 0,
|
|
243
243
|
adNodeMarginTop: -24,
|
|
@@ -248,17 +248,17 @@ const _ = (w) => {
|
|
|
248
248
|
stickyMargin: { offset: 160, isSticky: !0 },
|
|
249
249
|
maskOffset: 312,
|
|
250
250
|
zIndex: function() {
|
|
251
|
-
const e = window.parent.document,
|
|
252
|
-
if (
|
|
253
|
-
let
|
|
254
|
-
|
|
251
|
+
const e = window.parent.document, d = e.querySelector("footer").previousElementSibling;
|
|
252
|
+
if (d && d.tagName.toLowerCase() === "div" && (d.style.position = "relative"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
|
|
253
|
+
let x = e.createElement("style");
|
|
254
|
+
x.innerHTML = `
|
|
255
255
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
256
256
|
position: static;
|
|
257
257
|
}
|
|
258
|
-
`, e.head.appendChild(
|
|
258
|
+
`, e.head.appendChild(x);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
},
|
|
261
|
+
}, C = {
|
|
262
262
|
siteBackgroundColor: "#ffffff",
|
|
263
263
|
fireplaceLeftMargin: 0,
|
|
264
264
|
adNodeMarginTop: -25,
|
|
@@ -269,17 +269,17 @@ const _ = (w) => {
|
|
|
269
269
|
stickyMargin: { offset: 175, isSticky: !0 },
|
|
270
270
|
maskOffset: 274,
|
|
271
271
|
zIndex: function() {
|
|
272
|
-
const e = window.parent.document,
|
|
273
|
-
if (e.querySelector(".container--padded")?.setAttribute("style", "position:relative"),
|
|
274
|
-
let
|
|
275
|
-
|
|
272
|
+
const e = window.parent.document, c = (k, x) => k.forEach((T) => x.forEach(([P, H]) => T.style[P] = H));
|
|
273
|
+
if (e.querySelector(".container--padded")?.setAttribute("style", "position:relative"), c(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"]')) {
|
|
274
|
+
let k = e.createElement("style");
|
|
275
|
+
k.innerHTML = `
|
|
276
276
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
277
277
|
position: static;
|
|
278
278
|
}
|
|
279
|
-
`, e.head.appendChild(
|
|
279
|
+
`, e.head.appendChild(k);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
},
|
|
282
|
+
}, E = {
|
|
283
283
|
siteBackgroundColor: "#ffffff",
|
|
284
284
|
fireplaceLeftMargin: 0,
|
|
285
285
|
adNodeMarginTop: -32,
|
|
@@ -292,103 +292,103 @@ const _ = (w) => {
|
|
|
292
292
|
zIndex: function() {
|
|
293
293
|
const e = window.parent.document;
|
|
294
294
|
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);");
|
|
295
|
-
const
|
|
296
|
-
|
|
295
|
+
const c = e.querySelector('[class*="VideoIndexComponent"]');
|
|
296
|
+
c && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), c.style.maxWidth = "1190px", c.style.margin = "auto", c.style.position = "relative");
|
|
297
297
|
}
|
|
298
|
-
},
|
|
299
|
-
{ site: "https://www.nine.com.au/sport", config:
|
|
298
|
+
}, B = [
|
|
299
|
+
{ site: "https://www.nine.com.au/sport", config: M },
|
|
300
300
|
{ site: "https://www.nine.com.au/product-reviews", config: S },
|
|
301
301
|
{ site: "https://www.nine.com.au/property", config: S },
|
|
302
302
|
{ site: "https://www.nine.com.au/entertainment", config: S },
|
|
303
|
-
{ site: "https://staging.nine.com.au/sport", config:
|
|
303
|
+
{ site: "https://staging.nine.com.au/sport", config: M },
|
|
304
304
|
{ site: "https://staging.nine.com.au/product-reviews", config: S },
|
|
305
305
|
{ site: "https://staging.nine.com.au/property", config: S },
|
|
306
306
|
{ site: "https://staging.nine.com.au/entertainment", config: S },
|
|
307
|
-
{ site: "https://render-web-nine-staging-v1.ffxblue.com.au", config:
|
|
308
|
-
{ site: "https://render-web-nine-production-v1.ffxblue.com.au", config:
|
|
309
|
-
{ site: "https://preview.nine.com.au/", config:
|
|
310
|
-
{ site: "https://www.nine", config:
|
|
311
|
-
{ site: "https://staging.nine", config:
|
|
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:
|
|
323
|
-
{ site: "https://www.9news", config:
|
|
324
|
-
{ site: "https://staging.9news", config:
|
|
325
|
-
{ site: "https://www.yourtv", config:
|
|
326
|
-
{ site: "https://staging.yourtv", config:
|
|
307
|
+
{ site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: q },
|
|
308
|
+
{ site: "https://render-web-nine-production-v1.ffxblue.com.au", config: q },
|
|
309
|
+
{ site: "https://preview.nine.com.au/", config: q },
|
|
310
|
+
{ site: "https://www.nine", config: q },
|
|
311
|
+
{ site: "https://staging.nine", config: q },
|
|
312
|
+
{ site: "https://entertainment", config: f },
|
|
313
|
+
{ site: "https://celebrity", config: f },
|
|
314
|
+
{ site: "https://homes", config: f },
|
|
315
|
+
{ site: "https://travel", config: f },
|
|
316
|
+
{ site: "https://honey", config: f },
|
|
317
|
+
{ site: "https://style", config: f },
|
|
318
|
+
{ site: "https://coach", config: f },
|
|
319
|
+
{ site: "https://kitchen", config: f },
|
|
320
|
+
{ site: "https://finance", config: f },
|
|
321
|
+
{ site: "https://wwos", config: C },
|
|
322
|
+
{ site: "https://staging.wwos", config: M },
|
|
323
|
+
{ site: "https://www.9news", config: E },
|
|
324
|
+
{ site: "https://staging.9news", config: E },
|
|
325
|
+
{ site: "https://www.yourtv", config: f },
|
|
326
|
+
{ site: "https://staging.yourtv", config: f },
|
|
327
327
|
{ site: "https://9now", config: S },
|
|
328
|
-
{ site: "https://creative-preview-an.com", config:
|
|
329
|
-
],
|
|
328
|
+
{ site: "https://creative-preview-an.com", config: f }
|
|
329
|
+
], L = () => {
|
|
330
330
|
const e = window.document.getElementById("nineContent");
|
|
331
|
-
e && (e.style.backgroundColor = t.siteBackgroundColor),
|
|
332
|
-
},
|
|
331
|
+
e && (e.style.backgroundColor = t.siteBackgroundColor), l && (A.setProperty("--masthead-height", "250px"), A.height = "var(--masthead-height)"), n(), a(), N(), v(), u.addEventListener("scroll", p, { passive: !0 }), r = setTimeout(p, 50);
|
|
332
|
+
}, D = () => {
|
|
333
333
|
let e = null;
|
|
334
334
|
return e = y.querySelector('div[id*="billboard"][id*="above"]'), e;
|
|
335
335
|
}, N = () => {
|
|
336
336
|
let e = null;
|
|
337
337
|
if (!window.parent) return e;
|
|
338
338
|
if (e = y.querySelector('div[id*="halfpage"][id*="above"]'), !e) return;
|
|
339
|
-
let
|
|
340
|
-
for (let
|
|
341
|
-
if (
|
|
342
|
-
|
|
339
|
+
let c = e;
|
|
340
|
+
for (let d = 0; d < 3; d++)
|
|
341
|
+
if (c = c.parentNode, c && getComputedStyle(c).position === "sticky") {
|
|
342
|
+
c.setAttribute("style", `top: ${t.stickyMargin.offset}px`);
|
|
343
343
|
break;
|
|
344
344
|
}
|
|
345
|
-
},
|
|
345
|
+
}, I = () => {
|
|
346
346
|
const e = u.location.href;
|
|
347
|
-
for (let
|
|
348
|
-
if (e.indexOf(
|
|
349
|
-
return
|
|
347
|
+
for (let c = 0; c < B.length; c += 1)
|
|
348
|
+
if (e.indexOf(B[c].site) >= 0)
|
|
349
|
+
return B[c].config;
|
|
350
350
|
}, a = () => {
|
|
351
351
|
if (!i) return;
|
|
352
352
|
const e = i.style;
|
|
353
353
|
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)";
|
|
354
354
|
}, n = () => {
|
|
355
|
-
if (!
|
|
356
|
-
const e =
|
|
357
|
-
|
|
358
|
-
},
|
|
355
|
+
if (!m) return;
|
|
356
|
+
const e = m.style;
|
|
357
|
+
m.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
|
+
}, v = () => {
|
|
359
359
|
s = y.querySelector('div[data-contentunit-id="stan"]')?.parentNode || y.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode || y.querySelector('div[class*="__MyContainer"]') || y.querySelector('div[class*="__ArticleContainer"]') || y.querySelector('div[class*="__VideoIndexComponent"]') || y.querySelector("div.container.layout") || y.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
361
|
let g = 0, o = 0;
|
|
362
|
-
const
|
|
363
|
-
const e = u.scrollY,
|
|
362
|
+
const p = () => {
|
|
363
|
+
const e = u.scrollY, c = e > g, d = e > b ? e - t.maskOffset : 0, k = Math.abs(d - o);
|
|
364
364
|
if (s)
|
|
365
|
-
if (
|
|
366
|
-
if (
|
|
367
|
-
const
|
|
368
|
-
s.style.transition = "none", s.style.setProperty("--mask-inset", `${
|
|
365
|
+
if (c && d > o)
|
|
366
|
+
if (k > 100) {
|
|
367
|
+
const x = Math.max(0, d - 100);
|
|
368
|
+
s.style.transition = "none", s.style.setProperty("--mask-inset", `${x}px`), s.offsetHeight, s.style.transition = "clip-path 0.3s ease-out", s.style.setProperty("--mask-inset", `${d}px`);
|
|
369
369
|
} else
|
|
370
|
-
s.style.transition = "clip-path 0.3s ease-out", s.style.setProperty("--mask-inset", `${
|
|
370
|
+
s.style.transition = "clip-path 0.3s ease-out", s.style.setProperty("--mask-inset", `${d}px`);
|
|
371
371
|
else
|
|
372
|
-
s.style.transition = "none", s.style.setProperty("--mask-inset", `${
|
|
373
|
-
g = e, o =
|
|
374
|
-
},
|
|
372
|
+
s.style.transition = "none", s.style.setProperty("--mask-inset", `${d}px`);
|
|
373
|
+
g = e, o = d, e > b ? (i.style.setProperty("--transform-y", `${-h}px`), A.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > h && e <= b ? (i.style.setProperty("--transform-y", `${-h}px`), A.setProperty("--masthead-height", `${250 + h - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= h && (i.style.setProperty("--transform-y", `${-e}px`), A.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
|
|
374
|
+
}, m = D(), t = I();
|
|
375
375
|
if (!t) return () => {
|
|
376
376
|
};
|
|
377
|
-
let
|
|
377
|
+
let r = null;
|
|
378
378
|
const h = -t.responsiveScroll + w, b = h + 150;
|
|
379
|
-
return
|
|
380
|
-
u.removeEventListener("scroll",
|
|
379
|
+
return L(), () => {
|
|
380
|
+
u.removeEventListener("scroll", p), r && (clearTimeout(r), r = null);
|
|
381
381
|
};
|
|
382
|
-
},
|
|
382
|
+
}, $ = (w, i, u) => {
|
|
383
383
|
const y = window.frameElement ? window.frameElement : null;
|
|
384
384
|
if (!y) return () => {
|
|
385
385
|
};
|
|
386
|
-
const
|
|
387
|
-
if (!
|
|
386
|
+
const l = window.parent;
|
|
387
|
+
if (!l || l === window) return () => {
|
|
388
388
|
};
|
|
389
|
-
let
|
|
389
|
+
let A = null;
|
|
390
390
|
try {
|
|
391
|
-
|
|
391
|
+
A = l.document, l.location.href;
|
|
392
392
|
} catch {
|
|
393
393
|
return () => {
|
|
394
394
|
};
|
|
@@ -402,10 +402,10 @@ const _ = (w) => {
|
|
|
402
402
|
logoSmallTransform: "translateX(0px)",
|
|
403
403
|
logoSmallFilter: "none",
|
|
404
404
|
zIndex: function() {
|
|
405
|
-
const t = window.parent.document,
|
|
406
|
-
t.querySelector(".container--padded")?.setAttribute("style", "position:relative"),
|
|
405
|
+
const t = window.parent.document, r = (h, b) => h.forEach((e) => b.forEach(([c, d]) => e.style[c] = d));
|
|
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
|
+
}, f = {
|
|
409
409
|
siteBackgroundColor: "#ffffff",
|
|
410
410
|
logoTop: "44px",
|
|
411
411
|
logoLeft: "50%",
|
|
@@ -414,8 +414,8 @@ const _ = (w) => {
|
|
|
414
414
|
logoSmallTransform: "translateX(-50%)",
|
|
415
415
|
logoSmallFilter: "none",
|
|
416
416
|
zIndex: function() {
|
|
417
|
-
const t = window.parent.document,
|
|
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"),
|
|
417
|
+
const t = window.parent.document, r = (h, b) => h.forEach((e) => b.forEach(([c, d]) => e.style[c] = d));
|
|
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
|
}, S = {
|
|
421
421
|
siteBackgroundColor: "#ffffff",
|
|
@@ -426,10 +426,10 @@ const _ = (w) => {
|
|
|
426
426
|
logoSmallTransform: "translateX(-50%)",
|
|
427
427
|
logoSmallFilter: "none",
|
|
428
428
|
zIndex: function() {
|
|
429
|
-
const t = window.parent.document,
|
|
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"),
|
|
429
|
+
const t = window.parent.document, r = (h, b) => h.forEach((e) => b.forEach(([c, d]) => e.style[c] = d));
|
|
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
|
+
}, q = {
|
|
433
433
|
siteBackgroundColor: "#ffffff",
|
|
434
434
|
logoTop: "44px",
|
|
435
435
|
logoLeft: "50%",
|
|
@@ -438,10 +438,10 @@ const _ = (w) => {
|
|
|
438
438
|
logoSmallTransform: "translateX(-50%)",
|
|
439
439
|
logoSmallFilter: "none",
|
|
440
440
|
zIndex: function() {
|
|
441
|
-
const t = window.parent.document,
|
|
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"),
|
|
441
|
+
const t = window.parent.document, r = (h, b) => h.forEach((e) => b.forEach(([c, d]) => e.style[c] = d));
|
|
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
|
+
}, M = {
|
|
445
445
|
siteBackgroundColor: "#ffffff",
|
|
446
446
|
logoTop: "-148px",
|
|
447
447
|
logoLeft: "50%",
|
|
@@ -450,10 +450,10 @@ const _ = (w) => {
|
|
|
450
450
|
logoSmallTransform: "translateX(-50%)",
|
|
451
451
|
logoSmallFilter: "none",
|
|
452
452
|
zIndex: function() {
|
|
453
|
-
const t = window.parent.document,
|
|
454
|
-
t.querySelector(".container--padded")?.setAttribute("style", "position:relative"),
|
|
453
|
+
const t = window.parent.document, r = (h, b) => h.forEach((e) => b.forEach(([c, d]) => e.style[c] = d));
|
|
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
|
+
}, C = {
|
|
457
457
|
siteBackgroundColor: "#ffffff",
|
|
458
458
|
logoTop: "44px",
|
|
459
459
|
logoLeft: "50%",
|
|
@@ -465,7 +465,7 @@ const _ = (w) => {
|
|
|
465
465
|
const t = window.parent.document;
|
|
466
466
|
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");
|
|
467
467
|
}
|
|
468
|
-
},
|
|
468
|
+
}, E = [
|
|
469
469
|
{ site: "https://www.nine.com.au/sport", config: s },
|
|
470
470
|
{ site: "https://www.nine.com.au/product-reviews", config: S },
|
|
471
471
|
{ site: "https://www.nine.com.au/property", config: S },
|
|
@@ -474,68 +474,68 @@ const _ = (w) => {
|
|
|
474
474
|
{ site: "https://staging.nine.com.au/product-reviews", config: S },
|
|
475
475
|
{ site: "https://staging.nine.com.au/property", config: S },
|
|
476
476
|
{ site: "https://staging.nine.com.au/entertainment", config: S },
|
|
477
|
-
{ site: "https://render-web-nine-staging-v1.ffxblue.com.au", config:
|
|
478
|
-
{ site: "https://render-web-nine-production-v1.ffxblue.com.au", config:
|
|
479
|
-
{ site: "https://preview.nine.com.au/", config:
|
|
480
|
-
{ site: "https://www.nine", config:
|
|
481
|
-
{ site: "https://staging.nine", config:
|
|
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:
|
|
477
|
+
{ site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: q },
|
|
478
|
+
{ site: "https://render-web-nine-production-v1.ffxblue.com.au", config: q },
|
|
479
|
+
{ site: "https://preview.nine.com.au/", config: q },
|
|
480
|
+
{ site: "https://www.nine", config: q },
|
|
481
|
+
{ site: "https://staging.nine", config: q },
|
|
482
|
+
{ site: "https://entertainment", config: f },
|
|
483
|
+
{ site: "https://celebrity", config: f },
|
|
484
|
+
{ site: "https://homes", config: f },
|
|
485
|
+
{ site: "https://travel", config: f },
|
|
486
|
+
{ site: "https://honey", config: f },
|
|
487
|
+
{ site: "https://style", config: f },
|
|
488
|
+
{ site: "https://coach", config: f },
|
|
489
|
+
{ site: "https://kitchen", config: f },
|
|
490
|
+
{ site: "https://finance", config: f },
|
|
491
|
+
{ site: "https://wwos", config: M },
|
|
492
|
+
{ site: "https://staging.wwos", config: M },
|
|
493
|
+
{ site: "https://www.9news", config: C },
|
|
494
|
+
{ site: "https://staging.9news", config: C },
|
|
495
|
+
{ site: "https://www.yourtv", config: f },
|
|
496
|
+
{ site: "https://staging.yourtv", config: f },
|
|
497
497
|
{ site: "https://9now", config: S },
|
|
498
|
-
{ site: "https://creative-preview-an.com", config:
|
|
499
|
-
],
|
|
498
|
+
{ site: "https://creative-preview-an.com", config: f }
|
|
499
|
+
], B = () => {
|
|
500
500
|
const t = window.document.getElementById("logo-small");
|
|
501
|
-
t && (t.style.left = g.logoSmallLeft, t.style.transform = g.logoSmallTransform, t.style.filter = g.logoSmallFilter),
|
|
502
|
-
},
|
|
501
|
+
t && (t.style.left = g.logoSmallLeft, t.style.transform = g.logoSmallTransform, t.style.filter = g.logoSmallFilter), I(), N(), l.addEventListener("scroll", n), o = setTimeout(n, 50);
|
|
502
|
+
}, L = () => {
|
|
503
503
|
let t = null;
|
|
504
|
-
return t =
|
|
505
|
-
},
|
|
506
|
-
const t =
|
|
507
|
-
for (let
|
|
508
|
-
if (t.indexOf(
|
|
509
|
-
return
|
|
504
|
+
return t = A.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'), t;
|
|
505
|
+
}, D = () => {
|
|
506
|
+
const t = l.location.href;
|
|
507
|
+
for (let r = 0; r < E.length; r += 1)
|
|
508
|
+
if (t.indexOf(E[r].site) >= 0)
|
|
509
|
+
return E[r].config;
|
|
510
510
|
}, N = () => {
|
|
511
511
|
if (!y) return;
|
|
512
512
|
const t = y.style;
|
|
513
513
|
t.width = "100%", t.height = `${i}px`, t.position = "relative";
|
|
514
|
-
},
|
|
515
|
-
if (!
|
|
516
|
-
const t =
|
|
514
|
+
}, I = () => {
|
|
515
|
+
if (!v) return;
|
|
516
|
+
const t = v.style;
|
|
517
517
|
t.maxHeight = `${i}px`, t.minHeight = `${i}px`, t.marginTop = "0px", t.marginBottom = "0px", t.position = "absolute", t.width = "1900px", t.top = g.logoTop, t.left = g.logoLeft, t.transform = g.logoTransform, t.zIndex = "10000", t.pointerEvents = "none", g.zIndex && g.zIndex();
|
|
518
518
|
}, a = (t) => {
|
|
519
|
-
if (!
|
|
520
|
-
const
|
|
521
|
-
t === "big" && !window.bigActive ? (
|
|
519
|
+
if (!v) return;
|
|
520
|
+
const r = v.style;
|
|
521
|
+
t === "big" && !window.bigActive ? (r.maxHeight = `${i}px`, r.minHeight = `${i}px`, r.position = "absolute", r.top = g.logoTop, r.zIndex = "10000", window.loadBig()) : t === "small" && !window.smallActive && (r.maxHeight = `${u}px`, r.minHeight = `${u}px`, r.position = "fixed", r.top = "0px", r.zIndex = "100000", window.loadSmall());
|
|
522
522
|
}, n = () => {
|
|
523
|
-
const t =
|
|
524
|
-
y.style, t >= 0 && t <=
|
|
525
|
-
},
|
|
523
|
+
const t = l.scrollY;
|
|
524
|
+
y.style, t >= 0 && t <= p ? a("big") : t > p && (t > m ? a("small") : a("big"), m = t <= 0 ? 0 : t);
|
|
525
|
+
}, v = L(), g = D();
|
|
526
526
|
if (!g) return () => {
|
|
527
527
|
};
|
|
528
528
|
let o = null;
|
|
529
|
-
const
|
|
530
|
-
let
|
|
531
|
-
return
|
|
532
|
-
|
|
529
|
+
const p = w;
|
|
530
|
+
let m = 0;
|
|
531
|
+
return B(), () => {
|
|
532
|
+
l.removeEventListener("scroll", n), o && (clearTimeout(o), o = null);
|
|
533
533
|
};
|
|
534
|
-
},
|
|
534
|
+
}, O = (w) => {
|
|
535
535
|
if (w === 0 || w === 1) return w;
|
|
536
536
|
const i = 2 * Math.PI / 3;
|
|
537
537
|
return Math.pow(2, -10 * w) * Math.sin((w * 10 - 0.75) * i) + 1;
|
|
538
|
-
}, F = (w, i = 50) => `linear(${Array.from({ length: i + 1 }, (y,
|
|
538
|
+
}, F = (w, i = 50) => `linear(${Array.from({ length: i + 1 }, (y, l) => w(l / i)).map((y) => +y.toFixed(4)).join(", ")})`, X = F(O), U = (w = {}) => {
|
|
539
539
|
const i = {
|
|
540
540
|
// Ad scroll zone
|
|
541
541
|
// How tall the ad container is — controls how long the ad stays in view.
|
|
@@ -555,9 +555,18 @@ const _ = (w) => {
|
|
|
555
555
|
bandLetterSpacing: "1px",
|
|
556
556
|
// Band labels
|
|
557
557
|
labelTop: "Advertisement",
|
|
558
|
-
labelBottomResume: "
|
|
559
|
-
//
|
|
560
|
-
|
|
558
|
+
labelBottomResume: "Scroll to continue",
|
|
559
|
+
// shown from 0–20% ad progress
|
|
560
|
+
labelBottomMid: "Keep scrolling",
|
|
561
|
+
// shown from 20–75% ad progress
|
|
562
|
+
labelBottomLate: "Almost there",
|
|
563
|
+
// shown from 75–95% ad progress
|
|
564
|
+
labelBottomNow: "Content now ↓",
|
|
565
|
+
// shown when ad has cleared
|
|
566
|
+
// Progress bar (inside bottom band)
|
|
567
|
+
// Set to null or '' to disable the progress bar and fall back to text only.
|
|
568
|
+
progressBarColor: "rgba(255,255,255,0.35)",
|
|
569
|
+
// fill colour; sits above band background
|
|
561
570
|
// Band z-index (should sit below page header)
|
|
562
571
|
zIndexTop: 9,
|
|
563
572
|
zIndexBottom: 8,
|
|
@@ -566,7 +575,7 @@ const _ = (w) => {
|
|
|
566
575
|
// gap (px) at which the elastic snap fires
|
|
567
576
|
snapOverlap: 2,
|
|
568
577
|
// px — fires the snap this many px early (trigger timing)
|
|
569
|
-
stretchOverlap:
|
|
578
|
+
stretchOverlap: 4,
|
|
570
579
|
// px — extends the band this many px past the touchpoint
|
|
571
580
|
// during the stretch phase, eliminating the sub-pixel gap
|
|
572
581
|
snapDuration: 0.9,
|
|
@@ -595,18 +604,18 @@ const _ = (w) => {
|
|
|
595
604
|
const y = window.parent;
|
|
596
605
|
if (!y || y === window) return () => {
|
|
597
606
|
};
|
|
598
|
-
let
|
|
607
|
+
let l = null;
|
|
599
608
|
try {
|
|
600
|
-
|
|
609
|
+
l = y.document, y.location.href;
|
|
601
610
|
} catch {
|
|
602
611
|
return () => {
|
|
603
612
|
};
|
|
604
613
|
}
|
|
605
614
|
const s = (() => {
|
|
606
|
-
const a =
|
|
615
|
+
const a = l.querySelector("#adspot-mobile-mobile-3-above");
|
|
607
616
|
if (a) return a;
|
|
608
617
|
let n = u.parentElement;
|
|
609
|
-
for (; n && n !==
|
|
618
|
+
for (; n && n !== l.body; ) {
|
|
610
619
|
if (n.id && n.id.includes("adspot")) return n;
|
|
611
620
|
n = n.parentElement;
|
|
612
621
|
}
|
|
@@ -614,7 +623,7 @@ const _ = (w) => {
|
|
|
614
623
|
})();
|
|
615
624
|
if (!s) return () => {
|
|
616
625
|
};
|
|
617
|
-
const
|
|
626
|
+
const f = s.getAttribute("style"), S = u.getAttribute("style"), q = {
|
|
618
627
|
width: "100vw",
|
|
619
628
|
marginLeft: "calc(50% - 50vw)",
|
|
620
629
|
height: i.bandHeight + "px",
|
|
@@ -634,55 +643,73 @@ const _ = (w) => {
|
|
|
634
643
|
a.height = i.adScrollHeight, a.position = "relative", a.clipPath = `inset(-${i.bandHeight}px 0 0 0)`, a.overflow = "visible", a.width = "100vw", a.maxWidth = "100vw", a.marginLeft = "calc(50% - 50vw)", a.marginRight = "0", a.marginTop = "0", a.marginBottom = "0", a.padding = "0", a.className = "";
|
|
635
644
|
const n = u.style;
|
|
636
645
|
n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100vh", n.maxWidth = "100vw", n.margin = "0", n.padding = "0", n.border = "none", n.zIndex = "1";
|
|
637
|
-
const
|
|
638
|
-
|
|
646
|
+
const v = l.createElement("div");
|
|
647
|
+
v.id = "interscroller-top-band", v.textContent = i.labelTop, Object.assign(v.style, q, {
|
|
639
648
|
position: "sticky",
|
|
640
649
|
bottom: "0",
|
|
641
650
|
zIndex: i.zIndexTop,
|
|
642
651
|
transformOrigin: "top center"
|
|
643
652
|
});
|
|
644
653
|
const g = s.previousElementSibling;
|
|
645
|
-
g ? g.appendChild(
|
|
646
|
-
const o =
|
|
647
|
-
o.id = "interscroller-bottom-band",
|
|
648
|
-
position: "
|
|
654
|
+
g ? g.appendChild(v) : s.parentElement.insertBefore(v, s);
|
|
655
|
+
const o = l.createElement("div");
|
|
656
|
+
o.id = "interscroller-bottom-band", Object.assign(o.style, q, {
|
|
657
|
+
position: "relative",
|
|
658
|
+
// overridden per-scroll; needed so the fill div is contained
|
|
649
659
|
top: "0",
|
|
650
660
|
zIndex: i.zIndexBottom,
|
|
651
|
-
display: "none"
|
|
652
|
-
|
|
661
|
+
display: "none",
|
|
662
|
+
overflow: "hidden"
|
|
663
|
+
// clips the progress fill to the band bounds
|
|
664
|
+
});
|
|
665
|
+
const p = l.createElement("span");
|
|
666
|
+
if (p.id = "interscroller-bottom-label", p.textContent = i.labelBottomResume, p.style.cssText = "position:relative;z-index:1;pointer-events:none;", o.appendChild(p), i.progressBarColor) {
|
|
667
|
+
const m = l.createElement("span");
|
|
668
|
+
m.id = "interscroller-bottom-progress", m.style.cssText = [
|
|
669
|
+
"position:absolute",
|
|
670
|
+
"inset:0",
|
|
671
|
+
"width:0%",
|
|
672
|
+
`background:${i.progressBarColor}`,
|
|
673
|
+
"transition:none",
|
|
674
|
+
"z-index:0",
|
|
675
|
+
"pointer-events:none"
|
|
676
|
+
].join(";"), o.appendChild(m);
|
|
677
|
+
}
|
|
678
|
+
s.after(o);
|
|
653
679
|
})();
|
|
654
|
-
const
|
|
655
|
-
let
|
|
656
|
-
const N = (i.thresholds || []).map(() => !1),
|
|
657
|
-
const a =
|
|
680
|
+
const C = i.bandHeight, E = i.snapPx;
|
|
681
|
+
let B = !1, L = !1, D = !1;
|
|
682
|
+
const N = (i.thresholds || []).map(() => !1), I = () => {
|
|
683
|
+
const a = l.querySelector("#interscroller-top-band"), n = l.querySelector("#interscroller-bottom-band");
|
|
658
684
|
if (!n) return;
|
|
659
|
-
const
|
|
660
|
-
if (!
|
|
661
|
-
const
|
|
662
|
-
!
|
|
663
|
-
}), a && o && !
|
|
664
|
-
const
|
|
665
|
-
if (!
|
|
666
|
-
const
|
|
667
|
-
a.style.transition = "none", a.style.transform = `scaleY(${
|
|
668
|
-
} else !
|
|
669
|
-
} else a && !o && (
|
|
670
|
-
|
|
685
|
+
const v = s.getBoundingClientRect(), g = y.innerHeight, o = v.top <= g, p = v.bottom <= g - C, m = s.offsetHeight, t = Math.min(1, Math.max(0, (g - v.top) / (m + g))), r = Math.min(1, Math.max(0, (g - v.top) / (m + C))), h = Math.min(1, Math.max(0, (g - v.top) / m)), b = Math.min(v.bottom, g) - Math.max(v.top - C, 0), e = Math.min(1, Math.max(0, b / g)), c = Math.max(0, Math.round(v.bottom - g));
|
|
686
|
+
if (!L && o && i.onEnter && i.onEnter(), !D && p && i.onExit && i.onExit(), L = o, D = p, i.onProgress && i.onProgress({ scrollProgress: t, adExposure: h, viewportCoverage: e, pxRemaining: c }), (i.thresholds || []).forEach((x, T) => {
|
|
687
|
+
const P = N[T], H = t >= x.at;
|
|
688
|
+
!P && H ? (N[T] = !0, x.onEnter && x.onEnter(t)) : P && !H && (N[T] = !1, x.onLeave && x.onLeave(t));
|
|
689
|
+
}), a && o && !p) {
|
|
690
|
+
const x = g - v.top;
|
|
691
|
+
if (!B && x <= E - i.snapOverlap) {
|
|
692
|
+
const P = 1 + (Math.max(0, x / E) * E + i.stretchOverlap) / C;
|
|
693
|
+
a.style.transition = "none", a.style.transform = `scaleY(${P})`;
|
|
694
|
+
} else !B && x > E - i.snapOverlap && (B = !0, a.style.transition = `transform ${i.snapDuration}s ${i.snapEase}`, a.style.transform = "scaleY(1)");
|
|
695
|
+
} else a && !o && (B = !1, a.style.transition = "none", a.style.transform = "scaleY(1)");
|
|
696
|
+
const d = l.querySelector("#interscroller-bottom-label"), k = l.querySelector("#interscroller-bottom-progress");
|
|
697
|
+
p ? (n.style.position = "sticky", n.style.top = "0", n.style.bottom = "", n.style.left = "", n.style.marginLeft = "calc(50% - 50vw)", n.style.width = "100vw", n.style.display = "flex", d && (d.textContent = i.labelBottomNow), k && (k.style.width = "100%")) : o ? (d && (d.textContent = c > 0 ? r < 0.2 ? i.labelBottomResume : r < 0.75 ? i.labelBottomMid : i.labelBottomLate : i.labelBottomNow), k && (k.style.width = `${Math.round(r * 100)}%`), n.style.position = "fixed", n.style.bottom = "0", n.style.top = "", n.style.left = "0", n.style.marginLeft = "0", n.style.width = "100vw", n.style.display = "flex") : n.style.display = "none";
|
|
671
698
|
};
|
|
672
|
-
return
|
|
673
|
-
y.removeEventListener("scroll",
|
|
674
|
-
const a =
|
|
675
|
-
a && a.remove(), n && n.remove(),
|
|
699
|
+
return I(), y.addEventListener("scroll", I, { passive: !0 }), () => {
|
|
700
|
+
y.removeEventListener("scroll", I);
|
|
701
|
+
const a = l.querySelector("#interscroller-top-band"), n = l.querySelector("#interscroller-bottom-band");
|
|
702
|
+
a && a.remove(), n && n.remove(), f ? s.setAttribute("style", f) : s.removeAttribute("style"), S ? u.setAttribute("style", S) : u.removeAttribute("style");
|
|
676
703
|
};
|
|
677
704
|
};
|
|
678
|
-
let
|
|
705
|
+
let z = () => {
|
|
679
706
|
};
|
|
680
|
-
function V({ adFormat: w = "", stickyOffset: i = 0, logoPosX: u = 0, logoHeight: y = 0, logoSmallHeight:
|
|
681
|
-
typeof
|
|
707
|
+
function V({ adFormat: w = "", stickyOffset: i = 0, logoPosX: u = 0, logoHeight: y = 0, logoSmallHeight: l = 0, ...A } = {}) {
|
|
708
|
+
typeof z == "function" && z();
|
|
682
709
|
let s = () => {
|
|
683
710
|
};
|
|
684
|
-
return w === "fireplace" ? s = _(i) : w === "fireplace-collant" ? s = R(i) : w === "logomorph" ? s =
|
|
685
|
-
},
|
|
711
|
+
return w === "fireplace" ? s = _(i) : w === "fireplace-collant" ? s = R(i) : w === "logomorph" ? s = $(u, y, l) : w === "interscroller" ? s = U(A) : console.warn("[powered-ad-config] Unknown ad format:", w), z = typeof s == "function" ? s : () => {
|
|
712
|
+
}, z;
|
|
686
713
|
}
|
|
687
714
|
export {
|
|
688
715
|
V as default
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(H,z){typeof exports=="object"&&typeof module<"u"?module.exports=z():typeof define=="function"&&define.amd?define(z):(H=typeof globalThis<"u"?globalThis:H||self,H.poweredAdConfig=z())})(this,(function(){"use strict";const H=w=>{const i=window.frameElement?window.frameElement:null;if(!i)return()=>{};const u=window.parent;if(!u||u===window)return()=>{};let y=null;try{y=u.document,u.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,p=(m,t)=>m.forEach(r=>t.forEach(([h,b])=>r.style[h]=b));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"),p(o.querySelectorAll(".column"),[["position","relative"]]),p(o.querySelectorAll(".advert"),[["position","relative"]]),p(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")}},A={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,p=(m,t)=>m.forEach(r=>t.forEach(([h,b])=>r.style[h]=b));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"),p(o.querySelectorAll(".column"),[["position","relative"]]),p(o.querySelectorAll(".advert"),[["position","relative"]]),p(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 m=o.createElement("style");m.innerHTML=`
|
|
2
2
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
3
3
|
position: static;
|
|
4
4
|
}
|
|
5
|
-
`,o.head.appendChild(
|
|
5
|
+
`,o.head.appendChild(m)}}},f={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,m=o.querySelector("footer").previousElementSibling;if(m&&m.tagName.toLowerCase()==="div"&&(m.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(
|
|
9
|
+
`,o.head.appendChild(r)}}},S={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,p=(t,r)=>t.forEach(h=>r.forEach(([b,e])=>h.style[b]=e));if(o.querySelector(".container--padded")?.setAttribute("style","position:relative"),p(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)}}},
|
|
13
|
+
`,o.head.appendChild(t)}}},q={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);")}},M=[{site:"https://www.nine.com.au/sport",config:f},{site:"https://www.nine.com.au/product-reviews",config:A},{site:"https://www.nine.com.au/property",config:A},{site:"https://www.nine.com.au/entertainment",config:A},{site:"https://staging.nine.com.au/sport",config:f},{site:"https://staging.nine.com.au/product-reviews",config:A},{site:"https://staging.nine.com.au/property",config:A},{site:"https://staging.nine.com.au/entertainment",config:A},{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:S},{site:"https://staging.wwos",config:f},{site:"https://www.9news",config:q},{site:"https://staging.9news",config:q},{site:"https://www.yourtv",config:l},{site:"https://staging.yourtv",config:l},{site:"https://9now",config:A},{site:"https://creative-preview-an.com",config:l}],C=()=>{const o=window.document.getElementById("nineContent");o&&(o.style.backgroundColor=a.siteBackgroundColor),D(),L(),u.addEventListener("scroll",N),n=setTimeout(N,50)},E=()=>{let o=null;return o=y.querySelector('div[id*="billboard"][id*="above"]'),o},B=()=>{const o=u.location.href;for(let p=0;p<M.length;p+=1)if(o.indexOf(M[p].site)>=0)return M[p].config},L=()=>{if(!i)return;const o=i.style;o.width="100%",o.height="1000px",o.position="fixed",o.left="50%",o.transform="translate(-50%, 0)"},D=()=>{if(!I)return;const o=I.style;I.className="",o.minHeight="250px",o.marginTop=a.adNodeMarginTop+"px",o.marginBottom=a.adNodeMarginBottom+"px",o.position="static",o.display="block",a.zIndex&&a.zIndex()},N=()=>{const o=u.scrollY,p=i.style,m=document.getElementById("siteContent")?document.getElementById("siteContent").style:{};o>=0&&o<=v?(p.transform=`translate(-50%, ${-o}px)`,m.transform="translateY(0)"):o>v&&o<=g?(p.transform=`translate(-50%, ${-v}px)`,m.transform=`translateY(${v-o}px)`):o>g&&(p.transform=`translate(-50%, ${-v}px)`,m.transform="translateY(-250px)")},I=E(),a=B();if(!a)return()=>{};let n=null;const v=-a.responsiveScroll+w,g=v+250;return C(),()=>{u.removeEventListener("scroll",N),n&&(clearTimeout(n),n=null)}},z=w=>{const i=window.frameElement?window.frameElement:null;if(!i)return()=>{};const u=window.parent;if(!u||u===window)return()=>{};let y=null;try{y=u.document,u.location.href}catch{return()=>{}}const l=document.getElementById("nineMasthead"),A=l?l.style:{};let s;const f={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,c=(d,k)=>d.forEach(x=>k.forEach(([T,P])=>x.style[T]=P));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"),c(e.querySelectorAll(".column"),[["position","relative"]]),c(e.querySelectorAll(".advert"),[["position","relative"]]),c(e.querySelectorAll("blockquote"),[["zIndex","1"]]),e.querySelector('div[type="BANNER"]')?.setAttribute("style","display:none"),e.querySelector('div[type="MBANNER"]')?.setAttribute("style","display:none")}},S={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,c=(d,k)=>d.forEach(x=>k.forEach(([T,P])=>x.style[T]=P));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"),c(e.querySelectorAll(".column"),[["position","relative"]]),c(e.querySelectorAll(".advert"),[["position","relative"]]),c(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")}},q={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 d=e.createElement("style");d.innerHTML=`
|
|
14
14
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
15
15
|
position: static;
|
|
16
16
|
}
|
|
17
|
-
`,e.head.appendChild(
|
|
17
|
+
`,e.head.appendChild(d)}}},M={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,d=e.querySelector("footer").previousElementSibling;if(d&&d.tagName.toLowerCase()==="div"&&(d.style.position="relative"),e.querySelector('div[id*="tablet"][id*="takeover"]')){let x=e.createElement("style");x.innerHTML=`
|
|
18
18
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
19
19
|
position: static;
|
|
20
20
|
}
|
|
21
|
-
`,e.head.appendChild(
|
|
21
|
+
`,e.head.appendChild(x)}}},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,c=(k,x)=>k.forEach(T=>x.forEach(([P,R])=>T.style[P]=R));if(e.querySelector(".container--padded")?.setAttribute("style","position:relative"),c(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 k=e.createElement("style");k.innerHTML=`
|
|
22
22
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
23
23
|
position: static;
|
|
24
24
|
}
|
|
25
|
-
`,e.head.appendChild(q)}}},k={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 r=e.querySelector('[class*="VideoIndexComponent"]');r&&(e.querySelector(".breadcrumbs")?.setAttribute("style","display:none"),r.style.maxWidth="1190px",r.style.margin="auto",r.style.position="relative")}},M=[{site:"https://www.nine.com.au/sport",config:B},{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:B},{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: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:d},{site:"https://celebrity",config:d},{site:"https://homes",config:d},{site:"https://travel",config:d},{site:"https://honey",config:d},{site:"https://style",config:d},{site:"https://coach",config:d},{site:"https://kitchen",config:d},{site:"https://finance",config:d},{site:"https://wwos",config:I},{site:"https://staging.wwos",config:B},{site:"https://www.9news",config:k},{site:"https://staging.9news",config:k},{site:"https://www.yourtv",config:d},{site:"https://staging.yourtv",config:d},{site:"https://9now",config:S},{site:"https://creative-preview-an.com",config:d}],T=()=>{const e=window.document.getElementById("nineContent");e&&(e.style.backgroundColor=t.siteBackgroundColor),c&&(x.setProperty("--masthead-height","250px"),x.height="var(--masthead-height)"),n(),a(),N(),m(),u.addEventListener("scroll",f,{passive:!0}),l=setTimeout(f,50)},P=()=>{let e=null;return e=y.querySelector('div[id*="billboard"][id*="above"]'),e},N=()=>{let e=null;if(!window.parent)return e;if(e=y.querySelector('div[id*="halfpage"][id*="above"]'),!e)return;let r=e;for(let p=0;p<3;p++)if(r=r.parentNode,r&&getComputedStyle(r).position==="sticky"){r.setAttribute("style",`top: ${t.stickyMargin.offset}px`);break}},C=()=>{const e=u.location.href;for(let r=0;r<M.length;r+=1)if(e.indexOf(M[r].site)>=0)return M[r].config},a=()=>{if(!i)return;const e=i.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)"},n=()=>{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()},m=()=>{s=y.querySelector('div[data-contentunit-id="stan"]')?.parentNode||y.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode||y.querySelector('div[class*="__MyContainer"]')||y.querySelector('div[class*="__ArticleContainer"]')||y.querySelector('div[class*="__VideoIndexComponent"]')||y.querySelector("div.container.layout")||y.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 g=0,o=0;const f=()=>{const e=u.scrollY,r=e>g,p=e>b?e-t.maskOffset:0,q=Math.abs(p-o);if(s)if(r&&p>o)if(q>100){const E=Math.max(0,p-100);s.style.transition="none",s.style.setProperty("--mask-inset",`${E}px`),s.offsetHeight,s.style.transition="clip-path 0.3s ease-out",s.style.setProperty("--mask-inset",`${p}px`)}else s.style.transition="clip-path 0.3s ease-out",s.style.setProperty("--mask-inset",`${p}px`);else s.style.transition="none",s.style.setProperty("--mask-inset",`${p}px`);g=e,o=p,e>b?(i.style.setProperty("--transform-y",`${-h}px`),x.setProperty("--masthead-height","100px"),window.CollantOn||window.goCollant()):e>h&&e<=b?(i.style.setProperty("--transform-y",`${-h}px`),x.setProperty("--masthead-height",`${250+h-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=h&&(i.style.setProperty("--transform-y",`${-e}px`),x.setProperty("--masthead-height","250px"),window.CollantOn&&window.goBillboard())},v=P(),t=C();if(!t)return()=>{};let l=null;const h=-t.responsiveScroll+w,b=h+150;return T(),()=>{u.removeEventListener("scroll",f),l&&(clearTimeout(l),l=null)}},R=(w,i,u)=>{const y=window.frameElement?window.frameElement:null;if(!y)return()=>{};const c=window.parent;if(!c||c===window)return()=>{};let x=null;try{x=c.document,c.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,l=(h,b)=>h.forEach(e=>b.forEach(([r,p])=>e.style[r]=p));t.querySelector(".container--padded")?.setAttribute("style","position:relative"),l(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")}},d={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,l=(h,b)=>h.forEach(e=>b.forEach(([r,p])=>e.style[r]=p));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"),l(t.querySelectorAll(".column"),[["position","relative"]]),l(t.querySelectorAll(".advert"),[["position","relative"]]),l(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")}},S={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,l=(h,b)=>h.forEach(e=>b.forEach(([r,p])=>e.style[r]=p));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"),l(t.querySelectorAll(".column"),[["position","relative"]]),l(t.querySelectorAll(".advert"),[["position","relative"]]),l(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,l=(h,b)=>h.forEach(e=>b.forEach(([r,p])=>e.style[r]=p));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"),l(t.querySelectorAll(".advert"),[["position","relative"]]),l(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"),l(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,l=(h,b)=>h.forEach(e=>b.forEach(([r,p])=>e.style[r]=p));t.querySelector(".container--padded")?.setAttribute("style","position:relative"),l(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")}},I={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")}},k=[{site:"https://www.nine.com.au/sport",config:s},{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:s},{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: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:d},{site:"https://celebrity",config:d},{site:"https://homes",config:d},{site:"https://travel",config:d},{site:"https://honey",config:d},{site:"https://style",config:d},{site:"https://coach",config:d},{site:"https://kitchen",config:d},{site:"https://finance",config:d},{site:"https://wwos",config:B},{site:"https://staging.wwos",config:B},{site:"https://www.9news",config:I},{site:"https://staging.9news",config:I},{site:"https://www.yourtv",config:d},{site:"https://staging.yourtv",config:d},{site:"https://9now",config:S},{site:"https://creative-preview-an.com",config:d}],M=()=>{const t=window.document.getElementById("logo-small");t&&(t.style.left=g.logoSmallLeft,t.style.transform=g.logoSmallTransform,t.style.filter=g.logoSmallFilter),C(),N(),c.addEventListener("scroll",n),o=setTimeout(n,50)},T=()=>{let t=null;return t=x.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'),t},P=()=>{const t=c.location.href;for(let l=0;l<k.length;l+=1)if(t.indexOf(k[l].site)>=0)return k[l].config},N=()=>{if(!y)return;const t=y.style;t.width="100%",t.height=`${i}px`,t.position="relative"},C=()=>{if(!m)return;const t=m.style;t.maxHeight=`${i}px`,t.minHeight=`${i}px`,t.marginTop="0px",t.marginBottom="0px",t.position="absolute",t.width="1900px",t.top=g.logoTop,t.left=g.logoLeft,t.transform=g.logoTransform,t.zIndex="10000",t.pointerEvents="none",g.zIndex&&g.zIndex()},a=t=>{if(!m)return;const l=m.style;t==="big"&&!window.bigActive?(l.maxHeight=`${i}px`,l.minHeight=`${i}px`,l.position="absolute",l.top=g.logoTop,l.zIndex="10000",window.loadBig()):t==="small"&&!window.smallActive&&(l.maxHeight=`${u}px`,l.minHeight=`${u}px`,l.position="fixed",l.top="0px",l.zIndex="100000",window.loadSmall())},n=()=>{const t=c.scrollY;y.style,t>=0&&t<=f?a("big"):t>f&&(t>v?a("small"):a("big"),v=t<=0?0:t)},m=T(),g=P();if(!g)return()=>{};let o=null;const f=w;let v=0;return M(),()=>{c.removeEventListener("scroll",n),o&&(clearTimeout(o),o=null)}},O=((w,i=50)=>`linear(${Array.from({length:i+1},(y,c)=>w(c/i)).map(y=>+y.toFixed(4)).join(", ")})`)(w=>{if(w===0||w===1)return w;const i=2*Math.PI/3;return Math.pow(2,-10*w)*Math.sin((w*10-.75)*i)+1}),$=(w={})=>{const i={adScrollHeight:"300vh",bandHeight:24,bandBg:"#222",bandColor:"#fff",bandFontSize:"10px",bandFontFamily:"Arial, Helvetica, sans-serif",bandLetterSpacing:"1px",labelTop:"Advertisement",labelBottomResume:"Content resumes in {n}px",labelBottomNow:"Content resumes now ↓",zIndexTop:9,zIndexBottom:8,snapPx:50,snapOverlap:2,stretchOverlap:2,snapDuration:.9,snapEase:O,onEnter:null,onExit:null,onProgress:null,thresholds:[],...w},u=window.frameElement?window.frameElement:null;if(!u)return()=>{};const y=window.parent;if(!y||y===window)return()=>{};let c=null;try{c=y.document,y.location.href}catch{return()=>{}}const s=(()=>{const a=c.querySelector("#adspot-mobile-mobile-3-above");if(a)return a;let n=u.parentElement;for(;n&&n!==c.body;){if(n.id&&n.id.includes("adspot"))return n;n=n.parentElement}return u.parentElement})();if(!s)return()=>{};const d=s.getAttribute("style"),S=u.getAttribute("style"),A={width:"100vw",marginLeft:"calc(50% - 50vw)",height:i.bandHeight+"px",backgroundColor:i.bandBg,color:i.bandColor,fontSize:i.bandFontSize,fontFamily:i.bandFontFamily,textTransform:"uppercase",letterSpacing:i.bandLetterSpacing,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"};(()=>{const a=s.style;a.height=i.adScrollHeight,a.position="relative",a.clipPath=`inset(-${i.bandHeight}px 0 0 0)`,a.overflow="visible",a.width="100vw",a.maxWidth="100vw",a.marginLeft="calc(50% - 50vw)",a.marginRight="0",a.marginTop="0",a.marginBottom="0",a.padding="0",a.className="";const n=u.style;n.position="fixed",n.top="0",n.left="0",n.width="100vw",n.height="100vh",n.maxWidth="100vw",n.margin="0",n.padding="0",n.border="none",n.zIndex="1";const m=c.createElement("div");m.id="interscroller-top-band",m.textContent=i.labelTop,Object.assign(m.style,A,{position:"sticky",bottom:"0",zIndex:i.zIndexTop,transformOrigin:"top center"});const g=s.previousElementSibling;g?g.appendChild(m):s.parentElement.insertBefore(m,s);const o=c.createElement("div");o.id="interscroller-bottom-band",o.textContent=i.labelBottomResume.replace("{n}","…"),Object.assign(o.style,A,{position:"sticky",top:"0",zIndex:i.zIndexBottom,display:"none"}),s.after(o)})();const I=i.bandHeight,k=i.snapPx;let M=!1,T=!1,P=!1;const N=(i.thresholds||[]).map(()=>!1),C=()=>{const a=c.querySelector("#interscroller-top-band"),n=c.querySelector("#interscroller-bottom-band");if(!n)return;const m=s.getBoundingClientRect(),g=y.innerHeight,o=m.top<=g,f=m.bottom<=g-I,v=s.offsetHeight,t=Math.min(1,Math.max(0,(g-m.top)/(v+g))),l=Math.min(1,Math.max(0,(g-m.top)/v)),h=Math.min(m.bottom,g)-Math.max(m.top-I,0),b=Math.min(1,Math.max(0,h/g)),e=Math.max(0,Math.round(m.bottom-g));if(!T&&o&&i.onEnter&&i.onEnter(),!P&&f&&i.onExit&&i.onExit(),T=o,P=f,i.onProgress&&i.onProgress({scrollProgress:t,adExposure:l,viewportCoverage:b,pxRemaining:e}),(i.thresholds||[]).forEach((r,p)=>{const q=N[p],E=t>=r.at;!q&&E?(N[p]=!0,r.onEnter&&r.onEnter(t)):q&&!E&&(N[p]=!1,r.onLeave&&r.onLeave(t))}),a&&o&&!f){const r=g-m.top;if(!M&&r<=k-i.snapOverlap){const q=1+(Math.max(0,r/k)*k+i.stretchOverlap)/I;a.style.transition="none",a.style.transform=`scaleY(${q})`}else!M&&r>k-i.snapOverlap&&(M=!0,a.style.transition=`transform ${i.snapDuration}s ${i.snapEase}`,a.style.transform="scaleY(1)")}else a&&!o&&(M=!1,a.style.transition="none",a.style.transform="scaleY(1)");f?(n.style.position="sticky",n.style.top="0",n.style.bottom="",n.style.left="",n.style.marginLeft="calc(50% - 50vw)",n.style.width="100vw",n.style.display="flex",n.textContent=i.labelBottomNow):o?(n.textContent=e>0?i.labelBottomResume.replace("{n}",e):i.labelBottomNow,n.style.position="fixed",n.style.bottom="0",n.style.top="",n.style.left="0",n.style.marginLeft="0",n.style.width="100vw",n.style.display="flex"):n.style.display="none"};return C(),y.addEventListener("scroll",C,{passive:!0}),()=>{y.removeEventListener("scroll",C);const a=c.querySelector("#interscroller-top-band"),n=c.querySelector("#interscroller-bottom-band");a&&a.remove(),n&&n.remove(),d?s.setAttribute("style",d):s.removeAttribute("style"),S?u.setAttribute("style",S):u.removeAttribute("style")}};let _=()=>{};function F({adFormat:w="",stickyOffset:i=0,logoPosX:u=0,logoHeight:y=0,logoSmallHeight:c=0,...x}={}){typeof _=="function"&&_();let s=()=>{};return w==="fireplace"?s=L(i):w==="fireplace-collant"?s=D(i):w==="logomorph"?s=R(u,y,c):w==="interscroller"?s=$(x):console.warn("[powered-ad-config] Unknown ad format:",w),_=typeof s=="function"?s:()=>{},_}return F}));
|
|
25
|
+
`,e.head.appendChild(k)}}},E={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 c=e.querySelector('[class*="VideoIndexComponent"]');c&&(e.querySelector(".breadcrumbs")?.setAttribute("style","display:none"),c.style.maxWidth="1190px",c.style.margin="auto",c.style.position="relative")}},B=[{site:"https://www.nine.com.au/sport",config:M},{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:M},{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:q},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:q},{site:"https://preview.nine.com.au/",config:q},{site:"https://www.nine",config:q},{site:"https://staging.nine",config:q},{site:"https://entertainment",config:f},{site:"https://celebrity",config:f},{site:"https://homes",config:f},{site:"https://travel",config:f},{site:"https://honey",config:f},{site:"https://style",config:f},{site:"https://coach",config:f},{site:"https://kitchen",config:f},{site:"https://finance",config:f},{site:"https://wwos",config:C},{site:"https://staging.wwos",config:M},{site:"https://www.9news",config:E},{site:"https://staging.9news",config:E},{site:"https://www.yourtv",config:f},{site:"https://staging.yourtv",config:f},{site:"https://9now",config:S},{site:"https://creative-preview-an.com",config:f}],L=()=>{const e=window.document.getElementById("nineContent");e&&(e.style.backgroundColor=t.siteBackgroundColor),l&&(A.setProperty("--masthead-height","250px"),A.height="var(--masthead-height)"),n(),a(),N(),v(),u.addEventListener("scroll",p,{passive:!0}),r=setTimeout(p,50)},D=()=>{let e=null;return e=y.querySelector('div[id*="billboard"][id*="above"]'),e},N=()=>{let e=null;if(!window.parent)return e;if(e=y.querySelector('div[id*="halfpage"][id*="above"]'),!e)return;let c=e;for(let d=0;d<3;d++)if(c=c.parentNode,c&&getComputedStyle(c).position==="sticky"){c.setAttribute("style",`top: ${t.stickyMargin.offset}px`);break}},I=()=>{const e=u.location.href;for(let c=0;c<B.length;c+=1)if(e.indexOf(B[c].site)>=0)return B[c].config},a=()=>{if(!i)return;const e=i.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)"},n=()=>{if(!m)return;const e=m.style;m.className="",e.minHeight="250px",e.marginTop=t.adNodeMarginTop+"px",e.marginBottom=t.adNodeMarginBottom+"px",e.position="static",e.display="block",t.zIndex&&t.zIndex()},v=()=>{s=y.querySelector('div[data-contentunit-id="stan"]')?.parentNode||y.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode||y.querySelector('div[class*="__MyContainer"]')||y.querySelector('div[class*="__ArticleContainer"]')||y.querySelector('div[class*="__VideoIndexComponent"]')||y.querySelector("div.container.layout")||y.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 g=0,o=0;const p=()=>{const e=u.scrollY,c=e>g,d=e>b?e-t.maskOffset:0,k=Math.abs(d-o);if(s)if(c&&d>o)if(k>100){const x=Math.max(0,d-100);s.style.transition="none",s.style.setProperty("--mask-inset",`${x}px`),s.offsetHeight,s.style.transition="clip-path 0.3s ease-out",s.style.setProperty("--mask-inset",`${d}px`)}else s.style.transition="clip-path 0.3s ease-out",s.style.setProperty("--mask-inset",`${d}px`);else s.style.transition="none",s.style.setProperty("--mask-inset",`${d}px`);g=e,o=d,e>b?(i.style.setProperty("--transform-y",`${-h}px`),A.setProperty("--masthead-height","100px"),window.CollantOn||window.goCollant()):e>h&&e<=b?(i.style.setProperty("--transform-y",`${-h}px`),A.setProperty("--masthead-height",`${250+h-e}px`),window.CollantOn&&window.goBillboard()):e>=0&&e<=h&&(i.style.setProperty("--transform-y",`${-e}px`),A.setProperty("--masthead-height","250px"),window.CollantOn&&window.goBillboard())},m=D(),t=I();if(!t)return()=>{};let r=null;const h=-t.responsiveScroll+w,b=h+150;return L(),()=>{u.removeEventListener("scroll",p),r&&(clearTimeout(r),r=null)}},$=(w,i,u)=>{const y=window.frameElement?window.frameElement:null;if(!y)return()=>{};const l=window.parent;if(!l||l===window)return()=>{};let A=null;try{A=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=(h,b)=>h.forEach(e=>b.forEach(([c,d])=>e.style[c]=d));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")}},f={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(h,b)=>h.forEach(e=>b.forEach(([c,d])=>e.style[c]=d));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")}},S={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(h,b)=>h.forEach(e=>b.forEach(([c,d])=>e.style[c]=d));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")}},q={siteBackgroundColor:"#ffffff",logoTop:"44px",logoLeft:"50%",logoTransform:"translateX(-50%)",logoSmallLeft:"50%",logoSmallTransform:"translateX(-50%)",logoSmallFilter:"none",zIndex:function(){const t=window.parent.document,r=(h,b)=>h.forEach(e=>b.forEach(([c,d])=>e.style[c]=d));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=(h,b)=>h.forEach(e=>b.forEach(([c,d])=>e.style[c]=d));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")}},E=[{site:"https://www.nine.com.au/sport",config:s},{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:s},{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:q},{site:"https://render-web-nine-production-v1.ffxblue.com.au",config:q},{site:"https://preview.nine.com.au/",config:q},{site:"https://www.nine",config:q},{site:"https://staging.nine",config:q},{site:"https://entertainment",config:f},{site:"https://celebrity",config:f},{site:"https://homes",config:f},{site:"https://travel",config:f},{site:"https://honey",config:f},{site:"https://style",config:f},{site:"https://coach",config:f},{site:"https://kitchen",config:f},{site:"https://finance",config:f},{site:"https://wwos",config:M},{site:"https://staging.wwos",config:M},{site:"https://www.9news",config:C},{site:"https://staging.9news",config:C},{site:"https://www.yourtv",config:f},{site:"https://staging.yourtv",config:f},{site:"https://9now",config:S},{site:"https://creative-preview-an.com",config:f}],B=()=>{const t=window.document.getElementById("logo-small");t&&(t.style.left=g.logoSmallLeft,t.style.transform=g.logoSmallTransform,t.style.filter=g.logoSmallFilter),I(),N(),l.addEventListener("scroll",n),o=setTimeout(n,50)},L=()=>{let t=null;return t=A.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'),t},D=()=>{const t=l.location.href;for(let r=0;r<E.length;r+=1)if(t.indexOf(E[r].site)>=0)return E[r].config},N=()=>{if(!y)return;const t=y.style;t.width="100%",t.height=`${i}px`,t.position="relative"},I=()=>{if(!v)return;const t=v.style;t.maxHeight=`${i}px`,t.minHeight=`${i}px`,t.marginTop="0px",t.marginBottom="0px",t.position="absolute",t.width="1900px",t.top=g.logoTop,t.left=g.logoLeft,t.transform=g.logoTransform,t.zIndex="10000",t.pointerEvents="none",g.zIndex&&g.zIndex()},a=t=>{if(!v)return;const r=v.style;t==="big"&&!window.bigActive?(r.maxHeight=`${i}px`,r.minHeight=`${i}px`,r.position="absolute",r.top=g.logoTop,r.zIndex="10000",window.loadBig()):t==="small"&&!window.smallActive&&(r.maxHeight=`${u}px`,r.minHeight=`${u}px`,r.position="fixed",r.top="0px",r.zIndex="100000",window.loadSmall())},n=()=>{const t=l.scrollY;y.style,t>=0&&t<=p?a("big"):t>p&&(t>m?a("small"):a("big"),m=t<=0?0:t)},v=L(),g=D();if(!g)return()=>{};let o=null;const p=w;let m=0;return B(),()=>{l.removeEventListener("scroll",n),o&&(clearTimeout(o),o=null)}},O=((w,i=50)=>`linear(${Array.from({length:i+1},(y,l)=>w(l/i)).map(y=>+y.toFixed(4)).join(", ")})`)(w=>{if(w===0||w===1)return w;const i=2*Math.PI/3;return Math.pow(2,-10*w)*Math.sin((w*10-.75)*i)+1}),F=(w={})=>{const i={adScrollHeight:"300vh",bandHeight:24,bandBg:"#222",bandColor:"#fff",bandFontSize:"10px",bandFontFamily:"Arial, Helvetica, sans-serif",bandLetterSpacing:"1px",labelTop:"Advertisement",labelBottomResume:"Scroll to continue",labelBottomMid:"Keep scrolling",labelBottomLate:"Almost there",labelBottomNow:"Content now ↓",progressBarColor:"rgba(255,255,255,0.35)",zIndexTop:9,zIndexBottom:8,snapPx:50,snapOverlap:2,stretchOverlap:4,snapDuration:.9,snapEase:O,onEnter:null,onExit:null,onProgress:null,thresholds:[],...w},u=window.frameElement?window.frameElement:null;if(!u)return()=>{};const y=window.parent;if(!y||y===window)return()=>{};let l=null;try{l=y.document,y.location.href}catch{return()=>{}}const s=(()=>{const a=l.querySelector("#adspot-mobile-mobile-3-above");if(a)return a;let n=u.parentElement;for(;n&&n!==l.body;){if(n.id&&n.id.includes("adspot"))return n;n=n.parentElement}return u.parentElement})();if(!s)return()=>{};const f=s.getAttribute("style"),S=u.getAttribute("style"),q={width:"100vw",marginLeft:"calc(50% - 50vw)",height:i.bandHeight+"px",backgroundColor:i.bandBg,color:i.bandColor,fontSize:i.bandFontSize,fontFamily:i.bandFontFamily,textTransform:"uppercase",letterSpacing:i.bandLetterSpacing,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"};(()=>{const a=s.style;a.height=i.adScrollHeight,a.position="relative",a.clipPath=`inset(-${i.bandHeight}px 0 0 0)`,a.overflow="visible",a.width="100vw",a.maxWidth="100vw",a.marginLeft="calc(50% - 50vw)",a.marginRight="0",a.marginTop="0",a.marginBottom="0",a.padding="0",a.className="";const n=u.style;n.position="fixed",n.top="0",n.left="0",n.width="100vw",n.height="100vh",n.maxWidth="100vw",n.margin="0",n.padding="0",n.border="none",n.zIndex="1";const v=l.createElement("div");v.id="interscroller-top-band",v.textContent=i.labelTop,Object.assign(v.style,q,{position:"sticky",bottom:"0",zIndex:i.zIndexTop,transformOrigin:"top center"});const g=s.previousElementSibling;g?g.appendChild(v):s.parentElement.insertBefore(v,s);const o=l.createElement("div");o.id="interscroller-bottom-band",Object.assign(o.style,q,{position:"relative",top:"0",zIndex:i.zIndexBottom,display:"none",overflow:"hidden"});const p=l.createElement("span");if(p.id="interscroller-bottom-label",p.textContent=i.labelBottomResume,p.style.cssText="position:relative;z-index:1;pointer-events:none;",o.appendChild(p),i.progressBarColor){const m=l.createElement("span");m.id="interscroller-bottom-progress",m.style.cssText=["position:absolute","inset:0","width:0%",`background:${i.progressBarColor}`,"transition:none","z-index:0","pointer-events:none"].join(";"),o.appendChild(m)}s.after(o)})();const C=i.bandHeight,E=i.snapPx;let B=!1,L=!1,D=!1;const N=(i.thresholds||[]).map(()=>!1),I=()=>{const a=l.querySelector("#interscroller-top-band"),n=l.querySelector("#interscroller-bottom-band");if(!n)return;const v=s.getBoundingClientRect(),g=y.innerHeight,o=v.top<=g,p=v.bottom<=g-C,m=s.offsetHeight,t=Math.min(1,Math.max(0,(g-v.top)/(m+g))),r=Math.min(1,Math.max(0,(g-v.top)/(m+C))),h=Math.min(1,Math.max(0,(g-v.top)/m)),b=Math.min(v.bottom,g)-Math.max(v.top-C,0),e=Math.min(1,Math.max(0,b/g)),c=Math.max(0,Math.round(v.bottom-g));if(!L&&o&&i.onEnter&&i.onEnter(),!D&&p&&i.onExit&&i.onExit(),L=o,D=p,i.onProgress&&i.onProgress({scrollProgress:t,adExposure:h,viewportCoverage:e,pxRemaining:c}),(i.thresholds||[]).forEach((x,T)=>{const P=N[T],R=t>=x.at;!P&&R?(N[T]=!0,x.onEnter&&x.onEnter(t)):P&&!R&&(N[T]=!1,x.onLeave&&x.onLeave(t))}),a&&o&&!p){const x=g-v.top;if(!B&&x<=E-i.snapOverlap){const P=1+(Math.max(0,x/E)*E+i.stretchOverlap)/C;a.style.transition="none",a.style.transform=`scaleY(${P})`}else!B&&x>E-i.snapOverlap&&(B=!0,a.style.transition=`transform ${i.snapDuration}s ${i.snapEase}`,a.style.transform="scaleY(1)")}else a&&!o&&(B=!1,a.style.transition="none",a.style.transform="scaleY(1)");const d=l.querySelector("#interscroller-bottom-label"),k=l.querySelector("#interscroller-bottom-progress");p?(n.style.position="sticky",n.style.top="0",n.style.bottom="",n.style.left="",n.style.marginLeft="calc(50% - 50vw)",n.style.width="100vw",n.style.display="flex",d&&(d.textContent=i.labelBottomNow),k&&(k.style.width="100%")):o?(d&&(d.textContent=c>0?r<.2?i.labelBottomResume:r<.75?i.labelBottomMid:i.labelBottomLate:i.labelBottomNow),k&&(k.style.width=`${Math.round(r*100)}%`),n.style.position="fixed",n.style.bottom="0",n.style.top="",n.style.left="0",n.style.marginLeft="0",n.style.width="100vw",n.style.display="flex"):n.style.display="none"};return I(),y.addEventListener("scroll",I,{passive:!0}),()=>{y.removeEventListener("scroll",I);const a=l.querySelector("#interscroller-top-band"),n=l.querySelector("#interscroller-bottom-band");a&&a.remove(),n&&n.remove(),f?s.setAttribute("style",f):s.removeAttribute("style"),S?u.setAttribute("style",S):u.removeAttribute("style")}};let _=()=>{};function X({adFormat:w="",stickyOffset:i=0,logoPosX:u=0,logoHeight:y=0,logoSmallHeight:l=0,...A}={}){typeof _=="function"&&_();let s=()=>{};return w==="fireplace"?s=H(i):w==="fireplace-collant"?s=z(i):w==="logomorph"?s=$(u,y,l):w==="interscroller"?s=F(A):console.warn("[powered-ad-config] Unknown ad format:",w),_=typeof s=="function"?s:()=>{},_}return X}));
|
package/package.json
CHANGED