powered-ad-config 0.0.97 → 0.0.98
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 +382 -386
- package/dist/powered-ad-config.umd.js +7 -7
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
if (!
|
|
1
|
+
const V = (S) => {
|
|
2
|
+
const n = window.frameElement ? window.frameElement : null;
|
|
3
|
+
if (!n) return () => {
|
|
4
4
|
};
|
|
5
|
-
const
|
|
6
|
-
if (!
|
|
5
|
+
const c = window.parent;
|
|
6
|
+
if (!c || c === window) return () => {
|
|
7
7
|
};
|
|
8
|
-
let
|
|
8
|
+
let a = null;
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
a = c.document, c.location.href;
|
|
11
11
|
} catch {
|
|
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 F = (S) => {
|
|
|
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, m = (w, t) => w.forEach((i) => t.forEach(([d, v]) => i.style[d] = v));
|
|
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"), m(o.querySelectorAll(".column"), [["position", "relative"]]), m(o.querySelectorAll(".advert"), [["position", "relative"]]), m(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
|
+
}, E = {
|
|
29
29
|
siteBackgroundColor: "#ffffff",
|
|
30
30
|
fireplaceLeftMargin: 0,
|
|
31
31
|
adNodeMarginTop: -24,
|
|
@@ -35,10 +35,10 @@ const F = (S) => {
|
|
|
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, m = (w, t) => w.forEach((i) => t.forEach(([d, v]) => i.style[d] = v));
|
|
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"), m(o.querySelectorAll(".column"), [["position", "relative"]]), m(o.querySelectorAll(".advert"), [["position", "relative"]]), m(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
|
+
}, r = {
|
|
42
42
|
siteBackgroundColor: "#ffffff",
|
|
43
43
|
fireplaceLeftMargin: 0,
|
|
44
44
|
adNodeMarginTop: -25,
|
|
@@ -50,15 +50,15 @@ const F = (S) => {
|
|
|
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 w = o.createElement("style");
|
|
54
|
+
w.innerHTML = `
|
|
55
55
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
56
56
|
position: static;
|
|
57
57
|
}
|
|
58
|
-
`, o.head.appendChild(
|
|
58
|
+
`, o.head.appendChild(w);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
},
|
|
61
|
+
}, f = {
|
|
62
62
|
siteBackgroundColor: "#ffffff",
|
|
63
63
|
fireplaceLeftMargin: 0,
|
|
64
64
|
adNodeMarginTop: -24,
|
|
@@ -68,17 +68,17 @@ const F = (S) => {
|
|
|
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, w = o.querySelector("footer").previousElementSibling;
|
|
72
|
+
if (w && w.tagName.toLowerCase() === "div" && (w.style.position = "relative"), o.querySelector('div[id*="tablet"][id*="takeover"]')) {
|
|
73
|
+
let i = o.createElement("style");
|
|
74
|
+
i.innerHTML = `
|
|
75
75
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
76
76
|
position: static;
|
|
77
77
|
}
|
|
78
|
-
`, o.head.appendChild(
|
|
78
|
+
`, o.head.appendChild(i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
},
|
|
81
|
+
}, x = {
|
|
82
82
|
siteBackgroundColor: "#f7f7f7",
|
|
83
83
|
fireplaceLeftMargin: 0,
|
|
84
84
|
adNodeMarginTop: -25,
|
|
@@ -88,8 +88,8 @@ const F = (S) => {
|
|
|
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, m = (t, i) => t.forEach((d) => i.forEach(([v, e]) => d.style[v] = e));
|
|
92
|
+
if (o.querySelector(".container--padded")?.setAttribute("style", "position:relative"), m(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 F = (S) => {
|
|
|
98
98
|
`, o.head.appendChild(t);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
},
|
|
101
|
+
}, h = {
|
|
102
102
|
siteBackgroundColor: "#ffffff",
|
|
103
103
|
fireplaceLeftMargin: 0,
|
|
104
104
|
adNodeMarginTop: -32,
|
|
@@ -111,84 +111,84 @@ const F = (S) => {
|
|
|
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:
|
|
123
|
-
{ site: "https://render-web-nine-staging-v1.ffxblue.com.au", config:
|
|
124
|
-
{ site: "https://render-web-nine-production-v1.ffxblue.com.au", config:
|
|
125
|
-
{ site: "https://preview.nine.com.au/", config:
|
|
126
|
-
{ site: "https://www.nine", config:
|
|
127
|
-
{ site: "https://staging.nine", config:
|
|
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:
|
|
137
|
-
{ site: "https://wwos", config:
|
|
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
|
-
],
|
|
114
|
+
}, C = [
|
|
115
|
+
{ site: "https://www.nine.com.au/sport", config: f },
|
|
116
|
+
{ site: "https://www.nine.com.au/product-reviews", config: E },
|
|
117
|
+
{ site: "https://www.nine.com.au/property", config: E },
|
|
118
|
+
{ site: "https://www.nine.com.au/entertainment", config: E },
|
|
119
|
+
{ site: "https://staging.nine.com.au/sport", config: f },
|
|
120
|
+
{ site: "https://staging.nine.com.au/product-reviews", config: E },
|
|
121
|
+
{ site: "https://staging.nine.com.au/property", config: E },
|
|
122
|
+
{ site: "https://staging.nine.com.au/entertainment", config: E },
|
|
123
|
+
{ site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: r },
|
|
124
|
+
{ site: "https://render-web-nine-production-v1.ffxblue.com.au", config: r },
|
|
125
|
+
{ site: "https://preview.nine.com.au/", config: r },
|
|
126
|
+
{ site: "https://www.nine", config: r },
|
|
127
|
+
{ site: "https://staging.nine", config: r },
|
|
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
|
+
{ site: "https://wwos", config: x },
|
|
138
|
+
{ site: "https://staging.wwos", config: f },
|
|
139
|
+
{ site: "https://www.9news", config: h },
|
|
140
|
+
{ site: "https://staging.9news", config: h },
|
|
141
|
+
{ site: "https://www.yourtv", config: l },
|
|
142
|
+
{ site: "https://staging.yourtv", config: l },
|
|
143
|
+
{ site: "https://9now", config: E },
|
|
144
|
+
{ site: "https://creative-preview-an.com", config: l }
|
|
145
|
+
], M = () => {
|
|
146
146
|
const o = window.document.getElementById("nineContent");
|
|
147
|
-
o && (o.style.backgroundColor =
|
|
148
|
-
},
|
|
147
|
+
o && (o.style.backgroundColor = y.siteBackgroundColor), P(), u(), c.addEventListener("scroll", N), g = setTimeout(N, 50);
|
|
148
|
+
}, b = () => {
|
|
149
149
|
let o = null;
|
|
150
|
-
return o =
|
|
151
|
-
},
|
|
152
|
-
const o =
|
|
153
|
-
for (let
|
|
154
|
-
if (o.indexOf(
|
|
155
|
-
return
|
|
156
|
-
},
|
|
157
|
-
if (!
|
|
158
|
-
const o =
|
|
150
|
+
return o = a.querySelector('div[id*="billboard"][id*="above"]'), o;
|
|
151
|
+
}, T = () => {
|
|
152
|
+
const o = c.location.href;
|
|
153
|
+
for (let m = 0; m < C.length; m += 1)
|
|
154
|
+
if (o.indexOf(C[m].site) >= 0)
|
|
155
|
+
return C[m].config;
|
|
156
|
+
}, u = () => {
|
|
157
|
+
if (!n) return;
|
|
158
|
+
const o = n.style;
|
|
159
159
|
o.width = "100%", o.height = "1000px", o.position = "fixed", o.left = "50%", o.transform = "translate(-50%, 0)";
|
|
160
|
-
},
|
|
160
|
+
}, P = () => {
|
|
161
161
|
if (!I) return;
|
|
162
162
|
const o = I.style;
|
|
163
|
-
I.className = "", o.minHeight = "250px", o.marginTop =
|
|
164
|
-
},
|
|
165
|
-
const o =
|
|
166
|
-
o >= 0 && o <=
|
|
167
|
-
}, I =
|
|
168
|
-
if (!
|
|
163
|
+
I.className = "", o.minHeight = "250px", o.marginTop = y.adNodeMarginTop + "px", o.marginBottom = y.adNodeMarginBottom + "px", o.position = "static", o.display = "block", y.zIndex && y.zIndex();
|
|
164
|
+
}, N = () => {
|
|
165
|
+
const o = c.scrollY, m = n.style, w = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
|
|
166
|
+
o >= 0 && o <= A ? (m.transform = `translate(-50%, ${-o}px)`, w.transform = "translateY(0)") : o > A && o <= k ? (m.transform = `translate(-50%, ${-A}px)`, w.transform = `translateY(${A - o}px)`) : o > k && (m.transform = `translate(-50%, ${-A}px)`, w.transform = "translateY(-250px)");
|
|
167
|
+
}, I = b(), y = T();
|
|
168
|
+
if (!y) return () => {
|
|
169
169
|
};
|
|
170
|
-
let
|
|
171
|
-
const
|
|
172
|
-
return
|
|
173
|
-
|
|
170
|
+
let g = null;
|
|
171
|
+
const A = -y.responsiveScroll + S, k = A + 250;
|
|
172
|
+
return M(), () => {
|
|
173
|
+
c.removeEventListener("scroll", N), g && (clearTimeout(g), g = null);
|
|
174
174
|
};
|
|
175
|
-
},
|
|
176
|
-
const
|
|
177
|
-
if (!
|
|
175
|
+
}, Y = (S) => {
|
|
176
|
+
const n = window.frameElement ? window.frameElement : null;
|
|
177
|
+
if (!n) return () => {
|
|
178
178
|
};
|
|
179
|
-
const
|
|
180
|
-
if (!
|
|
179
|
+
const c = window.parent;
|
|
180
|
+
if (!c || c === window) return () => {
|
|
181
181
|
};
|
|
182
|
-
let
|
|
182
|
+
let a = null;
|
|
183
183
|
try {
|
|
184
|
-
|
|
184
|
+
a = c.document, c.location.href;
|
|
185
185
|
} catch {
|
|
186
186
|
return () => {
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
let
|
|
191
|
-
const
|
|
189
|
+
const l = document.getElementById("nineMasthead"), E = l ? l.style : {};
|
|
190
|
+
let r;
|
|
191
|
+
const f = {
|
|
192
192
|
siteBackgroundColor: "#ffffff",
|
|
193
193
|
fireplaceLeftMargin: 0,
|
|
194
194
|
adNodeMarginTop: -24,
|
|
@@ -199,10 +199,10 @@ const F = (S) => {
|
|
|
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, s = (p, q) => p.forEach((B) => q.forEach(([L, H]) => B.style[L] = H));
|
|
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"), s(e.querySelectorAll(".column"), [["position", "relative"]]), s(e.querySelectorAll(".advert"), [["position", "relative"]]), s(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
|
+
}, x = {
|
|
206
206
|
siteBackgroundColor: "#ffffff",
|
|
207
207
|
fireplaceLeftMargin: 0,
|
|
208
208
|
adNodeMarginTop: -24,
|
|
@@ -213,10 +213,10 @@ const F = (S) => {
|
|
|
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, s = (p, q) => p.forEach((B) => q.forEach(([L, H]) => B.style[L] = H));
|
|
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"), s(e.querySelectorAll(".column"), [["position", "relative"]]), s(e.querySelectorAll(".advert"), [["position", "relative"]]), s(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
|
+
}, h = {
|
|
220
220
|
siteBackgroundColor: "#ffffff",
|
|
221
221
|
fireplaceLeftMargin: 0,
|
|
222
222
|
adNodeMarginTop: -24,
|
|
@@ -229,15 +229,15 @@ const F = (S) => {
|
|
|
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 p = e.createElement("style");
|
|
233
|
+
p.innerHTML = `
|
|
234
234
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
235
235
|
position: static;
|
|
236
236
|
}
|
|
237
|
-
`, e.head.appendChild(
|
|
237
|
+
`, e.head.appendChild(p);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
},
|
|
240
|
+
}, C = {
|
|
241
241
|
siteBackgroundColor: "#ffffff",
|
|
242
242
|
fireplaceLeftMargin: 0,
|
|
243
243
|
adNodeMarginTop: -24,
|
|
@@ -248,17 +248,17 @@ const F = (S) => {
|
|
|
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, p = e.querySelector("footer").previousElementSibling;
|
|
252
|
+
if (p && p.tagName.toLowerCase() === "div" && (p.style.position = "relative"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
|
|
253
|
+
let B = e.createElement("style");
|
|
254
|
+
B.innerHTML = `
|
|
255
255
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
256
256
|
position: static;
|
|
257
257
|
}
|
|
258
|
-
`, e.head.appendChild(
|
|
258
|
+
`, e.head.appendChild(B);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
},
|
|
261
|
+
}, M = {
|
|
262
262
|
siteBackgroundColor: "#ffffff",
|
|
263
263
|
fireplaceLeftMargin: 0,
|
|
264
264
|
adNodeMarginTop: -25,
|
|
@@ -269,17 +269,17 @@ const F = (S) => {
|
|
|
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, s = (q, B) => q.forEach((L) => B.forEach(([H, _]) => L.style[H] = _));
|
|
273
|
+
if (e.querySelector(".container--padded")?.setAttribute("style", "position:relative"), s(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 q = e.createElement("style");
|
|
275
|
+
q.innerHTML = `
|
|
276
276
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
277
277
|
position: static;
|
|
278
278
|
}
|
|
279
|
-
`, e.head.appendChild(
|
|
279
|
+
`, e.head.appendChild(q);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
},
|
|
282
|
+
}, b = {
|
|
283
283
|
siteBackgroundColor: "#ffffff",
|
|
284
284
|
fireplaceLeftMargin: 0,
|
|
285
285
|
adNodeMarginTop: -32,
|
|
@@ -292,108 +292,108 @@ const F = (S) => {
|
|
|
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 s = e.querySelector('[class*="VideoIndexComponent"]');
|
|
296
|
+
s && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), s.style.maxWidth = "1190px", s.style.margin = "auto", s.style.position = "relative");
|
|
297
297
|
}
|
|
298
|
-
},
|
|
299
|
-
{ site: "https://www.nine.com.au/sport", config:
|
|
300
|
-
{ site: "https://www.nine.com.au/product-reviews", config:
|
|
301
|
-
{ site: "https://www.nine.com.au/property", config:
|
|
302
|
-
{ site: "https://www.nine.com.au/entertainment", config:
|
|
303
|
-
{ site: "https://staging.nine.com.au/sport", config:
|
|
304
|
-
{ site: "https://staging.nine.com.au/product-reviews", config:
|
|
305
|
-
{ site: "https://staging.nine.com.au/property", config:
|
|
306
|
-
{ site: "https://staging.nine.com.au/entertainment", config:
|
|
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:
|
|
327
|
-
{ site: "https://9now", config:
|
|
328
|
-
{ site: "https://creative-preview-an.com", config:
|
|
329
|
-
],
|
|
298
|
+
}, T = [
|
|
299
|
+
{ site: "https://www.nine.com.au/sport", config: C },
|
|
300
|
+
{ site: "https://www.nine.com.au/product-reviews", config: x },
|
|
301
|
+
{ site: "https://www.nine.com.au/property", config: x },
|
|
302
|
+
{ site: "https://www.nine.com.au/entertainment", config: x },
|
|
303
|
+
{ site: "https://staging.nine.com.au/sport", config: C },
|
|
304
|
+
{ site: "https://staging.nine.com.au/product-reviews", config: x },
|
|
305
|
+
{ site: "https://staging.nine.com.au/property", config: x },
|
|
306
|
+
{ site: "https://staging.nine.com.au/entertainment", config: x },
|
|
307
|
+
{ site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: h },
|
|
308
|
+
{ site: "https://render-web-nine-production-v1.ffxblue.com.au", config: h },
|
|
309
|
+
{ site: "https://preview.nine.com.au/", config: h },
|
|
310
|
+
{ site: "https://www.nine", config: h },
|
|
311
|
+
{ site: "https://staging.nine", config: h },
|
|
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: M },
|
|
322
|
+
{ site: "https://staging.wwos", config: C },
|
|
323
|
+
{ site: "https://www.9news", config: b },
|
|
324
|
+
{ site: "https://staging.9news", config: b },
|
|
325
|
+
{ site: "https://www.yourtv", config: f },
|
|
326
|
+
{ site: "https://staging.yourtv", config: f },
|
|
327
|
+
{ site: "https://9now", config: x },
|
|
328
|
+
{ site: "https://creative-preview-an.com", config: f }
|
|
329
|
+
], u = () => {
|
|
330
330
|
const e = window.document.getElementById("nineContent");
|
|
331
|
-
e && (e.style.backgroundColor = t.siteBackgroundColor),
|
|
332
|
-
},
|
|
331
|
+
e && (e.style.backgroundColor = t.siteBackgroundColor), l && (E.setProperty("--masthead-height", "250px"), E.height = "var(--masthead-height)"), g(), y(), N(), A(), c.addEventListener("scroll", m, { passive: !0 }), i = setTimeout(m, 50);
|
|
332
|
+
}, P = () => {
|
|
333
333
|
let e = null;
|
|
334
|
-
return e =
|
|
335
|
-
},
|
|
334
|
+
return e = a.querySelector('div[id*="billboard"][id*="above"]'), e;
|
|
335
|
+
}, N = () => {
|
|
336
336
|
let e = null;
|
|
337
337
|
if (!window.parent) return e;
|
|
338
|
-
if (e =
|
|
339
|
-
let
|
|
340
|
-
for (let
|
|
341
|
-
if (
|
|
342
|
-
|
|
338
|
+
if (e = a.querySelector('div[id*="halfpage"][id*="above"]'), !e) return;
|
|
339
|
+
let s = e;
|
|
340
|
+
for (let p = 0; p < 3; p++)
|
|
341
|
+
if (s = s.parentNode, s && getComputedStyle(s).position === "sticky") {
|
|
342
|
+
s.setAttribute("style", `top: ${t.stickyMargin.offset}px`);
|
|
343
343
|
break;
|
|
344
344
|
}
|
|
345
345
|
}, I = () => {
|
|
346
|
-
const e =
|
|
347
|
-
for (let
|
|
348
|
-
if (e.indexOf(
|
|
349
|
-
return
|
|
350
|
-
},
|
|
351
|
-
if (!
|
|
352
|
-
const e =
|
|
346
|
+
const e = c.location.href;
|
|
347
|
+
for (let s = 0; s < T.length; s += 1)
|
|
348
|
+
if (e.indexOf(T[s].site) >= 0)
|
|
349
|
+
return T[s].config;
|
|
350
|
+
}, y = () => {
|
|
351
|
+
if (!n) return;
|
|
352
|
+
const e = n.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
|
-
}, h = () => {
|
|
355
|
-
if (!s) return;
|
|
356
|
-
const e = s.style;
|
|
357
|
-
s.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
354
|
}, g = () => {
|
|
359
|
-
|
|
355
|
+
if (!w) return;
|
|
356
|
+
const e = w.style;
|
|
357
|
+
w.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
|
+
}, A = () => {
|
|
359
|
+
r = a.querySelector('div[data-contentunit-id="stan"]')?.parentNode || a.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode || a.querySelector('div[class*="__MyContainer"]') || a.querySelector('div[class*="__ArticleContainer"]') || a.querySelector('div[class*="__VideoIndexComponent"]') || a.querySelector("div.container.layout") || a.querySelector("main.container.layout"), r && (r.style.willChange = "clip-path", r.style.transition = "none", r.style.webkitBackfaceVisibility = "hidden", r.style.backfaceVisibility = "hidden", r.style.transform = "translate3d(0,0,0)", r.style.backgroundColor = t.siteBackgroundColor, r.style.setProperty("--mask-inset", "0px"), r.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
|
|
360
360
|
};
|
|
361
|
-
let
|
|
362
|
-
const
|
|
363
|
-
const e =
|
|
364
|
-
if (
|
|
365
|
-
if (
|
|
366
|
-
if (
|
|
367
|
-
const
|
|
368
|
-
|
|
361
|
+
let k = 0, o = 0;
|
|
362
|
+
const m = () => {
|
|
363
|
+
const e = c.scrollY, s = e > k, p = e > v ? e - t.maskOffset : 0, q = Math.abs(p - o);
|
|
364
|
+
if (r)
|
|
365
|
+
if (s && p > o)
|
|
366
|
+
if (q > 100) {
|
|
367
|
+
const B = Math.max(0, p - 100);
|
|
368
|
+
r.style.transition = "none", r.style.setProperty("--mask-inset", `${B}px`), r.offsetHeight, r.style.transition = "clip-path 0.3s ease-out", r.style.setProperty("--mask-inset", `${p}px`);
|
|
369
369
|
} else
|
|
370
|
-
|
|
370
|
+
r.style.transition = "clip-path 0.3s ease-out", r.style.setProperty("--mask-inset", `${p}px`);
|
|
371
371
|
else
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
},
|
|
372
|
+
r.style.transition = "none", r.style.setProperty("--mask-inset", `${p}px`);
|
|
373
|
+
k = e, o = p, e > v ? (n.style.setProperty("--transform-y", `${-d}px`), E.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > d && e <= v ? (n.style.setProperty("--transform-y", `${-d}px`), E.setProperty("--masthead-height", `${250 + d - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= d && (n.style.setProperty("--transform-y", `${-e}px`), E.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
|
|
374
|
+
}, w = P(), t = I();
|
|
375
375
|
if (!t) return () => {
|
|
376
376
|
};
|
|
377
|
-
let
|
|
378
|
-
const
|
|
379
|
-
return
|
|
380
|
-
|
|
377
|
+
let i = null;
|
|
378
|
+
const d = -t.responsiveScroll + S, v = d + 150;
|
|
379
|
+
return u(), () => {
|
|
380
|
+
c.removeEventListener("scroll", m), i && (clearTimeout(i), i = null);
|
|
381
381
|
};
|
|
382
|
-
}, X = (S,
|
|
383
|
-
const
|
|
384
|
-
if (!
|
|
382
|
+
}, X = (S, n, c) => {
|
|
383
|
+
const a = window.frameElement ? window.frameElement : null;
|
|
384
|
+
if (!a) return () => {
|
|
385
385
|
};
|
|
386
|
-
const
|
|
387
|
-
if (!
|
|
386
|
+
const l = window.parent;
|
|
387
|
+
if (!l || l === window) return () => {
|
|
388
388
|
};
|
|
389
|
-
let
|
|
389
|
+
let E = null;
|
|
390
390
|
try {
|
|
391
|
-
|
|
391
|
+
E = l.document, l.location.href;
|
|
392
392
|
} catch {
|
|
393
393
|
return () => {
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
const
|
|
396
|
+
const r = {
|
|
397
397
|
siteBackgroundColor: "#ffffff",
|
|
398
398
|
logoTop: "44px",
|
|
399
399
|
logoLeft: "50%",
|
|
@@ -402,10 +402,10 @@ const F = (S) => {
|
|
|
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, i = (d, v) => d.forEach((e) => v.forEach(([s, p]) => e.style[s] = p));
|
|
406
|
+
t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), i(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,10 +414,10 @@ const F = (S) => {
|
|
|
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, i = (d, v) => d.forEach((e) => v.forEach(([s, p]) => e.style[s] = p));
|
|
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"), i(t.querySelectorAll(".column"), [["position", "relative"]]), i(t.querySelectorAll(".advert"), [["position", "relative"]]), i(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
|
+
}, x = {
|
|
421
421
|
siteBackgroundColor: "#ffffff",
|
|
422
422
|
logoTop: "44px",
|
|
423
423
|
logoLeft: "50%",
|
|
@@ -426,10 +426,10 @@ const F = (S) => {
|
|
|
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, i = (d, v) => d.forEach((e) => v.forEach(([s, p]) => e.style[s] = p));
|
|
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"), i(t.querySelectorAll(".column"), [["position", "relative"]]), i(t.querySelectorAll(".advert"), [["position", "relative"]]), i(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
|
+
}, h = {
|
|
433
433
|
siteBackgroundColor: "#ffffff",
|
|
434
434
|
logoTop: "44px",
|
|
435
435
|
logoLeft: "50%",
|
|
@@ -438,10 +438,10 @@ const F = (S) => {
|
|
|
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, i = (d, v) => d.forEach((e) => v.forEach(([s, p]) => e.style[s] = p));
|
|
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"), i(t.querySelectorAll(".advert"), [["position", "relative"]]), i(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"), i(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
|
+
}, C = {
|
|
445
445
|
siteBackgroundColor: "#ffffff",
|
|
446
446
|
logoTop: "-148px",
|
|
447
447
|
logoLeft: "50%",
|
|
@@ -450,10 +450,10 @@ const F = (S) => {
|
|
|
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, i = (d, v) => d.forEach((e) => v.forEach(([s, p]) => e.style[s] = p));
|
|
454
|
+
t.querySelector(".container--padded")?.setAttribute("style", "position:relative"), i(t.querySelectorAll(".advert"), [["position", "relative"]]), t.querySelector(".footer-netkit")?.setAttribute("style", "position:relative;max-width:1190px;left:50%;transform:translate(-50%,0);"), t.querySelector('div[type="BANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[type="MBANNER"]')?.setAttribute("style", "display:none"), t.querySelector('div[id*="sidepanel"][id*="above"]')?.setAttribute("style", "display:none");
|
|
455
455
|
}
|
|
456
|
-
},
|
|
456
|
+
}, M = {
|
|
457
457
|
siteBackgroundColor: "#ffffff",
|
|
458
458
|
logoTop: "44px",
|
|
459
459
|
logoLeft: "50%",
|
|
@@ -465,78 +465,78 @@ const F = (S) => {
|
|
|
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
|
-
},
|
|
469
|
-
{ site: "https://www.nine.com.au/sport", config:
|
|
470
|
-
{ site: "https://www.nine.com.au/product-reviews", config:
|
|
471
|
-
{ site: "https://www.nine.com.au/property", config:
|
|
472
|
-
{ site: "https://www.nine.com.au/entertainment", config:
|
|
473
|
-
{ site: "https://staging.nine.com.au/sport", config:
|
|
474
|
-
{ site: "https://staging.nine.com.au/product-reviews", config:
|
|
475
|
-
{ site: "https://staging.nine.com.au/property", config:
|
|
476
|
-
{ site: "https://staging.nine.com.au/entertainment", config:
|
|
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:
|
|
497
|
-
{ site: "https://9now", config:
|
|
498
|
-
{ site: "https://creative-preview-an.com", config:
|
|
499
|
-
],
|
|
468
|
+
}, b = [
|
|
469
|
+
{ site: "https://www.nine.com.au/sport", config: r },
|
|
470
|
+
{ site: "https://www.nine.com.au/product-reviews", config: x },
|
|
471
|
+
{ site: "https://www.nine.com.au/property", config: x },
|
|
472
|
+
{ site: "https://www.nine.com.au/entertainment", config: x },
|
|
473
|
+
{ site: "https://staging.nine.com.au/sport", config: r },
|
|
474
|
+
{ site: "https://staging.nine.com.au/product-reviews", config: x },
|
|
475
|
+
{ site: "https://staging.nine.com.au/property", config: x },
|
|
476
|
+
{ site: "https://staging.nine.com.au/entertainment", config: x },
|
|
477
|
+
{ site: "https://render-web-nine-staging-v1.ffxblue.com.au", config: h },
|
|
478
|
+
{ site: "https://render-web-nine-production-v1.ffxblue.com.au", config: h },
|
|
479
|
+
{ site: "https://preview.nine.com.au/", config: h },
|
|
480
|
+
{ site: "https://www.nine", config: h },
|
|
481
|
+
{ site: "https://staging.nine", config: h },
|
|
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: C },
|
|
492
|
+
{ site: "https://staging.wwos", config: C },
|
|
493
|
+
{ site: "https://www.9news", config: M },
|
|
494
|
+
{ site: "https://staging.9news", config: M },
|
|
495
|
+
{ site: "https://www.yourtv", config: f },
|
|
496
|
+
{ site: "https://staging.yourtv", config: f },
|
|
497
|
+
{ site: "https://9now", config: x },
|
|
498
|
+
{ site: "https://creative-preview-an.com", config: f }
|
|
499
|
+
], T = () => {
|
|
500
500
|
const t = window.document.getElementById("logo-small");
|
|
501
|
-
t && (t.style.left =
|
|
502
|
-
},
|
|
501
|
+
t && (t.style.left = k.logoSmallLeft, t.style.transform = k.logoSmallTransform, t.style.filter = k.logoSmallFilter), I(), N(), l.addEventListener("scroll", g), o = setTimeout(g, 50);
|
|
502
|
+
}, u = () => {
|
|
503
503
|
let t = null;
|
|
504
|
-
return t =
|
|
504
|
+
return t = E.querySelector('div[id*="desktop"][id*="takeover"][id*="above"]'), t;
|
|
505
|
+
}, P = () => {
|
|
506
|
+
const t = l.location.href;
|
|
507
|
+
for (let i = 0; i < b.length; i += 1)
|
|
508
|
+
if (t.indexOf(b[i].site) >= 0)
|
|
509
|
+
return b[i].config;
|
|
505
510
|
}, N = () => {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
return E[r].config;
|
|
510
|
-
}, M = () => {
|
|
511
|
-
if (!c) return;
|
|
512
|
-
const t = c.style;
|
|
513
|
-
t.width = "100%", t.height = `${i}px`, t.position = "relative";
|
|
511
|
+
if (!a) return;
|
|
512
|
+
const t = a.style;
|
|
513
|
+
t.width = "100%", t.height = `${n}px`, t.position = "relative";
|
|
514
514
|
}, I = () => {
|
|
515
|
-
if (!
|
|
516
|
-
const t =
|
|
517
|
-
t.maxHeight = `${
|
|
518
|
-
},
|
|
519
|
-
if (!
|
|
520
|
-
const
|
|
521
|
-
t === "big" && !window.bigActive ? (
|
|
522
|
-
},
|
|
523
|
-
const t =
|
|
524
|
-
|
|
525
|
-
},
|
|
526
|
-
if (!
|
|
515
|
+
if (!A) return;
|
|
516
|
+
const t = A.style;
|
|
517
|
+
t.maxHeight = `${n}px`, t.minHeight = `${n}px`, t.marginTop = "0px", t.marginBottom = "0px", t.position = "absolute", t.width = "1900px", t.top = k.logoTop, t.left = k.logoLeft, t.transform = k.logoTransform, t.zIndex = "10000", t.pointerEvents = "none", k.zIndex && k.zIndex();
|
|
518
|
+
}, y = (t) => {
|
|
519
|
+
if (!A) return;
|
|
520
|
+
const i = A.style;
|
|
521
|
+
t === "big" && !window.bigActive ? (i.maxHeight = `${n}px`, i.minHeight = `${n}px`, i.position = "absolute", i.top = k.logoTop, i.zIndex = "10000", window.loadBig()) : t === "small" && !window.smallActive && (i.maxHeight = `${c}px`, i.minHeight = `${c}px`, i.position = "fixed", i.top = "0px", i.zIndex = "100000", window.loadSmall());
|
|
522
|
+
}, g = () => {
|
|
523
|
+
const t = l.scrollY;
|
|
524
|
+
a.style, t >= 0 && t <= m ? y("big") : t > m && (t > w ? y("small") : y("big"), w = t <= 0 ? 0 : t);
|
|
525
|
+
}, A = u(), k = P();
|
|
526
|
+
if (!k) return () => {
|
|
527
527
|
};
|
|
528
528
|
let o = null;
|
|
529
|
-
const
|
|
530
|
-
let
|
|
531
|
-
return
|
|
532
|
-
|
|
529
|
+
const m = S;
|
|
530
|
+
let w = 0;
|
|
531
|
+
return T(), () => {
|
|
532
|
+
l.removeEventListener("scroll", g), o && (clearTimeout(o), o = null);
|
|
533
533
|
};
|
|
534
|
-
},
|
|
534
|
+
}, U = (S) => {
|
|
535
535
|
if (S === 0 || S === 1) return S;
|
|
536
|
-
const
|
|
537
|
-
return Math.pow(2, -10 * S) * Math.sin((S * 10 - 0.75) *
|
|
538
|
-
},
|
|
539
|
-
const
|
|
536
|
+
const n = 2 * Math.PI / 3;
|
|
537
|
+
return Math.pow(2, -10 * S) * Math.sin((S * 10 - 0.75) * n) + 1;
|
|
538
|
+
}, j = (S, n = 50) => `linear(${Array.from({ length: n + 1 }, (a, l) => S(l / n)).map((a) => +a.toFixed(4)).join(", ")})`, G = j(U), K = (S = {}) => {
|
|
539
|
+
const n = {
|
|
540
540
|
// Ad scroll zone
|
|
541
541
|
// How tall the ad container is — controls how long the ad stays in view.
|
|
542
542
|
// 100vh = scrolls away after one viewport height; 200vh = twice as long, etc.
|
|
@@ -591,7 +591,7 @@ const F = (S) => {
|
|
|
591
591
|
// CSS timing function for the snap — any valid CSS transition-timing-function.
|
|
592
592
|
// Default: easeOutElastic encoded as a CSS linear() function (50-point sample).
|
|
593
593
|
// See: https://developer.mozilla.org/en-US/blog/custom-easing-in-css-with-linear/
|
|
594
|
-
snapEase:
|
|
594
|
+
snapEase: G,
|
|
595
595
|
// ── Scroll callbacks ───────────────────────────────────────────
|
|
596
596
|
// Called once when the ad starts to reveal (top band visible, ad beginning to scroll).
|
|
597
597
|
onEnter: null,
|
|
@@ -606,76 +606,85 @@ const F = (S) => {
|
|
|
606
606
|
thresholds: [],
|
|
607
607
|
// Merge caller-supplied options (overrides any default above)
|
|
608
608
|
...S
|
|
609
|
-
},
|
|
610
|
-
if (!
|
|
609
|
+
}, c = window.frameElement ? window.frameElement : null;
|
|
610
|
+
if (!c) return () => {
|
|
611
611
|
};
|
|
612
|
-
const
|
|
613
|
-
if (!
|
|
612
|
+
const a = window.parent;
|
|
613
|
+
if (!a || a === window) return () => {
|
|
614
614
|
};
|
|
615
|
-
let
|
|
615
|
+
let l = null;
|
|
616
616
|
try {
|
|
617
|
-
|
|
617
|
+
l = a.document, a.location.href;
|
|
618
618
|
} catch {
|
|
619
619
|
return () => {
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
const
|
|
623
|
-
const
|
|
624
|
-
if (
|
|
625
|
-
let
|
|
626
|
-
for (;
|
|
627
|
-
if (
|
|
628
|
-
|
|
622
|
+
const r = (() => {
|
|
623
|
+
const t = l.querySelector("#adspot-mobile-mobile-3-above");
|
|
624
|
+
if (t) return t;
|
|
625
|
+
let i = c.parentElement;
|
|
626
|
+
for (; i && i !== l.body; ) {
|
|
627
|
+
if (i.id && i.id.includes("adspot")) return i;
|
|
628
|
+
i = i.parentElement;
|
|
629
629
|
}
|
|
630
|
-
return
|
|
630
|
+
return c.parentElement;
|
|
631
631
|
})();
|
|
632
|
-
if (!
|
|
632
|
+
if (!r) return () => {
|
|
633
633
|
};
|
|
634
|
-
const
|
|
634
|
+
const f = r.getAttribute("style"), x = c.getAttribute("style"), h = [], C = {
|
|
635
635
|
width: "100vw",
|
|
636
636
|
marginLeft: "calc(50% - 50vw)",
|
|
637
|
-
height:
|
|
638
|
-
backgroundColor:
|
|
639
|
-
color:
|
|
640
|
-
fontSize:
|
|
641
|
-
fontFamily:
|
|
637
|
+
height: n.bandHeight + "px",
|
|
638
|
+
backgroundColor: n.bandBg,
|
|
639
|
+
color: n.bandColor,
|
|
640
|
+
fontSize: n.bandFontSize,
|
|
641
|
+
fontFamily: n.bandFontFamily,
|
|
642
642
|
textTransform: "uppercase",
|
|
643
|
-
letterSpacing:
|
|
643
|
+
letterSpacing: n.bandLetterSpacing,
|
|
644
644
|
display: "flex",
|
|
645
645
|
alignItems: "center",
|
|
646
646
|
justifyContent: "center",
|
|
647
647
|
pointerEvents: "none"
|
|
648
648
|
};
|
|
649
649
|
(() => {
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
650
|
+
const t = r.style;
|
|
651
|
+
t.height = n.adScrollHeight, t.position = "relative", r.setAttribute("poweredAC", "0.0.98"), t.clipPath = `inset(-${n.bandHeight - 1}px 0 0 0)`, t.overflow = "visible", t.width = "100vw", t.maxWidth = "100vw", t.marginLeft = "calc(50% - 50vw)", t.marginRight = "0", t.marginTop = "0", t.marginBottom = "0", t.padding = "0";
|
|
652
|
+
let i = r.parentElement;
|
|
653
|
+
for (let q = 0; q < 6 && i && i !== l.body; q++) {
|
|
654
|
+
const B = a.getComputedStyle(i);
|
|
655
|
+
let L = !1;
|
|
656
|
+
(B.overflow === "hidden" || B.overflowY === "hidden") && (h.push({ el: i, prop: "overflow", val: i.style.overflow }), h.push({ el: i, prop: "overflowY", val: i.style.overflowY }), i.style.overflow = "visible", i.style.overflowY = "visible", L = !0);
|
|
657
|
+
const H = parseFloat(B.height);
|
|
658
|
+
if (B.height !== "auto" && !isNaN(H) && H < 600 && (h.push({ el: i, prop: "height", val: i.style.height }), i.style.height = "auto", L = !0), !L && q > 1) break;
|
|
659
|
+
i = i.parentElement;
|
|
660
|
+
}
|
|
661
|
+
const d = c.style;
|
|
662
|
+
d.position = "fixed", d.top = "0", d.left = "0", d.width = "100vw", d.height = "100vh", d.maxWidth = "100vw", d.margin = "0", d.padding = "0", d.border = "none", d.zIndex = "1";
|
|
663
|
+
const v = l.createElement("div");
|
|
664
|
+
v.id = "interscroller-top-band-wrapper", Object.assign(v.style, {
|
|
656
665
|
position: "sticky",
|
|
657
666
|
bottom: "0",
|
|
658
667
|
width: "100vw",
|
|
659
668
|
marginLeft: "calc(50% - 50vw)",
|
|
660
|
-
zIndex:
|
|
669
|
+
zIndex: n.zIndexTop,
|
|
661
670
|
pointerEvents: "none"
|
|
662
671
|
});
|
|
663
|
-
const
|
|
664
|
-
|
|
672
|
+
const e = l.createElement("div");
|
|
673
|
+
e.id = "interscroller-top-band", e.textContent = n.labelTop, Object.assign(e.style, C, {
|
|
665
674
|
position: "relative",
|
|
666
675
|
// wrapper is the sticky anchor
|
|
667
676
|
width: "100%",
|
|
668
677
|
// wrapper handles the full-bleed breakout
|
|
669
678
|
marginLeft: "0",
|
|
670
679
|
transformOrigin: "top center"
|
|
671
|
-
}),
|
|
672
|
-
const
|
|
673
|
-
|
|
680
|
+
}), v.appendChild(e), r.insertAdjacentElement("beforebegin", v);
|
|
681
|
+
const s = l.createElement("div");
|
|
682
|
+
s.id = "interscroller-bottom-band", Object.assign(s.style, C, {
|
|
674
683
|
position: "fixed",
|
|
675
684
|
// stays fixed; transform slides it in/out
|
|
676
685
|
bottom: "0",
|
|
677
686
|
left: "0",
|
|
678
|
-
zIndex:
|
|
687
|
+
zIndex: n.zIndexBottom,
|
|
679
688
|
display: "flex",
|
|
680
689
|
// always rendered — no display toggling
|
|
681
690
|
overflow: "hidden",
|
|
@@ -685,46 +694,48 @@ const F = (S) => {
|
|
|
685
694
|
transition: "none"
|
|
686
695
|
// no animation on first paint
|
|
687
696
|
});
|
|
688
|
-
const
|
|
689
|
-
if (
|
|
690
|
-
const
|
|
691
|
-
|
|
697
|
+
const p = l.createElement("span");
|
|
698
|
+
if (p.id = "interscroller-bottom-label", p.textContent = n.labelBottomResume, p.style.cssText = "position:relative;z-index:1;pointer-events:none;", s.appendChild(p), n.progressBarColor) {
|
|
699
|
+
const q = l.createElement("span");
|
|
700
|
+
q.id = "interscroller-bottom-progress", q.style.cssText = [
|
|
692
701
|
"position:absolute",
|
|
693
702
|
"inset:0",
|
|
694
703
|
"width:0%",
|
|
695
|
-
`background:${
|
|
704
|
+
`background:${n.progressBarColor}`,
|
|
696
705
|
"transition:none",
|
|
697
706
|
"z-index:0",
|
|
698
707
|
"pointer-events:none"
|
|
699
|
-
].join(";"),
|
|
708
|
+
].join(";"), s.appendChild(q);
|
|
700
709
|
}
|
|
701
|
-
|
|
710
|
+
r.after(s);
|
|
702
711
|
})();
|
|
703
|
-
const
|
|
704
|
-
let
|
|
705
|
-
const
|
|
706
|
-
if (!
|
|
707
|
-
const
|
|
708
|
-
!
|
|
709
|
-
const
|
|
710
|
-
|
|
712
|
+
const b = l.querySelector("#interscroller-top-band"), T = l.querySelector("#interscroller-top-band-wrapper"), u = l.querySelector("#interscroller-bottom-band"), P = l.querySelector("#interscroller-bottom-label"), N = l.querySelector("#interscroller-bottom-progress"), I = n.bandHeight, y = n.snapPx;
|
|
713
|
+
let g = !1, A = !1, k = !1, o = !1;
|
|
714
|
+
const m = (n.thresholds || []).map(() => !1), w = () => {
|
|
715
|
+
if (!u) return;
|
|
716
|
+
const t = r.getBoundingClientRect(), i = a.innerHeight, d = t.top <= i, v = t.bottom <= i - I, e = o ? t.top <= i - n.bottomBandHideAt : t.top <= i - n.bottomBandShowAt, s = r.offsetHeight, p = Math.min(1, Math.max(0, (i - t.top) / (s + i))), q = Math.min(1, Math.max(0, (i - t.top) / (s + I))), B = Math.min(1, Math.max(0, (i - t.top) / s)), L = Math.min(t.bottom, i) - Math.max(t.top - I, 0), H = Math.min(1, Math.max(0, L / i)), _ = Math.max(0, Math.round(t.bottom - i));
|
|
717
|
+
!A && d && n.onEnter && n.onEnter(), !k && v && n.onExit && n.onExit(), A = d, k = v, o = e, n.onProgress && n.onProgress({ scrollProgress: p, adExposure: B, viewportCoverage: H, pxRemaining: _ }), (n.thresholds || []).forEach((D, z) => {
|
|
718
|
+
const $ = m[z], F = p >= D.at;
|
|
719
|
+
!$ && F ? (m[z] = !0, D.onEnter && D.onEnter(p)) : $ && !F && (m[z] = !1, D.onLeave && D.onLeave(p));
|
|
711
720
|
});
|
|
712
|
-
const
|
|
713
|
-
if (
|
|
714
|
-
const
|
|
715
|
-
if (!
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
} else !
|
|
719
|
-
} else
|
|
720
|
-
const O =
|
|
721
|
-
|
|
721
|
+
const W = i;
|
|
722
|
+
if (b && t.top <= W + n.stretchOverlap && !v) {
|
|
723
|
+
const D = W - t.top;
|
|
724
|
+
if (!g && D <= y - n.snapOverlap) {
|
|
725
|
+
const z = 1 + Math.max(0, D + n.stretchOverlap) / I;
|
|
726
|
+
b.style.transition = "none", b.style.transform = `scaleY(${z})`;
|
|
727
|
+
} else !g && D > y - n.snapOverlap && (g = !0, b.style.transition = `transform ${n.snapDuration}s ${n.snapEase}`, b.style.transform = "scaleY(1)");
|
|
728
|
+
} else b && t.top > W + n.stretchOverlap && (g = !1, b.style.transition = "none", b.style.transform = "scaleY(1)");
|
|
729
|
+
const O = a.visualViewport ? Math.round(a.innerHeight - (a.visualViewport.offsetTop + a.visualViewport.height)) : 0;
|
|
730
|
+
v ? (u.style.transition = "none", u.style.transform = "none", u.style.position = "sticky", u.style.top = "0", u.style.bottom = "", u.style.left = "", u.style.marginLeft = "calc(50% - 50vw)", u.style.width = "100vw", P && (P.textContent = n.labelBottomNow), N && (N.style.width = "100%")) : e ? (P && (P.textContent = _ > 0 ? q < 0.2 ? n.labelBottomResume : q < 0.75 ? n.labelBottomMid : n.labelBottomLate : n.labelBottomNow), N && (N.style.width = `${Math.round(q * 100)}%`), u.style.transition = "transform 0.3s ease", u.style.transform = "translateY(0)", u.style.position = "fixed", u.style.bottom = `${O}px`, u.style.top = "", u.style.left = "0", u.style.marginLeft = "0", u.style.width = "100vw") : (u.style.transition = "transform 0.3s ease", u.style.transform = "translateY(100%)", u.style.position = "fixed", u.style.bottom = `${O}px`, u.style.left = "0", u.style.marginLeft = "0", u.style.width = "100vw");
|
|
722
731
|
};
|
|
723
|
-
return
|
|
724
|
-
|
|
732
|
+
return w(), a.addEventListener("scroll", w, { passive: !0 }), a.visualViewport?.addEventListener("resize", w, { passive: !0 }), () => {
|
|
733
|
+
a.removeEventListener("scroll", w), a.visualViewport?.removeEventListener("resize", w), T ? T.remove() : b && b.remove(), u && u.remove(), f ? r.setAttribute("style", f) : r.removeAttribute("style"), x ? c.setAttribute("style", x) : c.removeAttribute("style"), h.forEach(({ el: t, prop: i, val: d }) => {
|
|
734
|
+
t.style[i] = d || "";
|
|
735
|
+
});
|
|
725
736
|
};
|
|
726
|
-
},
|
|
727
|
-
const
|
|
737
|
+
}, J = (S = {}) => {
|
|
738
|
+
const n = {
|
|
728
739
|
// Adaptation dimensions
|
|
729
740
|
adaptToWidth: "100%",
|
|
730
741
|
// target width — '100%' | '100vw' | px string | false
|
|
@@ -735,79 +746,64 @@ const F = (S) => {
|
|
|
735
746
|
adaptToHeight: !1,
|
|
736
747
|
// explicit height — ignored when maintainAspectRatio:true
|
|
737
748
|
// Stacking
|
|
738
|
-
zIndex:
|
|
739
|
-
// IntersectionObserver trigger
|
|
740
|
-
adaptThreshold: 0.5,
|
|
741
|
-
// fraction of the slot visible before adaptation fires
|
|
749
|
+
zIndex: 7,
|
|
742
750
|
// Callback — fired once the slot dimensions have settled
|
|
743
751
|
onAdapt: null,
|
|
744
752
|
// Merge caller-supplied options
|
|
745
753
|
...S
|
|
746
|
-
},
|
|
747
|
-
if (!
|
|
754
|
+
}, c = window.frameElement ?? null;
|
|
755
|
+
if (!c) return () => {
|
|
748
756
|
};
|
|
749
|
-
const
|
|
750
|
-
if (!
|
|
757
|
+
const a = window.parent;
|
|
758
|
+
if (!a || a === window) return () => {
|
|
751
759
|
};
|
|
752
|
-
let
|
|
760
|
+
let l = null;
|
|
753
761
|
try {
|
|
754
|
-
|
|
762
|
+
l = a.document, a.location.href;
|
|
755
763
|
} catch {
|
|
756
764
|
return () => {
|
|
757
765
|
};
|
|
758
766
|
}
|
|
759
|
-
const
|
|
760
|
-
const
|
|
761
|
-
if (
|
|
762
|
-
let g =
|
|
763
|
-
for (; g && g !==
|
|
767
|
+
const r = (() => {
|
|
768
|
+
const y = l.querySelector("#adspot-mobile-mbanner-2-above");
|
|
769
|
+
if (y) return y;
|
|
770
|
+
let g = c.parentElement;
|
|
771
|
+
for (; g && g !== l.body; ) {
|
|
764
772
|
if (g.id && g.id.includes("adspot")) return g;
|
|
765
773
|
g = g.parentElement;
|
|
766
774
|
}
|
|
767
|
-
return
|
|
775
|
+
return c.parentElement;
|
|
768
776
|
})();
|
|
769
|
-
if (!
|
|
777
|
+
if (!r) return () => {
|
|
770
778
|
};
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
const b = w.style;
|
|
777
|
-
b.width = "100%", b.height = "100%", b.margin = "0", b.textAlign = "left";
|
|
779
|
+
const f = r.getAttribute("style"), x = c.getAttribute("style"), h = c.parentElement !== r ? c.parentElement : null, C = h ? h.getAttribute("style") : null, M = r.parentElement, b = M ? a.getComputedStyle(M).paddingTop : null, T = parseInt(c.getAttribute("width"), 10) || 320, u = parseInt(c.getAttribute("height"), 10) || 50, P = () => {
|
|
780
|
+
const y = r.style;
|
|
781
|
+
if (y.position = "relative", y.overflow = "visible", y.boxSizing = "border-box", r.setAttribute("poweredAC", "0.0.98"), h) {
|
|
782
|
+
const A = h.style;
|
|
783
|
+
A.width = "100%", A.height = "100%", A.margin = "0", A.textAlign = "left";
|
|
778
784
|
}
|
|
779
|
-
const g =
|
|
785
|
+
const g = c.style;
|
|
780
786
|
g.display = "block", g.width = "100%", g.height = "100%", g.border = "none", g.margin = "0", g.padding = "0";
|
|
781
|
-
},
|
|
782
|
-
const
|
|
783
|
-
|
|
784
|
-
const
|
|
785
|
-
|
|
786
|
-
}) : (
|
|
787
|
+
}, N = () => {
|
|
788
|
+
const y = r.style;
|
|
789
|
+
y.zIndex = String(n.zIndex), n.adaptToWidth && (y.width = n.adaptToWidth, y.maxWidth = n.maxWidth || n.adaptToWidth, n.maxWidth && n.adaptToWidth !== "100vw" && !n.adaptToWidth.endsWith("vw") ? (y.marginLeft = "auto", y.marginRight = "auto") : (n.adaptToWidth === "100vw" || n.adaptToWidth.endsWith("vw")) && (y.marginLeft = "calc(50% - 50vw)", y.marginRight = "0")), M && b && b !== "0px" && (M.style.paddingTop = "0"), n.maintainAspectRatio ? a.requestAnimationFrame(() => {
|
|
790
|
+
const A = r.offsetWidth || T, o = Math.round(A * (u / T));
|
|
791
|
+
r.style.height = o + "px", h && (h.style.height = o + "px"), c.style.height = o + "px", n.onAdapt && n.onAdapt();
|
|
792
|
+
}) : (n.adaptToHeight && (y.height = n.adaptToHeight), n.onAdapt && n.onAdapt());
|
|
787
793
|
};
|
|
788
|
-
return
|
|
789
|
-
(h)
|
|
790
|
-
h.forEach((g) => {
|
|
791
|
-
g.isIntersecting && (I(), d.disconnect(), d = null);
|
|
792
|
-
});
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
root: null,
|
|
796
|
-
threshold: i.adaptThreshold
|
|
797
|
-
}
|
|
798
|
-
), d.observe(n), () => {
|
|
799
|
-
d && (d.disconnect(), d = null), y ? n.setAttribute("style", y) : n.removeAttribute("style"), A ? p.setAttribute("style", A) : p.removeAttribute("style"), w && (B ? w.setAttribute("style", B) : w.removeAttribute("style")), x && E && E !== "0px" && (x.style.paddingTop = E);
|
|
794
|
+
return P(), N(), () => {
|
|
795
|
+
f ? r.setAttribute("style", f) : r.removeAttribute("style"), x ? c.setAttribute("style", x) : c.removeAttribute("style"), h && (C ? h.setAttribute("style", C) : h.removeAttribute("style")), M && b && b !== "0px" && (M.style.paddingTop = b);
|
|
800
796
|
};
|
|
801
797
|
};
|
|
802
|
-
let
|
|
798
|
+
let R = () => {
|
|
803
799
|
};
|
|
804
|
-
function
|
|
805
|
-
typeof
|
|
806
|
-
let
|
|
800
|
+
function Q({ adFormat: S = "", stickyOffset: n = 0, logoPosX: c = 0, logoHeight: a = 0, logoSmallHeight: l = 0, ...E } = {}) {
|
|
801
|
+
typeof R == "function" && R();
|
|
802
|
+
let r = () => {
|
|
807
803
|
};
|
|
808
|
-
return S === "fireplace" ?
|
|
809
|
-
},
|
|
804
|
+
return S === "fireplace" ? r = V(n) : S === "fireplace-collant" ? r = Y(n) : S === "logomorph" ? r = X(c, a, l) : S === "interscroller" ? r = K(E) : S === "liquidframe" ? r = J(E) : console.warn("[powered-ad-config] Unknown ad format:", S), R = typeof r == "function" ? r : () => {
|
|
805
|
+
}, R;
|
|
810
806
|
}
|
|
811
807
|
export {
|
|
812
|
-
|
|
808
|
+
Q as default
|
|
813
809
|
};
|