powered-ad-config 0.0.87 → 0.0.89
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 +328 -294
- package/dist/powered-ad-config.umd.js +7 -7
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const _ = (
|
|
1
|
+
const _ = (b) => {
|
|
2
2
|
const i = window.frameElement ? window.frameElement : null;
|
|
3
3
|
if (!i) return () => {
|
|
4
4
|
};
|
|
5
|
-
const
|
|
6
|
-
if (!
|
|
5
|
+
const y = window.parent;
|
|
6
|
+
if (!y || y === window) return () => {
|
|
7
7
|
};
|
|
8
|
-
let
|
|
8
|
+
let p = null;
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
p = y.document, y.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 _ = (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, d = (m, t) => m.forEach((r) => t.forEach(([h, S]) => r.style[h] = S));
|
|
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"), d(o.querySelectorAll(".column"), [["position", "relative"]]), d(o.querySelectorAll(".advert"), [["position", "relative"]]), d(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, d = (m, t) => m.forEach((r) => t.forEach(([h, S]) => r.style[h] = S));
|
|
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"), d(o.querySelectorAll(".column"), [["position", "relative"]]), d(o.querySelectorAll(".advert"), [["position", "relative"]]), d(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
|
+
}, u = {
|
|
62
62
|
siteBackgroundColor: "#ffffff",
|
|
63
63
|
fireplaceLeftMargin: 0,
|
|
64
64
|
adNodeMarginTop: -24,
|
|
@@ -68,17 +68,17 @@ 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
|
+
}, x = {
|
|
82
82
|
siteBackgroundColor: "#f7f7f7",
|
|
83
83
|
fireplaceLeftMargin: 0,
|
|
84
84
|
adNodeMarginTop: -25,
|
|
@@ -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, d = (t, r) => t.forEach((h) => r.forEach(([S, e]) => h.style[S] = e));
|
|
92
|
+
if (o.querySelector(".container--padded")?.setAttribute("style", "position:relative"), d(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,84 +111,84 @@ 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
|
+
}, C = [
|
|
115
|
+
{ site: "https://www.nine.com.au/sport", config: u },
|
|
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: u },
|
|
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:
|
|
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
|
-
],
|
|
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: u },
|
|
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
|
+
], N = () => {
|
|
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(), y.addEventListener("scroll", I), n = setTimeout(I, 50);
|
|
148
|
+
}, E = () => {
|
|
149
149
|
let o = null;
|
|
150
|
-
return o =
|
|
150
|
+
return o = p.querySelector('div[id*="billboard"][id*="above"]'), o;
|
|
151
151
|
}, M = () => {
|
|
152
|
-
const o =
|
|
153
|
-
for (let
|
|
154
|
-
if (o.indexOf(
|
|
155
|
-
return
|
|
156
|
-
},
|
|
152
|
+
const o = y.location.href;
|
|
153
|
+
for (let d = 0; d < C.length; d += 1)
|
|
154
|
+
if (o.indexOf(C[d].site) >= 0)
|
|
155
|
+
return C[d].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
|
-
|
|
164
|
-
},
|
|
165
|
-
const o =
|
|
166
|
-
o >= 0 && o <=
|
|
167
|
-
},
|
|
160
|
+
}, D = () => {
|
|
161
|
+
if (!B) return;
|
|
162
|
+
const o = B.style;
|
|
163
|
+
B.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
|
+
}, I = () => {
|
|
165
|
+
const o = y.scrollY, d = i.style, m = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
|
|
166
|
+
o >= 0 && o <= v ? (d.transform = `translate(-50%, ${-o}px)`, m.transform = "translateY(0)") : o > v && o <= g ? (d.transform = `translate(-50%, ${-v}px)`, m.transform = `translateY(${v - o}px)`) : o > g && (d.transform = `translate(-50%, ${-v}px)`, m.transform = "translateY(-250px)");
|
|
167
|
+
}, B = E(), a = M();
|
|
168
168
|
if (!a) return () => {
|
|
169
169
|
};
|
|
170
170
|
let n = null;
|
|
171
|
-
const
|
|
172
|
-
return
|
|
173
|
-
|
|
171
|
+
const v = -a.responsiveScroll + b, g = v + 250;
|
|
172
|
+
return N(), () => {
|
|
173
|
+
y.removeEventListener("scroll", I), n && (clearTimeout(n), n = null);
|
|
174
174
|
};
|
|
175
|
-
}, R = (
|
|
175
|
+
}, R = (b) => {
|
|
176
176
|
const i = window.frameElement ? window.frameElement : null;
|
|
177
177
|
if (!i) return () => {
|
|
178
178
|
};
|
|
179
|
-
const
|
|
180
|
-
if (!
|
|
179
|
+
const y = window.parent;
|
|
180
|
+
if (!y || y === window) return () => {
|
|
181
181
|
};
|
|
182
|
-
let
|
|
182
|
+
let p = null;
|
|
183
183
|
try {
|
|
184
|
-
|
|
184
|
+
p = y.document, y.location.href;
|
|
185
185
|
} catch {
|
|
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 u = {
|
|
192
192
|
siteBackgroundColor: "#ffffff",
|
|
193
193
|
fireplaceLeftMargin: 0,
|
|
194
194
|
adNodeMarginTop: -24,
|
|
@@ -199,10 +199,10 @@ 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 = (f, k) => f.forEach((w) => k.forEach(([T, P]) => w.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
|
+
}, x = {
|
|
206
206
|
siteBackgroundColor: "#ffffff",
|
|
207
207
|
fireplaceLeftMargin: 0,
|
|
208
208
|
adNodeMarginTop: -24,
|
|
@@ -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 = (f, k) => f.forEach((w) => k.forEach(([T, P]) => w.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 f = e.createElement("style");
|
|
233
|
+
f.innerHTML = `
|
|
234
234
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
235
235
|
position: static;
|
|
236
236
|
}
|
|
237
|
-
`, e.head.appendChild(
|
|
237
|
+
`, e.head.appendChild(f);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
},
|
|
240
|
+
}, C = {
|
|
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, f = e.querySelector("footer").previousElementSibling;
|
|
252
|
+
if (f && f.tagName.toLowerCase() === "div" && (f.style.position = "relative"), e.querySelector('div[id*="tablet"][id*="takeover"]')) {
|
|
253
|
+
let w = e.createElement("style");
|
|
254
|
+
w.innerHTML = `
|
|
255
255
|
div:has(#adspot-tablet-takeover-2-above) {
|
|
256
256
|
position: static;
|
|
257
257
|
}
|
|
258
|
-
`, e.head.appendChild(
|
|
258
|
+
`, e.head.appendChild(w);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
},
|
|
261
|
+
}, N = {
|
|
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, w) => k.forEach((T) => w.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
298
|
}, M = [
|
|
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
|
-
],
|
|
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: 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: u },
|
|
313
|
+
{ site: "https://celebrity", config: u },
|
|
314
|
+
{ site: "https://homes", config: u },
|
|
315
|
+
{ site: "https://travel", config: u },
|
|
316
|
+
{ site: "https://honey", config: u },
|
|
317
|
+
{ site: "https://style", config: u },
|
|
318
|
+
{ site: "https://coach", config: u },
|
|
319
|
+
{ site: "https://kitchen", config: u },
|
|
320
|
+
{ site: "https://finance", config: u },
|
|
321
|
+
{ site: "https://wwos", config: N },
|
|
322
|
+
{ site: "https://staging.wwos", config: C },
|
|
323
|
+
{ site: "https://www.9news", config: E },
|
|
324
|
+
{ site: "https://staging.9news", config: E },
|
|
325
|
+
{ site: "https://www.yourtv", config: u },
|
|
326
|
+
{ site: "https://staging.yourtv", config: u },
|
|
327
|
+
{ site: "https://9now", config: x },
|
|
328
|
+
{ site: "https://creative-preview-an.com", config: u }
|
|
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(), I(), v(), y.addEventListener("scroll", d, { passive: !0 }), r = setTimeout(d, 50);
|
|
332
|
+
}, D = () => {
|
|
333
333
|
let e = null;
|
|
334
|
-
return e =
|
|
335
|
-
},
|
|
334
|
+
return e = p.querySelector('div[id*="billboard"][id*="above"]'), e;
|
|
335
|
+
}, I = () => {
|
|
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 = p.querySelector('div[id*="halfpage"][id*="above"]'), !e) return;
|
|
339
|
+
let c = e;
|
|
340
|
+
for (let f = 0; f < 3; f++)
|
|
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
|
-
},
|
|
346
|
-
const e =
|
|
347
|
-
for (let
|
|
348
|
-
if (e.indexOf(M[
|
|
349
|
-
return M[
|
|
345
|
+
}, B = () => {
|
|
346
|
+
const e = y.location.href;
|
|
347
|
+
for (let c = 0; c < M.length; c += 1)
|
|
348
|
+
if (e.indexOf(M[c].site) >= 0)
|
|
349
|
+
return M[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
|
-
},
|
|
359
|
-
s =
|
|
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
|
+
s = p.querySelector('div[data-contentunit-id="stan"]')?.parentNode || p.querySelector('div[data-ui-testid="header-score-strip"]')?.parentNode || p.querySelector('div[class*="__MyContainer"]') || p.querySelector('div[class*="__ArticleContainer"]') || p.querySelector('div[class*="__VideoIndexComponent"]') || p.querySelector("div.container.layout") || p.querySelector("main.container.layout"), s && (s.style.willChange = "clip-path", s.style.transition = "none", s.style.webkitBackfaceVisibility = "hidden", s.style.backfaceVisibility = "hidden", s.style.transform = "translate3d(0,0,0)", s.style.backgroundColor = t.siteBackgroundColor, s.style.setProperty("--mask-inset", "0px"), s.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
|
|
360
360
|
};
|
|
361
361
|
let g = 0, o = 0;
|
|
362
|
-
const
|
|
363
|
-
const e =
|
|
362
|
+
const d = () => {
|
|
363
|
+
const e = y.scrollY, c = e > g, f = e > S ? e - t.maskOffset : 0, k = Math.abs(f - o);
|
|
364
364
|
if (s)
|
|
365
|
-
if (
|
|
366
|
-
if (
|
|
367
|
-
const
|
|
368
|
-
s.style.transition = "none", s.style.setProperty("--mask-inset", `${
|
|
365
|
+
if (c && f > o)
|
|
366
|
+
if (k > 100) {
|
|
367
|
+
const w = Math.max(0, f - 100);
|
|
368
|
+
s.style.transition = "none", s.style.setProperty("--mask-inset", `${w}px`), s.offsetHeight, s.style.transition = "clip-path 0.3s ease-out", s.style.setProperty("--mask-inset", `${f}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", `${f}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", `${f}px`);
|
|
373
|
+
g = e, o = f, e > S ? (i.style.setProperty("--transform-y", `${-h}px`), A.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > h && e <= S ? (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 = B();
|
|
375
375
|
if (!t) return () => {
|
|
376
376
|
};
|
|
377
|
-
let
|
|
378
|
-
const h = -t.responsiveScroll +
|
|
379
|
-
return
|
|
380
|
-
|
|
377
|
+
let r = null;
|
|
378
|
+
const h = -t.responsiveScroll + b, S = h + 150;
|
|
379
|
+
return L(), () => {
|
|
380
|
+
y.removeEventListener("scroll", d), r && (clearTimeout(r), r = null);
|
|
381
381
|
};
|
|
382
|
-
},
|
|
383
|
-
const
|
|
384
|
-
if (!
|
|
382
|
+
}, $ = (b, i, y) => {
|
|
383
|
+
const p = window.frameElement ? window.frameElement : null;
|
|
384
|
+
if (!p) 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, S) => h.forEach((e) => S.forEach(([c, f]) => e.style[c] = f));
|
|
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
|
+
}, u = {
|
|
409
409
|
siteBackgroundColor: "#ffffff",
|
|
410
410
|
logoTop: "44px",
|
|
411
411
|
logoLeft: "50%",
|
|
@@ -414,10 +414,10 @@ 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, S) => h.forEach((e) => S.forEach(([c, f]) => e.style[c] = f));
|
|
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
|
+
}, x = {
|
|
421
421
|
siteBackgroundColor: "#ffffff",
|
|
422
422
|
logoTop: "44px",
|
|
423
423
|
logoLeft: "50%",
|
|
@@ -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, S) => h.forEach((e) => S.forEach(([c, f]) => e.style[c] = f));
|
|
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, S) => h.forEach((e) => S.forEach(([c, f]) => e.style[c] = f));
|
|
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
|
+
}, C = {
|
|
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, S) => h.forEach((e) => S.forEach(([c, f]) => e.style[c] = f));
|
|
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
|
+
}, N = {
|
|
457
457
|
siteBackgroundColor: "#ffffff",
|
|
458
458
|
logoTop: "44px",
|
|
459
459
|
logoLeft: "50%",
|
|
@@ -465,77 +465,77 @@ 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
|
-
{ 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:
|
|
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
473
|
{ site: "https://staging.nine.com.au/sport", config: s },
|
|
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:
|
|
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: 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: u },
|
|
483
|
+
{ site: "https://celebrity", config: u },
|
|
484
|
+
{ site: "https://homes", config: u },
|
|
485
|
+
{ site: "https://travel", config: u },
|
|
486
|
+
{ site: "https://honey", config: u },
|
|
487
|
+
{ site: "https://style", config: u },
|
|
488
|
+
{ site: "https://coach", config: u },
|
|
489
|
+
{ site: "https://kitchen", config: u },
|
|
490
|
+
{ site: "https://finance", config: u },
|
|
491
|
+
{ site: "https://wwos", config: C },
|
|
492
|
+
{ site: "https://staging.wwos", config: C },
|
|
493
|
+
{ site: "https://www.9news", config: N },
|
|
494
|
+
{ site: "https://staging.9news", config: N },
|
|
495
|
+
{ site: "https://www.yourtv", config: u },
|
|
496
|
+
{ site: "https://staging.yourtv", config: u },
|
|
497
|
+
{ site: "https://9now", config: x },
|
|
498
|
+
{ site: "https://creative-preview-an.com", config: u }
|
|
499
499
|
], M = () => {
|
|
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), B(), I(), 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
|
|
510
|
-
},
|
|
511
|
-
if (!
|
|
512
|
-
const t =
|
|
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
|
+
}, I = () => {
|
|
511
|
+
if (!p) return;
|
|
512
|
+
const t = p.style;
|
|
513
513
|
t.width = "100%", t.height = `${i}px`, t.position = "relative";
|
|
514
|
-
},
|
|
515
|
-
if (!
|
|
516
|
-
const t =
|
|
514
|
+
}, B = () => {
|
|
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 = `${y}px`, r.minHeight = `${y}px`, r.position = "fixed", r.top = "0px", r.zIndex = "100000", window.loadSmall());
|
|
522
522
|
}, n = () => {
|
|
523
|
-
const t =
|
|
524
|
-
|
|
525
|
-
},
|
|
523
|
+
const t = l.scrollY;
|
|
524
|
+
p.style, t >= 0 && t <= d ? a("big") : t > d && (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
|
|
529
|
+
const d = b;
|
|
530
|
+
let m = 0;
|
|
531
531
|
return M(), () => {
|
|
532
|
-
|
|
532
|
+
l.removeEventListener("scroll", n), o && (clearTimeout(o), o = null);
|
|
533
533
|
};
|
|
534
|
-
},
|
|
535
|
-
if (
|
|
534
|
+
}, O = (b) => {
|
|
535
|
+
if (b === 0 || b === 1) return b;
|
|
536
536
|
const i = 2 * Math.PI / 3;
|
|
537
|
-
return Math.pow(2, -10 *
|
|
538
|
-
},
|
|
537
|
+
return Math.pow(2, -10 * b) * Math.sin((b * 10 - 0.75) * i) + 1;
|
|
538
|
+
}, V = (b, i = 50) => `linear(${Array.from({ length: i + 1 }, (p, l) => b(l / i)).map((p) => +p.toFixed(4)).join(", ")})`, F = V(O), X = (b = {}) => {
|
|
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,
|
|
@@ -574,7 +583,7 @@ const _ = (w) => {
|
|
|
574
583
|
// CSS timing function for the snap — any valid CSS transition-timing-function.
|
|
575
584
|
// Default: easeOutElastic encoded as a CSS linear() function (50-point sample).
|
|
576
585
|
// See: https://developer.mozilla.org/en-US/blog/custom-easing-in-css-with-linear/
|
|
577
|
-
snapEase:
|
|
586
|
+
snapEase: F,
|
|
578
587
|
// ── Scroll callbacks ───────────────────────────────────────────
|
|
579
588
|
// Called once when the ad starts to reveal (top band visible, ad beginning to scroll).
|
|
580
589
|
onEnter: null,
|
|
@@ -588,33 +597,33 @@ const _ = (w) => {
|
|
|
588
597
|
// Example: [{ at: 0.2, onEnter: () => playVideo(), onLeave: () => pauseVideo() }]
|
|
589
598
|
thresholds: [],
|
|
590
599
|
// Merge caller-supplied options (overrides any default above)
|
|
591
|
-
...
|
|
592
|
-
},
|
|
593
|
-
if (!
|
|
600
|
+
...b
|
|
601
|
+
}, y = window.frameElement ? window.frameElement : null;
|
|
602
|
+
if (!y) return () => {
|
|
594
603
|
};
|
|
595
|
-
const
|
|
596
|
-
if (!
|
|
604
|
+
const p = window.parent;
|
|
605
|
+
if (!p || p === window) return () => {
|
|
597
606
|
};
|
|
598
|
-
let
|
|
607
|
+
let l = null;
|
|
599
608
|
try {
|
|
600
|
-
|
|
609
|
+
l = p.document, p.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
|
-
let n =
|
|
609
|
-
for (; n && n !==
|
|
617
|
+
let n = y.parentElement;
|
|
618
|
+
for (; n && n !== l.body; ) {
|
|
610
619
|
if (n.id && n.id.includes("adspot")) return n;
|
|
611
620
|
n = n.parentElement;
|
|
612
621
|
}
|
|
613
|
-
return
|
|
622
|
+
return y.parentElement;
|
|
614
623
|
})();
|
|
615
624
|
if (!s) return () => {
|
|
616
625
|
};
|
|
617
|
-
const
|
|
626
|
+
const u = s.getAttribute("style"), x = y.getAttribute("style"), q = {
|
|
618
627
|
width: "100vw",
|
|
619
628
|
marginLeft: "calc(50% - 50vw)",
|
|
620
629
|
height: i.bandHeight + "px",
|
|
@@ -632,58 +641,83 @@ const _ = (w) => {
|
|
|
632
641
|
(() => {
|
|
633
642
|
const a = s.style;
|
|
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
|
-
const n =
|
|
644
|
+
const n = y.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 d = l.createElement("span");
|
|
666
|
+
if (d.id = "interscroller-bottom-label", d.textContent = i.labelBottomResume, d.style.cssText = "position:relative;z-index:1;pointer-events:none;", o.appendChild(d), 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 M = !1,
|
|
656
|
-
const
|
|
657
|
-
const a =
|
|
680
|
+
const N = i.bandHeight, E = i.snapPx;
|
|
681
|
+
let M = !1, L = !1, D = !1;
|
|
682
|
+
const I = (i.thresholds || []).map(() => !1), B = () => {
|
|
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 (!M &&
|
|
666
|
-
const
|
|
667
|
-
a.style.transition = "none", a.style.transform = `scaleY(${
|
|
668
|
-
} else !M &&
|
|
685
|
+
const v = s.getBoundingClientRect(), g = p.innerHeight, o = v.top <= g, d = v.bottom <= g - N, 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 + N))), h = Math.min(1, Math.max(0, (g - v.top) / m)), S = Math.min(v.bottom, g) - Math.max(v.top - N, 0), e = Math.min(1, Math.max(0, S / g)), c = Math.max(0, Math.round(v.bottom - g));
|
|
686
|
+
if (!L && o && i.onEnter && i.onEnter(), !D && d && i.onExit && i.onExit(), L = o, D = d, i.onProgress && i.onProgress({ scrollProgress: t, adExposure: h, viewportCoverage: e, pxRemaining: c }), (i.thresholds || []).forEach((w, T) => {
|
|
687
|
+
const P = I[T], H = t >= w.at;
|
|
688
|
+
!P && H ? (I[T] = !0, w.onEnter && w.onEnter(t)) : P && !H && (I[T] = !1, w.onLeave && w.onLeave(t));
|
|
689
|
+
}), a && o && !d) {
|
|
690
|
+
const w = g - v.top;
|
|
691
|
+
if (!M && w <= E - i.snapOverlap) {
|
|
692
|
+
const P = 1 + (Math.max(0, w / E) * E + i.stretchOverlap) / N;
|
|
693
|
+
a.style.transition = "none", a.style.transform = `scaleY(${P})`;
|
|
694
|
+
} else !M && w > E - i.snapOverlap && (M = !0, a.style.transition = `transform ${i.snapDuration}s ${i.snapEase}`, a.style.transform = "scaleY(1)");
|
|
669
695
|
} else a && !o && (M = !1, a.style.transition = "none", a.style.transform = "scaleY(1)");
|
|
670
|
-
f
|
|
696
|
+
const f = l.querySelector("#interscroller-bottom-label"), k = l.querySelector("#interscroller-bottom-progress");
|
|
697
|
+
if (d)
|
|
698
|
+
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", f && (f.textContent = i.labelBottomNow), k && (k.style.width = "100%");
|
|
699
|
+
else if (o) {
|
|
700
|
+
f && (f.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";
|
|
701
|
+
const w = p.visualViewport ? Math.round(p.innerHeight - (p.visualViewport.offsetTop + p.visualViewport.height)) : 0;
|
|
702
|
+
n.style.bottom = `${w}px`, n.style.top = "", n.style.left = "0", n.style.marginLeft = "0", n.style.width = "100vw", n.style.display = "flex";
|
|
703
|
+
} else
|
|
704
|
+
n.style.display = "none";
|
|
671
705
|
};
|
|
672
|
-
return
|
|
673
|
-
|
|
674
|
-
const a =
|
|
675
|
-
a && a.remove(), n && n.remove(),
|
|
706
|
+
return B(), p.addEventListener("scroll", B, { passive: !0 }), p.visualViewport?.addEventListener("resize", B, { passive: !0 }), () => {
|
|
707
|
+
p.removeEventListener("scroll", B), p.visualViewport?.removeEventListener("resize", B);
|
|
708
|
+
const a = l.querySelector("#interscroller-top-band"), n = l.querySelector("#interscroller-bottom-band");
|
|
709
|
+
a && a.remove(), n && n.remove(), u ? s.setAttribute("style", u) : s.removeAttribute("style"), x ? y.setAttribute("style", x) : y.removeAttribute("style");
|
|
676
710
|
};
|
|
677
711
|
};
|
|
678
|
-
let
|
|
712
|
+
let z = () => {
|
|
679
713
|
};
|
|
680
|
-
function
|
|
681
|
-
typeof
|
|
714
|
+
function U({ adFormat: b = "", stickyOffset: i = 0, logoPosX: y = 0, logoHeight: p = 0, logoSmallHeight: l = 0, ...A } = {}) {
|
|
715
|
+
typeof z == "function" && z();
|
|
682
716
|
let s = () => {
|
|
683
717
|
};
|
|
684
|
-
return
|
|
685
|
-
},
|
|
718
|
+
return b === "fireplace" ? s = _(i) : b === "fireplace-collant" ? s = R(i) : b === "logomorph" ? s = $(y, p, l) : b === "interscroller" ? s = X(A) : console.warn("[powered-ad-config] Unknown ad format:", b), z = typeof s == "function" ? s : () => {
|
|
719
|
+
}, z;
|
|
686
720
|
}
|
|
687
721
|
export {
|
|
688
|
-
|
|
722
|
+
U as default
|
|
689
723
|
};
|