powered-ad-config 0.1.86 → 0.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/powered-ad-config.es.js +334 -600
- package/dist/powered-ad-config.umd.js +68 -17
- package/package.json +1 -1
|
@@ -56,26 +56,10 @@ var e = (e, t, n) => {
|
|
|
56
56
|
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
57
57
|
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"), t(e.querySelectorAll(".column"), [["position", "relative"]]), t(e.querySelectorAll(".advert"), [["position", "relative"]]), t(e.querySelectorAll("blockquote"), [["zIndex", "1"]]), e.querySelector("div[class*=\"article__MyContainer\"]")?.setAttribute("style", "max-width:1190px;margin-top:-24px"), e.querySelector("div[type=\"BANNER\"]")?.setAttribute("style", "display:none"), e.querySelector("div[type=\"MBANNER\"]")?.setAttribute("style", "display:none");
|
|
58
58
|
}
|
|
59
|
-
}, v = {
|
|
60
|
-
|
|
61
|
-
fireplaceLeftMargin: 0,
|
|
62
|
-
adNodeMarginTop: -24,
|
|
63
|
-
adNodeMarginBottom: 24,
|
|
64
|
-
responsiveScroll: -124,
|
|
65
|
-
xPosHalfpage: 695,
|
|
66
|
-
yPosHalfpage: 32,
|
|
67
|
-
stickyMargin: {
|
|
68
|
-
offset: 74,
|
|
69
|
-
isSticky: !0
|
|
70
|
-
},
|
|
71
|
-
zIndex: function() {
|
|
72
|
-
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
73
|
-
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"), t(e.querySelectorAll(".column"), [["position", "relative"]]), t(e.querySelectorAll(".advert"), [["position", "relative"]]), t(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");
|
|
74
|
-
}
|
|
75
|
-
}, y = (e, t = m) => r(t, e), b = (e, t = m) => i(t, e), x = () => y("app") || m.querySelector("#app.nine, #app"), S = () => {
|
|
76
|
-
let e = x();
|
|
59
|
+
}, v = (e, t = m) => r(t, e), y = (e, t = m) => i(t, e), b = () => v("app") || m.querySelector("#app.nine, #app"), x = () => {
|
|
60
|
+
let e = b();
|
|
77
61
|
if (!e) return null;
|
|
78
|
-
let t =
|
|
62
|
+
let t = v("header-ad-desktop", e) || m.querySelector("#desktop-header-ads"), n = v("header", e) || v("tv-show-banner", e) || e.querySelector(":scope > header"), r = o(e, t) || o(e, O()) || t;
|
|
79
63
|
return t && r && n ? {
|
|
80
64
|
appRoot: e,
|
|
81
65
|
headerShell: n,
|
|
@@ -83,54 +67,11 @@ var e = (e, t, n) => {
|
|
|
83
67
|
desktopHeaderAds: t,
|
|
84
68
|
variant: "full"
|
|
85
69
|
} : null;
|
|
86
|
-
},
|
|
87
|
-
if (w() || T()) return 0;
|
|
88
|
-
let e = m.querySelector("nav");
|
|
89
|
-
if (!e) return 0;
|
|
90
|
-
let t = p.getComputedStyle(e);
|
|
91
|
-
if (t.position !== "fixed") return 0;
|
|
92
|
-
let n = parseFloat(t.top || "0");
|
|
93
|
-
return Number.isFinite(n) && Math.abs(n) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
|
|
94
|
-
}, D = (e) => {
|
|
70
|
+
}, S = () => x()?.appRoot || null, C = (e) => {
|
|
95
71
|
if (!e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) return;
|
|
96
72
|
let t = e.getElementById("powered-ac-tablet-takeover-static-fix");
|
|
97
73
|
t || (t = e.createElement("style"), t.id = "powered-ac-tablet-takeover-static-fix", e.head.appendChild(t)), t.textContent = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ";
|
|
98
|
-
},
|
|
99
|
-
let r = window.parent.document, i = e, o = t, s = (e) => e ? Array.from(e.querySelectorAll(":scope > main, :scope > aside, :scope > footer")) : [], c = (e) => a([y("page-container", e), y("container", e)]), l = (e) => a([
|
|
100
|
-
...b("main", e),
|
|
101
|
-
...b("sidebar", e),
|
|
102
|
-
...b("footer", e)
|
|
103
|
-
]), u = (e, t) => {
|
|
104
|
-
n(r, e, t);
|
|
105
|
-
}, d = (e) => {
|
|
106
|
-
o(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
|
|
107
|
-
};
|
|
108
|
-
i(r.querySelector("section[data-section=\"marketing-banner\"]"), "position", "relative"), i(r.querySelector("div[data-testid=\"live-tv\"]")?.parentNode, "position", "relative"), i(r.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode, "position", "relative"), i(r.querySelector("small"), "position", "inherit");
|
|
109
|
-
let f = S(), p = f?.appRoot, m = f?.desktopHeaderAds, h = f?.billboardContainer;
|
|
110
|
-
if (p) {
|
|
111
|
-
let e = f.headerShell, t = y("header-nav", p), n = c(p), r = l(p), g = b("sidebar-sticky", p), _ = Array.from(p.children).filter((e) => e.tagName !== "SCRIPT"), v = h ? _.indexOf(h) : -1, x = _.filter((e, t) => t < v), S = n.length > 0 ? n : v >= 0 ? _.filter((t, n) => n > v && t !== e) : _.filter((t) => t !== m && t !== e);
|
|
112
|
-
i(m, "height", "250px"), i(m, "padding", "0px"), m && d(m), o(x, [["position", "relative"], ["zIndex", "1085"]]), i(e, "zIndex", "1085"), i(t, "position", "relative"), i(t, "zIndex", "1086"), u("powered-ac-nine-new-header-overrides", "\n #app > [data-ad-target=\"header\"] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1090 !important;\n }\n\n #app > [data-ad-target=\"tv-show-banner\"],\n #app > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085;\n }\n\n #app > [data-ad-target=\"header\"] > div:not(header),\n #app > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app [data-ad-target=\"header\"] header,\n #app [data-ad-target=\"header-nav\"] {\n position: relative;\n }\n\n #app [data-ad-target=\"header-nav\"] {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n\n #app [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1089 !important;\n }\n\n #app > header[data-tv-show] {\n z-index: 1085;\n }\n "), o(S, [["position", "relative"], ["zIndex", "1071"]]), o(a([...r, ...S.flatMap((e) => s(e))]), [["position", "relative"], ["zIndex", "1072"]]), o(g, [["zIndex", "1072"]]);
|
|
113
|
-
}
|
|
114
|
-
D(r);
|
|
115
|
-
}, ee = {
|
|
116
|
-
siteBackgroundColor: "#ffffff",
|
|
117
|
-
fireplaceLeftMargin: 0,
|
|
118
|
-
adNodeMarginTop: -24,
|
|
119
|
-
adNodeMarginBottom: -55,
|
|
120
|
-
iframeWidth: "100%",
|
|
121
|
-
iframeHeight: l,
|
|
122
|
-
responsiveScroll: -120,
|
|
123
|
-
xPosHalfpage: 722,
|
|
124
|
-
yPosHalfpage: 32,
|
|
125
|
-
stickyMargin: {
|
|
126
|
-
offset: 74,
|
|
127
|
-
isSticky: !0
|
|
128
|
-
},
|
|
129
|
-
zIndex: function() {
|
|
130
|
-
let e = window.parent.document;
|
|
131
|
-
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"), D(e);
|
|
132
|
-
}
|
|
133
|
-
}, k = {
|
|
74
|
+
}, w = {
|
|
134
75
|
siteBackgroundColor: "#ffffff",
|
|
135
76
|
fireplaceLeftMargin: 0,
|
|
136
77
|
adNodeMarginTop: 0,
|
|
@@ -145,24 +86,25 @@ var e = (e, t, n) => {
|
|
|
145
86
|
offset: 74,
|
|
146
87
|
isSticky: !0
|
|
147
88
|
},
|
|
148
|
-
zIndex:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
89
|
+
zIndex: () => {
|
|
90
|
+
let r = window.parent.document, i = e, o = t, s = (e) => e ? Array.from(e.querySelectorAll(":scope > main, :scope > aside, :scope > footer")) : [], c = (e) => a([v("page-container", e), v("container", e)]), l = (e) => a([
|
|
91
|
+
...y("main", e),
|
|
92
|
+
...y("sidebar", e),
|
|
93
|
+
...y("footer", e)
|
|
94
|
+
]), u = (e, t) => {
|
|
95
|
+
n(r, e, t);
|
|
96
|
+
}, d = (e) => {
|
|
97
|
+
o(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
|
|
98
|
+
};
|
|
99
|
+
i(r.querySelector("section[data-section=\"marketing-banner\"]"), "position", "relative"), i(r.querySelector("div[data-testid=\"live-tv\"]")?.parentNode, "position", "relative"), i(r.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode, "position", "relative"), i(r.querySelector("small"), "position", "inherit");
|
|
100
|
+
let f = x(), p = f?.appRoot, m = f?.desktopHeaderAds, h = f?.billboardContainer;
|
|
101
|
+
if (p) {
|
|
102
|
+
let e = f.headerShell, t = v("header-nav", p), n = c(p), r = l(p), g = y("sidebar-sticky", p), _ = Array.from(p.children).filter((e) => e.tagName !== "SCRIPT"), b = h ? _.indexOf(h) : -1, x = _.filter((e, t) => t < b), S = n.length > 0 ? n : b >= 0 ? _.filter((t, n) => n > b && t !== e) : _.filter((t) => t !== m && t !== e);
|
|
103
|
+
i(m, "height", "250px"), i(m, "padding", "0px"), m && d(m), o(x, [["position", "relative"], ["zIndex", "1085"]]), i(e, "zIndex", "1085"), i(t, "position", "relative"), i(t, "zIndex", "1086"), u("powered-ac-nine-new-header-overrides", "\n #app > [data-ad-target=\"header\"] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1090 !important;\n }\n\n #app > [data-ad-target=\"tv-show-banner\"],\n #app > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085 !important;\n }\n\n #app > [data-ad-target=\"header\"] > div:not(header),\n #app > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app [data-ad-target=\"header\"] header {\n position: relative;\n }\n\n #app [data-ad-target=\"header-nav\"] {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n\n #app [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1089 !important;\n }\n "), o(S, [["position", "relative"], ["zIndex", "1071"]]), o(a([...r, ...S.flatMap((e) => s(e))]), [["position", "relative"], ["zIndex", "1072"]]), o(g, [["zIndex", "1072"]]);
|
|
104
|
+
}
|
|
105
|
+
C(r);
|
|
164
106
|
}
|
|
165
|
-
},
|
|
107
|
+
}, T = {
|
|
166
108
|
siteBackgroundColor: "#ffffff",
|
|
167
109
|
fireplaceLeftMargin: 0,
|
|
168
110
|
adNodeMarginTop: 0,
|
|
@@ -179,135 +121,43 @@ var e = (e, t, n) => {
|
|
|
179
121
|
zIndex: function() {
|
|
180
122
|
let r = window.parent.document, i = e, o = t, c = (e, t) => n(r, e, t), l = (e) => {
|
|
181
123
|
o(Array.from(e.querySelectorAll("*")).filter((e) => e.children.length > 0 ? !1 : e.textContent?.trim().toLowerCase() === "advertisement"), [["display", "none"]]);
|
|
182
|
-
}, u =
|
|
183
|
-
...
|
|
184
|
-
...
|
|
185
|
-
...
|
|
186
|
-
]), _ =
|
|
187
|
-
d && (i(d, "height", "250px"), i(d, "padding", "0px"), l(d)), i(p, "zIndex", "1085"), i(m, "position", "relative"), i(m, "zIndex", "1086"), c("powered-ac-
|
|
188
|
-
let
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
}, N = () => T() ? M : j, P = {
|
|
192
|
-
siteBackgroundColor: "#ffffff",
|
|
193
|
-
fireplaceLeftMargin: 0,
|
|
194
|
-
adNodeMarginTop: -32,
|
|
195
|
-
adNodeMarginBottom: 18,
|
|
196
|
-
responsiveScroll: -124,
|
|
197
|
-
xPosHalfpage: 720,
|
|
198
|
-
yPosHalfpage: 16,
|
|
199
|
-
stickyMargin: {
|
|
200
|
-
offset: 74,
|
|
201
|
-
isSticky: !0
|
|
202
|
-
},
|
|
203
|
-
zIndex: function() {
|
|
204
|
-
let e = window.parent.document;
|
|
205
|
-
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);");
|
|
124
|
+
}, u = v("app") || r.querySelector("#app.wwos"), d = v("header-ad-desktop", u || r) || r.querySelector("#desktop-header-ads"), f = u ? Array.from(u.children) : [], p = v("header", u || r) || v("tv-show-banner", u || r) || u?.querySelector(":scope > header"), m = v("header-nav", u || r), h = a([v("page-container", u || r), v("container", u || r)]), g = a([
|
|
125
|
+
...y("main", u || r),
|
|
126
|
+
...y("sidebar", u || r),
|
|
127
|
+
...y("footer", u || r)
|
|
128
|
+
]), _ = y("sidebar-sticky", u || r);
|
|
129
|
+
d && (i(d, "height", "250px"), i(d, "padding", "0px"), l(d)), i(p, "zIndex", "1085"), i(m, "position", "relative"), i(m, "zIndex", "1086"), c("powered-ac-nine-sport-header-overrides", "\n #app.wwos > [data-ad-target=\"header\"] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: 50% !important;\n right: auto !important;\n transform: translateX(-50%) !important;\n margin-left: 0 !important;\n margin-right: 0 !important;\n z-index: 1090 !important;\n }\n\n #app.wwos > [data-ad-target=\"tv-show-banner\"],\n #app.wwos > header[data-tv-show] {\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n margin-left: auto !important;\n margin-right: auto !important;\n z-index: 1085 !important;\n }\n\n #app.wwos > [data-ad-target=\"header\"] > div:not(header),\n #app.wwos > header[data-tv-show] > div:not(header) {\n z-index: 1088 !important;\n position: relative !important;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"] [role=\"menuitem\"][aria-haspopup=\"menu\"] {\n position: static;\n }\n\n #app.wwos [data-ad-target=\"nav-dropdown\"] {\n position: absolute !important;\n top: 100% !important;\n left: 50% !important;\n right: auto !important;\n width: min(1190px, calc(100vw - 32px)) !important;\n max-width: min(1190px, calc(100vw - 32px)) !important;\n transform: translateX(-50%) !important;\n z-index: 1088 !important;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"] {\n width: 100%;\n max-width: 100%;\n margin-left: 0;\n margin-right: 0;\n left: auto !important;\n right: auto !important;\n transform: none !important;\n position: relative !important;\n overflow: visible !important;\n z-index: 1086 !important;\n }\n\n #app.wwos [data-ad-target=\"header-nav\"] nav {\n width: 100% !important;\n max-width: 100% !important;\n overflow: visible !important;\n }\n "), o(h.length > 0 ? h : f.filter((e) => e !== d && e !== p), [["position", "relative"], ["zIndex", "1071"]]), o(a([...g, ...Array.from(r.querySelectorAll("main, aside, article, footer, [id*=\"adspot-desktop-banner-\"]"))]), [["position", "relative"], ["zIndex", "1072"]]), o(_, [["zIndex", "1072"]]);
|
|
130
|
+
let b = s(r.querySelector("footer"), "div");
|
|
131
|
+
b && (b.style.position = "relative"), C(r);
|
|
206
132
|
}
|
|
207
|
-
},
|
|
133
|
+
}, E = [
|
|
208
134
|
{
|
|
209
135
|
site: "https://www.nine.com.au/sport",
|
|
210
|
-
config:
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
site: "https://www.nine.com.au/product-reviews",
|
|
214
|
-
config: v
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
site: "https://www.nine.com.au/property",
|
|
218
|
-
config: v
|
|
136
|
+
config: T
|
|
219
137
|
},
|
|
220
138
|
{
|
|
221
139
|
site: "https://www.nine.com.au/entertainment",
|
|
222
|
-
config:
|
|
140
|
+
config: w
|
|
223
141
|
},
|
|
224
142
|
{
|
|
225
143
|
site: "https://staging.nine.com.au/sport",
|
|
226
|
-
config:
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
site: "https://staging.nine.com.au/product-reviews",
|
|
230
|
-
config: v
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
site: "https://staging.nine.com.au/property",
|
|
234
|
-
config: v
|
|
144
|
+
config: T
|
|
235
145
|
},
|
|
236
146
|
{
|
|
237
147
|
site: "https://staging.nine.com.au/entertainment",
|
|
238
|
-
config:
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
site: "https://render-web-nine-staging-v1.ffxblue.com.au",
|
|
242
|
-
config: A
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
site: "https://render-web-nine-production-v1.ffxblue.com.au",
|
|
246
|
-
config: A
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
site: "https://preview.nine.com.au/",
|
|
250
|
-
config: A
|
|
148
|
+
config: w
|
|
251
149
|
},
|
|
252
150
|
{
|
|
253
151
|
site: "https://www.nine.com.au",
|
|
254
|
-
config:
|
|
152
|
+
config: w
|
|
255
153
|
},
|
|
256
154
|
{
|
|
257
155
|
site: "https://www.nine",
|
|
258
|
-
config:
|
|
156
|
+
config: w
|
|
259
157
|
},
|
|
260
158
|
{
|
|
261
159
|
site: "https://staging.nine",
|
|
262
|
-
config:
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
site: "https://entertainment",
|
|
266
|
-
config: _
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
site: "https://celebrity",
|
|
270
|
-
config: _
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
site: "https://homes",
|
|
274
|
-
config: _
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
site: "https://travel",
|
|
278
|
-
config: _
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
site: "https://honey",
|
|
282
|
-
config: _
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
site: "https://style",
|
|
286
|
-
config: _
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
site: "https://coach",
|
|
290
|
-
config: _
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
site: "https://kitchen",
|
|
294
|
-
config: _
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
site: "https://finance",
|
|
298
|
-
config: _
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
site: "https://staging.wwos",
|
|
302
|
-
config: N
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
site: "https://www.9news",
|
|
306
|
-
config: P
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
site: "https://staging.9news",
|
|
310
|
-
config: P
|
|
160
|
+
config: w
|
|
311
161
|
},
|
|
312
162
|
{
|
|
313
163
|
site: "https://www.yourtv",
|
|
@@ -316,21 +166,13 @@ var e = (e, t, n) => {
|
|
|
316
166
|
{
|
|
317
167
|
site: "https://staging.yourtv",
|
|
318
168
|
config: _
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
site: "https://9now",
|
|
322
|
-
config: v
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
site: "https://creative-preview-an.com",
|
|
326
|
-
config: _
|
|
327
169
|
}
|
|
328
|
-
],
|
|
170
|
+
], D = () => {
|
|
329
171
|
let e = window.document.getElementById("nineContent");
|
|
330
|
-
if (e && (e.style.backgroundColor =
|
|
331
|
-
let e =
|
|
172
|
+
if (e && (e.style.backgroundColor = F.siteBackgroundColor), j(), A(), k(), p.addEventListener("scroll", P), I = setTimeout(P, 50), F === w || F === T) {
|
|
173
|
+
let e = F === w ? x() : null, t = e?.appRoot || S() || m.body, n = e?.desktopHeaderAds || m.querySelector("#desktop-header-ads");
|
|
332
174
|
t && p.MutationObserver && (g = new p.MutationObserver(() => {
|
|
333
|
-
|
|
175
|
+
N();
|
|
334
176
|
}), g.observe(t, {
|
|
335
177
|
childList: !0,
|
|
336
178
|
subtree: !0
|
|
@@ -339,76 +181,62 @@ var e = (e, t, n) => {
|
|
|
339
181
|
subtree: !0,
|
|
340
182
|
attributes: !0,
|
|
341
183
|
attributeFilter: ["class"]
|
|
342
|
-
})), p.addEventListener("resize",
|
|
184
|
+
})), p.addEventListener("resize", N), N();
|
|
343
185
|
}
|
|
344
|
-
},
|
|
186
|
+
}, O = () => {
|
|
345
187
|
let e = null;
|
|
346
188
|
return e = m.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
|
|
347
|
-
},
|
|
189
|
+
}, ee = () => {
|
|
348
190
|
let e = p.location.href;
|
|
349
|
-
for (let t = 0; t <
|
|
191
|
+
for (let t = 0; t < E.length; t += 1) if (e.indexOf(E[t].site) >= 0) return E[t].config;
|
|
350
192
|
try {
|
|
351
193
|
let t = new URL(e), n = t.hostname.toLowerCase(), r = t.pathname.toLowerCase();
|
|
352
|
-
if (n === "creative-preview-an.com") return _;
|
|
353
|
-
if (n.includes("9news")) return P;
|
|
354
194
|
if (n.includes("yourtv")) return _;
|
|
355
|
-
if (
|
|
356
|
-
if (n === "www.nine.com.au" || n === "staging.nine.com.au" || n === "preview.nine.com.au" || n === "render-web-nine-staging-v1.ffxblue.com.au" || n === "render-web-nine-production-v1.ffxblue.com.au") return r.startsWith("/sport") ? N() : r.startsWith("/product-reviews") || r.startsWith("/property") ? v : A();
|
|
357
|
-
if ([
|
|
358
|
-
"entertainment",
|
|
359
|
-
"celebrity",
|
|
360
|
-
"homes",
|
|
361
|
-
"travel",
|
|
362
|
-
"honey",
|
|
363
|
-
"style",
|
|
364
|
-
"coach",
|
|
365
|
-
"kitchen",
|
|
366
|
-
"finance"
|
|
367
|
-
].some((e) => n.includes(e))) return _;
|
|
195
|
+
if (r.startsWith("/sport")) return T;
|
|
368
196
|
} catch {
|
|
369
|
-
return
|
|
197
|
+
return w;
|
|
370
198
|
}
|
|
371
|
-
return
|
|
372
|
-
},
|
|
199
|
+
return w;
|
|
200
|
+
}, k = () => {
|
|
373
201
|
if (!window.parent) return;
|
|
374
202
|
let e = m.querySelector("div[id*=\"halfpage\"][id*=\"above\"]");
|
|
375
203
|
if (!e) return;
|
|
376
204
|
let t = e;
|
|
377
205
|
for (let e = 0; e < 6; e++) if (t = t.parentNode, t && p.getComputedStyle(t).position === "sticky") {
|
|
378
|
-
t.style.top = `${
|
|
206
|
+
t.style.top = `${F.stickyMargin.offset}px`;
|
|
379
207
|
break;
|
|
380
208
|
}
|
|
381
|
-
},
|
|
209
|
+
}, A = () => {
|
|
382
210
|
if (!f) return;
|
|
383
211
|
let e = f.style;
|
|
384
|
-
e.width =
|
|
212
|
+
e.width = F.iframeWidth || "100%", e.height = F.iframeHeight || l, e.backgroundColor = F.iframeBackgroundColor || u, e.position = "fixed", F.iframeTop == null ? e.removeProperty("top") : e.top = F.iframeTop, e.left = "50%", e.transform = "translate(-50%, 0)";
|
|
385
213
|
let t = f.parentElement;
|
|
386
214
|
for (; t && t !== m.body && t !== m.documentElement;) {
|
|
387
215
|
let e = p.getComputedStyle(t);
|
|
388
216
|
e.transform && e.transform !== "none" && (t.style.transform = "none"), e.willChange && e.willChange !== "auto" && (t.style.willChange = "auto"), e.contain && e.contain !== "none" && (t.style.contain = "none"), e.filter && e.filter !== "none" && (t.style.filter = "none"), e.perspective && e.perspective !== "none" && (t.style.perspective = "none"), e.overflow !== "visible" && (t.style.overflow = "visible"), t = t.parentElement;
|
|
389
217
|
}
|
|
390
|
-
},
|
|
391
|
-
let e =
|
|
218
|
+
}, j = () => {
|
|
219
|
+
let e = O();
|
|
392
220
|
if (!e) return;
|
|
393
|
-
c(e, "0.1.
|
|
221
|
+
c(e, "0.1.88");
|
|
394
222
|
let t = e.style;
|
|
395
|
-
e.className &&= "", t.minHeight = "250px", t.marginTop =
|
|
396
|
-
},
|
|
223
|
+
e.className &&= "", t.minHeight = "250px", t.marginTop = F.adNodeMarginTop + "px", t.marginBottom = F.adNodeMarginBottom + "px", t.position = "static", t.display = "block", F.zIndex && F.zIndex();
|
|
224
|
+
}, M = () => {
|
|
397
225
|
let e = p.scrollY, t = f.style, n = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
|
|
398
|
-
e >= 0 && e <=
|
|
399
|
-
},
|
|
400
|
-
|
|
401
|
-
h = null,
|
|
226
|
+
e >= 0 && e <= L ? (t.transform = `translate(-50%, ${-e}px)`, n.transform = "translateY(0)") : e > L && e <= R ? (t.transform = `translate(-50%, ${-L}px)`, n.transform = `translateY(${L - e}px)`) : e > R && (t.transform = `translate(-50%, ${-L}px)`, n.transform = "translateY(-250px)");
|
|
227
|
+
}, N = () => {
|
|
228
|
+
F !== w && F !== T || h || (h = p.requestAnimationFrame(() => {
|
|
229
|
+
h = null, A(), j(), k(), M();
|
|
402
230
|
}));
|
|
403
|
-
},
|
|
404
|
-
|
|
231
|
+
}, P = () => {
|
|
232
|
+
M();
|
|
405
233
|
};
|
|
406
|
-
|
|
407
|
-
let
|
|
408
|
-
if (!
|
|
409
|
-
let
|
|
410
|
-
return
|
|
411
|
-
p.removeEventListener("scroll",
|
|
234
|
+
O();
|
|
235
|
+
let F = ee();
|
|
236
|
+
if (!F) return () => {};
|
|
237
|
+
let I = null, L = d, R = L + 250;
|
|
238
|
+
return D(), () => {
|
|
239
|
+
p.removeEventListener("scroll", P), p.removeEventListener("resize", N), g &&= (g.disconnect(), null), h &&= (p.cancelAnimationFrame(h), null), I &&= (clearTimeout(I), null);
|
|
412
240
|
};
|
|
413
241
|
}, f = (o) => {
|
|
414
242
|
let c = window.frameElement ? window.frameElement : null;
|
|
@@ -454,23 +282,6 @@ var e = (e, t, n) => {
|
|
|
454
282
|
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"), t(e.querySelectorAll(".column"), [["position", "relative"]]), t(e.querySelectorAll(".advert"), [["position", "relative"]]), t(e.querySelectorAll("blockquote"), [["zIndex", "1"]]), e.querySelector("div[type=\"BANNER\"]")?.setAttribute("style", "display:none"), e.querySelector("div[type=\"MBANNER\"]")?.setAttribute("style", "display:none");
|
|
455
283
|
}
|
|
456
284
|
}, b = {
|
|
457
|
-
siteBackgroundColor: "#ffffff",
|
|
458
|
-
fireplaceLeftMargin: 0,
|
|
459
|
-
adNodeMarginTop: -24,
|
|
460
|
-
adNodeMarginBottom: 0,
|
|
461
|
-
responsiveScroll: -124,
|
|
462
|
-
xPosHalfpage: 695,
|
|
463
|
-
yPosHalfpage: 32,
|
|
464
|
-
stickyMargin: {
|
|
465
|
-
offset: 160,
|
|
466
|
-
isSticky: !0
|
|
467
|
-
},
|
|
468
|
-
maskOffset: window.parent.document.querySelector("div[class*=\"video-index__MyContainer\"]") ? 248 : 298,
|
|
469
|
-
zIndex: function() {
|
|
470
|
-
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
471
|
-
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"), t(e.querySelectorAll(".column"), [["position", "relative"]]), t(e.querySelectorAll(".advert"), [["position", "relative"]]), t(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"), v();
|
|
472
|
-
}
|
|
473
|
-
}, x = {
|
|
474
285
|
siteBackgroundColor: "#ffffff",
|
|
475
286
|
fireplaceLeftMargin: 0,
|
|
476
287
|
adNodeMarginTop: -24,
|
|
@@ -487,7 +298,7 @@ var e = (e, t, n) => {
|
|
|
487
298
|
let e = window.parent.document;
|
|
488
299
|
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"), m(e), v();
|
|
489
300
|
}
|
|
490
|
-
},
|
|
301
|
+
}, x = {
|
|
491
302
|
siteBackgroundColor: "#ffffff",
|
|
492
303
|
fireplaceLeftMargin: 0,
|
|
493
304
|
adNodeMarginTop: -24,
|
|
@@ -504,54 +315,10 @@ var e = (e, t, n) => {
|
|
|
504
315
|
let e = window.parent.document, t = s(e.querySelector("footer"), "div");
|
|
505
316
|
t && (t.style.position = "relative"), m(e), v();
|
|
506
317
|
}
|
|
507
|
-
},
|
|
508
|
-
siteBackgroundColor: "#ffffff",
|
|
509
|
-
fireplaceLeftMargin: 0,
|
|
510
|
-
adNodeMarginTop: -25,
|
|
511
|
-
adNodeMarginBottom: 0,
|
|
512
|
-
responsiveScroll: -124,
|
|
513
|
-
xPosHalfpage: 720,
|
|
514
|
-
yPosHalfpage: 32,
|
|
515
|
-
stickyMargin: {
|
|
516
|
-
offset: 175,
|
|
517
|
-
isSticky: !0
|
|
518
|
-
},
|
|
519
|
-
maskOffset: 274,
|
|
520
|
-
zIndex: function() {
|
|
521
|
-
let e = window.parent.document;
|
|
522
|
-
e.querySelector(".container--padded")?.setAttribute("style", "position:relative"), ((e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n)))(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"), m(e);
|
|
523
|
-
}
|
|
524
|
-
}, w = {
|
|
525
|
-
siteBackgroundColor: "#ffffff",
|
|
526
|
-
fireplaceLeftMargin: 0,
|
|
527
|
-
adNodeMarginTop: -32,
|
|
528
|
-
adNodeMarginBottom: 8,
|
|
529
|
-
responsiveScroll: -124,
|
|
530
|
-
xPosHalfpage: 720,
|
|
531
|
-
yPosHalfpage: 16,
|
|
532
|
-
stickyMargin: {
|
|
533
|
-
offset: 160,
|
|
534
|
-
isSticky: !0
|
|
535
|
-
},
|
|
536
|
-
maskOffset: window.parent.document.querySelector("div[class*=\"VideoIndexComponent\"]") ? 324 : 292,
|
|
537
|
-
zIndex: function() {
|
|
538
|
-
let e = window.parent.document;
|
|
539
|
-
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);");
|
|
540
|
-
let t = e.querySelector("[class*=\"VideoIndexComponent\"]");
|
|
541
|
-
t && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), t.style.maxWidth = "1190px", t.style.margin = "auto", t.style.position = "relative");
|
|
542
|
-
}
|
|
543
|
-
}, T = [
|
|
318
|
+
}, S = [
|
|
544
319
|
{
|
|
545
320
|
site: "https://www.nine.com.au/sport",
|
|
546
|
-
config:
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
site: "https://www.nine.com.au/product-reviews",
|
|
550
|
-
config: b
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
site: "https://www.nine.com.au/property",
|
|
554
|
-
config: b
|
|
321
|
+
config: x
|
|
555
322
|
},
|
|
556
323
|
{
|
|
557
324
|
site: "https://www.nine.com.au/entertainment",
|
|
@@ -559,95 +326,23 @@ var e = (e, t, n) => {
|
|
|
559
326
|
},
|
|
560
327
|
{
|
|
561
328
|
site: "https://staging.nine.com.au/sport",
|
|
562
|
-
config:
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
site: "https://staging.nine.com.au/product-reviews",
|
|
566
|
-
config: b
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
site: "https://staging.nine.com.au/property",
|
|
570
|
-
config: b
|
|
329
|
+
config: x
|
|
571
330
|
},
|
|
572
331
|
{
|
|
573
332
|
site: "https://staging.nine.com.au/entertainment",
|
|
574
333
|
config: b
|
|
575
334
|
},
|
|
576
|
-
{
|
|
577
|
-
site: "https://render-web-nine-staging-v1.ffxblue.com.au",
|
|
578
|
-
config: x
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
site: "https://render-web-nine-production-v1.ffxblue.com.au",
|
|
582
|
-
config: x
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
site: "https://preview.nine.com.au/",
|
|
586
|
-
config: x
|
|
587
|
-
},
|
|
588
335
|
{
|
|
589
336
|
site: "https://www.nine.com.au",
|
|
590
|
-
config:
|
|
337
|
+
config: b
|
|
591
338
|
},
|
|
592
339
|
{
|
|
593
340
|
site: "https://www.nine",
|
|
594
|
-
config:
|
|
341
|
+
config: b
|
|
595
342
|
},
|
|
596
343
|
{
|
|
597
344
|
site: "https://staging.nine",
|
|
598
|
-
config:
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
site: "https://entertainment",
|
|
602
|
-
config: y
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
site: "https://celebrity",
|
|
606
|
-
config: y
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
site: "https://homes",
|
|
610
|
-
config: y
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
site: "https://travel",
|
|
614
|
-
config: y
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
site: "https://honey",
|
|
618
|
-
config: y
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
site: "https://style",
|
|
622
|
-
config: y
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
site: "https://coach",
|
|
626
|
-
config: y
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
site: "https://kitchen",
|
|
630
|
-
config: y
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
site: "https://finance",
|
|
634
|
-
config: y
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
site: "https://wwos",
|
|
638
|
-
config: C
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
site: "https://staging.wwos",
|
|
642
|
-
config: S
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
site: "https://www.9news",
|
|
646
|
-
config: w
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
site: "https://staging.9news",
|
|
650
|
-
config: w
|
|
345
|
+
config: b
|
|
651
346
|
},
|
|
652
347
|
{
|
|
653
348
|
site: "https://www.yourtv",
|
|
@@ -656,63 +351,55 @@ var e = (e, t, n) => {
|
|
|
656
351
|
{
|
|
657
352
|
site: "https://staging.yourtv",
|
|
658
353
|
config: y
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
site: "https://9now",
|
|
662
|
-
config: b
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
site: "https://creative-preview-an.com",
|
|
666
|
-
config: y
|
|
667
354
|
}
|
|
668
|
-
],
|
|
355
|
+
], C = () => {
|
|
669
356
|
let e = window.document.getElementById("nineContent");
|
|
670
|
-
e && (e.style.backgroundColor =
|
|
671
|
-
},
|
|
357
|
+
e && (e.style.backgroundColor = P.siteBackgroundColor), d && (f.setProperty("--masthead-height", "250px"), f.height = "var(--masthead-height)"), ee(), O(), E(), k(), l.addEventListener("scroll", M, { passive: !0 }), F = setTimeout(M, 50);
|
|
358
|
+
}, w = () => {
|
|
672
359
|
let e = null;
|
|
673
360
|
return e = u.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
|
|
674
|
-
},
|
|
361
|
+
}, T = () => {
|
|
675
362
|
let e = u.querySelector("nav");
|
|
676
363
|
if (h("header-ad-desktop") || !e) return 0;
|
|
677
364
|
let t = l.getComputedStyle(e);
|
|
678
365
|
if (t.position !== "fixed") return 0;
|
|
679
366
|
let n = parseFloat(t.top || "0");
|
|
680
367
|
return Number.isFinite(n) && Math.abs(n) > 1 ? 0 : Math.round(e.getBoundingClientRect().height) || 0;
|
|
681
|
-
},
|
|
368
|
+
}, E = () => {
|
|
682
369
|
let e = null;
|
|
683
370
|
if (!window.parent) return e;
|
|
684
371
|
if (e = u.querySelector("div[id*=\"halfpage\"][id*=\"above\"]"), !e) return;
|
|
685
372
|
let t = e;
|
|
686
373
|
for (let e = 0; e < 6; e++) if (t = t.parentNode, t && l.getComputedStyle(t).position === "sticky") {
|
|
687
|
-
t.style.top = `${
|
|
374
|
+
t.style.top = `${P.stickyMargin.offset}px`;
|
|
688
375
|
break;
|
|
689
376
|
}
|
|
690
|
-
},
|
|
377
|
+
}, D = () => {
|
|
691
378
|
let e = l.location.href;
|
|
692
|
-
for (let t = 0; t <
|
|
693
|
-
},
|
|
379
|
+
for (let t = 0; t < S.length; t += 1) if (e.indexOf(S[t].site) >= 0) return S[t].config;
|
|
380
|
+
}, O = () => {
|
|
694
381
|
if (!c) return;
|
|
695
382
|
let e = c.style;
|
|
696
383
|
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)";
|
|
697
|
-
},
|
|
698
|
-
if (!
|
|
699
|
-
let e =
|
|
700
|
-
|
|
701
|
-
},
|
|
702
|
-
p = u.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode || u.querySelector("div[data-ui-testid=\"header-score-strip\"]")?.parentNode || h("main") || h("container") || h("page-container") || u.querySelector("div[class*=\"__MyContainer\"]") || u.querySelector("div[class*=\"__ArticleContainer\"]") || u.querySelector("div[class*=\"__VideoIndexComponent\"]") || u.querySelector("div.container.layout") || u.querySelector("main.container.layout"), p && (p.style.willChange = "clip-path", p.style.transition = "none", p.style.webkitBackfaceVisibility = "hidden", p.style.backfaceVisibility = "hidden", p.style.transform = "translate3d(0,0,0)", p.style.backgroundColor =
|
|
703
|
-
},
|
|
704
|
-
let e = l.scrollY, t = e >
|
|
705
|
-
if (p) if (t && n >
|
|
384
|
+
}, ee = () => {
|
|
385
|
+
if (!N) return;
|
|
386
|
+
let e = N.style;
|
|
387
|
+
N.className = "", e.minHeight = "250px", e.marginTop = P.adNodeMarginTop + "px", e.marginBottom = P.adNodeMarginBottom + "px", e.position = "static", e.display = "block", P.zIndex && P.zIndex();
|
|
388
|
+
}, k = () => {
|
|
389
|
+
p = u.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode || u.querySelector("div[data-ui-testid=\"header-score-strip\"]")?.parentNode || h("main") || h("container") || h("page-container") || u.querySelector("div[class*=\"__MyContainer\"]") || u.querySelector("div[class*=\"__ArticleContainer\"]") || u.querySelector("div[class*=\"__VideoIndexComponent\"]") || u.querySelector("div.container.layout") || u.querySelector("main.container.layout"), p && (p.style.willChange = "clip-path", p.style.transition = "none", p.style.webkitBackfaceVisibility = "hidden", p.style.backfaceVisibility = "hidden", p.style.transform = "translate3d(0,0,0)", p.style.backgroundColor = P.siteBackgroundColor, p.style.setProperty("--mask-inset", "0px"), p.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
|
|
390
|
+
}, A = 0, j = 0, M = () => {
|
|
391
|
+
let e = l.scrollY, t = e > A, n = e > L ? e - P.maskOffset : 0, r = Math.abs(n - j);
|
|
392
|
+
if (p) if (t && n > j) if (r > 100) {
|
|
706
393
|
let e = Math.max(0, n - 100);
|
|
707
394
|
p.style.transition = "none", p.style.setProperty("--mask-inset", `${e}px`), p.offsetHeight, p.style.transition = "clip-path 0.3s ease-out", p.style.setProperty("--mask-inset", `${n}px`);
|
|
708
395
|
} else p.style.transition = "clip-path 0.3s ease-out", p.style.setProperty("--mask-inset", `${n}px`);
|
|
709
396
|
else p.style.transition = "none", p.style.setProperty("--mask-inset", `${n}px`);
|
|
710
|
-
|
|
711
|
-
},
|
|
712
|
-
if (!
|
|
713
|
-
let
|
|
714
|
-
return
|
|
715
|
-
l.removeEventListener("scroll",
|
|
397
|
+
A = e, j = n, e > L ? (c.style.setProperty("--transform-y", `${-I}px`), f.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > I && e <= L ? (c.style.setProperty("--transform-y", `${-I}px`), f.setProperty("--masthead-height", `${250 + I - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= I && (c.style.setProperty("--transform-y", `${-e}px`), f.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
|
|
398
|
+
}, N = w(), P = D();
|
|
399
|
+
if (!P) return () => {};
|
|
400
|
+
let F = null, I = -P.responsiveScroll + o + T(), L = I + 150;
|
|
401
|
+
return C(), () => {
|
|
402
|
+
l.removeEventListener("scroll", M), F &&= (clearTimeout(F), null);
|
|
716
403
|
};
|
|
717
404
|
}, p = 866, m = 68, h = 16, g = ":scope > header h1, :scope > header h2, :scope > header h3", _ = "h1, h2, h3", v = "#app main header h1, #app main header h2, #app main header h3, #app h1, #app h2, #app h3", y = "adspot-desktop-takeover-2-above", b = -24, x = -24, S = [
|
|
718
405
|
"www.nine.com.au",
|
|
@@ -816,9 +503,9 @@ var e = (e, t, n) => {
|
|
|
816
503
|
if (!B) return () => {};
|
|
817
504
|
let V = y((B.slotId ? c.getElementById(B.slotId) : null) || o.parentElement);
|
|
818
505
|
if (!V) return () => {};
|
|
819
|
-
let
|
|
820
|
-
if (
|
|
821
|
-
let
|
|
506
|
+
let te = V.getAttribute(E);
|
|
507
|
+
if (te && te !== u) return () => {};
|
|
508
|
+
let ne = {
|
|
822
509
|
width: V.style.width,
|
|
823
510
|
maxWidth: V.style.maxWidth,
|
|
824
511
|
minWidth: V.style.minWidth,
|
|
@@ -839,28 +526,28 @@ var e = (e, t, n) => {
|
|
|
839
526
|
pointerEvents: V.style.pointerEvents,
|
|
840
527
|
zIndex: V.style.zIndex,
|
|
841
528
|
overflow: V.style.overflow
|
|
842
|
-
},
|
|
529
|
+
}, re = {
|
|
843
530
|
width: o.style.width,
|
|
844
531
|
height: o.style.height,
|
|
845
532
|
display: o.style.display,
|
|
846
533
|
border: o.style.border,
|
|
847
534
|
position: o.style.position,
|
|
848
535
|
pointerEvents: o.style.pointerEvents
|
|
849
|
-
},
|
|
536
|
+
}, ie = [], H = parseFloat(R) || m, ae = parseFloat(F) || 0, U = parseFloat(I) || 0, W = () => {
|
|
850
537
|
let e = V.parentElement;
|
|
851
|
-
for (; e && e !== c.body;)
|
|
538
|
+
for (; e && e !== c.body;) ie.push({
|
|
852
539
|
element: e,
|
|
853
540
|
overflow: e.style.overflow
|
|
854
541
|
}), d(e, "overflow", "visible"), e = e.parentElement;
|
|
855
|
-
},
|
|
542
|
+
}, oe = () => {
|
|
856
543
|
d(V, "width", L), d(V, "maxWidth", L), d(V, "minWidth", L), d(V, "height", R), d(V, "minHeight", R), d(V, "display", "block"), d(V, "overflow", "hidden"), d(V, "pointerEvents", "none"), d(V, "zIndex", "1080"), V.setAttribute(E, u), d(o, "width", L), d(o, "height", R), d(o, "display", "block"), d(o, "border", "0"), d(o, "position", "relative"), d(o, "pointerEvents", "auto");
|
|
857
|
-
},
|
|
544
|
+
}, se = {
|
|
858
545
|
element: null,
|
|
859
546
|
position: ""
|
|
860
|
-
},
|
|
547
|
+
}, G = () => {
|
|
861
548
|
let e = V.parentElement;
|
|
862
|
-
e && s.getComputedStyle(e).position === "static" && (
|
|
863
|
-
},
|
|
549
|
+
e && s.getComputedStyle(e).position === "static" && (se.element = e, se.position = e.style.position, d(e, "position", "relative")), d(V, "position", "absolute"), d(V, "top", `${ae}px`), d(V, "left", `${U}px`), d(V, "right", "auto"), d(V, "marginTop", "0px"), d(V, "marginBottom", `${h}px`), d(V, "marginLeft", "0px"), d(V, "marginRight", "0px"), d(V, "transform", "");
|
|
550
|
+
}, ce = (e) => {
|
|
864
551
|
let t = null;
|
|
865
552
|
try {
|
|
866
553
|
let e = o.contentDocument;
|
|
@@ -882,47 +569,47 @@ var e = (e, t, n) => {
|
|
|
882
569
|
} catch {
|
|
883
570
|
return o.removeAttribute(D), !1;
|
|
884
571
|
}
|
|
885
|
-
|
|
572
|
+
W(), oe(), G();
|
|
886
573
|
try {
|
|
887
574
|
o.srcdoc = t;
|
|
888
575
|
} catch {
|
|
889
576
|
return !1;
|
|
890
577
|
}
|
|
891
578
|
return !0;
|
|
892
|
-
},
|
|
579
|
+
}, le = () => {
|
|
893
580
|
d(V, "position", "fixed"), d(V, "marginTop", "0px"), d(V, "marginBottom", "0px"), d(V, "marginLeft", "0px"), d(V, "marginRight", "0px"), d(V, "transform", "");
|
|
894
|
-
},
|
|
581
|
+
}, ue = () => {
|
|
895
582
|
d(V, "display", "none");
|
|
896
|
-
},
|
|
583
|
+
}, de = () => {
|
|
897
584
|
d(V, "display", "block"), d(V, "overflow", "hidden");
|
|
898
|
-
},
|
|
899
|
-
if ((!
|
|
900
|
-
let e =
|
|
585
|
+
}, K = null, q = () => {
|
|
586
|
+
if ((!K || !K.isConnected) && (K = M(B.headingText)), !K) return;
|
|
587
|
+
let e = K.getBoundingClientRect(), t = e.top - H - h + ae, n = e.left + U;
|
|
901
588
|
d(V, "top", `${t}px`), d(V, "left", `${n}px`), d(V, "right", "auto");
|
|
902
|
-
},
|
|
903
|
-
if (
|
|
904
|
-
e > 1 && (P = s.setTimeout(() =>
|
|
589
|
+
}, J = null, Y = null, fe = !1, X = (e = 12) => {
|
|
590
|
+
if (K = M(B.headingText), !K) {
|
|
591
|
+
e > 1 && (P = s.setTimeout(() => X(e - 1), 250));
|
|
905
592
|
return;
|
|
906
593
|
}
|
|
907
|
-
|
|
594
|
+
ce(K) || (fe = !0, W(), oe(), le(), q(), J = () => q(), Y = () => q(), s.addEventListener("scroll", J, { passive: !0 }), s.addEventListener("resize", Y));
|
|
908
595
|
};
|
|
909
|
-
|
|
910
|
-
let
|
|
911
|
-
P &&= (s.clearTimeout(P), null), N &&= (s.clearTimeout(N), null),
|
|
596
|
+
X();
|
|
597
|
+
let Z = () => {
|
|
598
|
+
P &&= (s.clearTimeout(P), null), N &&= (s.clearTimeout(N), null), J &&= (s.removeEventListener("scroll", J), null), Y &&= (s.removeEventListener("resize", Y), null), V.getAttribute(E) === u && V.removeAttribute(E), fe && (Object.entries(ne).forEach(([e, t]) => {
|
|
912
599
|
V.style[e] = t;
|
|
913
|
-
}), Object.entries(
|
|
600
|
+
}), Object.entries(re).forEach(([e, t]) => {
|
|
914
601
|
o.style[e] = t;
|
|
915
|
-
}),
|
|
602
|
+
}), ie.forEach(({ element: e, overflow: t }) => {
|
|
916
603
|
e.style.overflow = t;
|
|
917
604
|
})), s[T]?.instanceId === u && delete s[T];
|
|
918
605
|
};
|
|
919
606
|
return s[T] = {
|
|
920
607
|
instanceId: u,
|
|
921
608
|
iframe: o,
|
|
922
|
-
cleanup:
|
|
923
|
-
show:
|
|
924
|
-
hide:
|
|
925
|
-
},
|
|
609
|
+
cleanup: Z,
|
|
610
|
+
show: de,
|
|
611
|
+
hide: ue
|
|
612
|
+
}, Z;
|
|
926
613
|
}, j = (e, t, n) => {
|
|
927
614
|
let r = window.frameElement ? window.frameElement : null;
|
|
928
615
|
if (!r) return () => {};
|
|
@@ -1239,7 +926,7 @@ var e = (e, t, n) => {
|
|
|
1239
926
|
};
|
|
1240
927
|
(() => {
|
|
1241
928
|
let e = a.style;
|
|
1242
|
-
e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.
|
|
929
|
+
e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", a.setAttribute("poweredAC", "0.1.88"), e.clipPath = `inset(-${t.bandHeight - 1}px 0 0 0)`, e.overflow = "visible", e.width = "100vw", e.maxWidth = "100vw", e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0", e.marginTop = "0", e.marginBottom = "0", e.padding = "0";
|
|
1243
930
|
let o = a.parentElement;
|
|
1244
931
|
for (let e = 0; e < 6 && o && o !== i.body; e++) {
|
|
1245
932
|
let t = r.getComputedStyle(o), n = !1;
|
|
@@ -1377,7 +1064,7 @@ var e = (e, t, n) => {
|
|
|
1377
1064
|
let o = a.getAttribute("style"), s = n.getAttribute("style"), c = n.parentElement === a ? null : n.parentElement, l = c ? c.getAttribute("style") : null, u = a.parentElement, d = u ? r.getComputedStyle(u).paddingTop : null, f = null, p = parseInt(n.getAttribute("width"), 10) || 320, m = parseInt(n.getAttribute("height"), 10) || 50;
|
|
1378
1065
|
return (() => {
|
|
1379
1066
|
let e = a.style;
|
|
1380
|
-
if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.
|
|
1067
|
+
if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.88"), c) {
|
|
1381
1068
|
let e = c.style;
|
|
1382
1069
|
e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
|
|
1383
1070
|
}
|
|
@@ -1404,7 +1091,7 @@ var e = (e, t, n) => {
|
|
|
1404
1091
|
stickyTop: 0,
|
|
1405
1092
|
stickyZIndex: 1e4,
|
|
1406
1093
|
stickyRespectHeader: !0,
|
|
1407
|
-
stickyHeaderSelector: "body > header, body > * > header, [role=\"banner\"]",
|
|
1094
|
+
stickyHeaderSelector: "#app > [data-ad-target=\"header\"], [data-ad-target=\"header\"] [data-ad-target=\"header-nav\"], body > header, body > * > header, [role=\"banner\"]",
|
|
1408
1095
|
stickyHeaderFallbackHeight: null,
|
|
1409
1096
|
onAdapt: null,
|
|
1410
1097
|
...e
|
|
@@ -1419,7 +1106,7 @@ var e = (e, t, n) => {
|
|
|
1419
1106
|
return () => {};
|
|
1420
1107
|
}
|
|
1421
1108
|
let a = (() => {
|
|
1422
|
-
let e = i.querySelector("#adspot-mobile-mbanner-2-above");
|
|
1109
|
+
let e = i.querySelector("#adspot-mobile-mbanner-1-above, #adspot-mobile-mbanner-2-above");
|
|
1423
1110
|
if (e) return e;
|
|
1424
1111
|
let t = n.parentElement;
|
|
1425
1112
|
for (; t && t !== i.body;) {
|
|
@@ -1567,39 +1254,39 @@ var e = (e, t, n) => {
|
|
|
1567
1254
|
let e = r.location.href;
|
|
1568
1255
|
for (let t of d) if (e.indexOf(t.site) >= 0) return t.config;
|
|
1569
1256
|
return u.nine;
|
|
1570
|
-
})(), p = f === u.smh || f === u.theage, m = n.getAttribute("style"), h = n.hasAttribute("data-mf-wallpaper-iframe"), g = a.getAttribute("style"), _ = n.parentElement === a ? null : n.parentElement, v = _ ? _.getAttribute("style") : null, y = a.parentElement, b = y ? y.getAttribute("style") : null,
|
|
1257
|
+
})(), p = f === u.smh || f === u.theage, m = n.getAttribute("style"), h = n.hasAttribute("data-mf-wallpaper-iframe"), g = a.getAttribute("style"), _ = n.parentElement === a ? null : n.parentElement, v = _ ? _.getAttribute("style") : null, y = a.parentElement, b = a.closest("[data-ad-target=\"header-ad-mobile\"]"), x = !!(y && b && y === b), S = x ? r.getComputedStyle(y).marginTop : "", C = y ? y.getAttribute("style") : null, w = s ? s.getAttribute("style") : null, T = o ? o.getAttribute("style") : null, E = o ? o.querySelector("header") : null, D = E ? E.getAttribute("style") : null, O = E ? E.querySelector(".sc-5cbbddda-1") : null, ee = O ? O.getAttribute("style") : null, k = i.querySelector("footer"), A = k ? k.getAttribute("style") : null, j = o ? Array.from(o.children).map((e) => ({
|
|
1571
1258
|
el: e,
|
|
1572
1259
|
orig: e.getAttribute("style")
|
|
1573
|
-
})) : [],
|
|
1574
|
-
if (!e || e ===
|
|
1260
|
+
})) : [], M = null, N = null, P = null, F = null, I = null, L = null, R = null, z = null, B = [], V = null, te = null, ne = null, re = null, ie = null, H = null, ae = null, U = [], W = Number.isFinite(t.stickyDurationMs) && t.stickyDurationMs > 0, oe = Number.isFinite(t.stickyScrollDistance) && t.stickyScrollDistance > 0, se = !!(t.sticky && (W || oe)), G = "pending", ce = 0, le = 0, ue = null, de = null, K = null, q = null, J = null, Y = [], fe = Number.isFinite(t.stickyHeaderFallbackHeight) ? Math.max(0, t.stickyHeaderFallbackHeight) : null, X = f === u.afr, Z = null, Q = null, pe = (e) => {
|
|
1261
|
+
if (!e || e === ne || e === y || e === a) return !1;
|
|
1575
1262
|
let t = e.firstElementChild;
|
|
1576
|
-
if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("
|
|
1263
|
+
if (!t || t !== e.lastElementChild || !t.classList.contains("container") || t.children.length > 0 || t.textContent && t.textContent.trim() || e.querySelector("[id^=\"adspot-mobile-mbanner-\"], iframe, [data-mf-slot], .adWrapper")) return !1;
|
|
1577
1264
|
let n = r.getComputedStyle(e);
|
|
1578
1265
|
return n.position === "fixed" || n.position === "sticky";
|
|
1579
|
-
},
|
|
1580
|
-
!e?.parentElement ||
|
|
1266
|
+
}, me = (e) => {
|
|
1267
|
+
!e?.parentElement || U.some((t) => t.shell === e) || (U.push({
|
|
1581
1268
|
shell: e,
|
|
1582
1269
|
parent: e.parentElement,
|
|
1583
1270
|
nextSibling: e.nextSibling
|
|
1584
1271
|
}), e.remove());
|
|
1585
|
-
},
|
|
1272
|
+
}, he = () => {
|
|
1586
1273
|
for (let e of i.querySelectorAll(".container")) {
|
|
1587
1274
|
let t = e.parentElement;
|
|
1588
|
-
|
|
1275
|
+
pe(t) && me(t);
|
|
1589
1276
|
}
|
|
1590
|
-
},
|
|
1277
|
+
}, ge = (e) => {
|
|
1591
1278
|
let t = e?.parentElement;
|
|
1592
1279
|
for (; t && t !== i.body && t !== i.documentElement;) {
|
|
1593
1280
|
let e = r.getComputedStyle(t);
|
|
1594
|
-
(e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (
|
|
1281
|
+
(e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (B.find((e) => e.el === t) || B.push({
|
|
1595
1282
|
el: t,
|
|
1596
1283
|
orig: t.getAttribute("style")
|
|
1597
1284
|
}), t.style.transform = "none", t.style.willChange = "auto", t.style.contain = "none", t.style.filter = "none", t.style.perspective = "none"), t = t.parentElement;
|
|
1598
1285
|
}
|
|
1599
|
-
},
|
|
1286
|
+
}, _e = () => {
|
|
1600
1287
|
let e = i.createElement("div");
|
|
1601
1288
|
return e.setAttribute("data-mf-billboard-mount", ""), e.style.height = `${t.billboardHeight}px`, e.style.minHeight = `${t.billboardHeight}px`, e.style.maxHeight = `${t.billboardHeight}px`, e.style.background = "transparent", e.style.overflow = "visible", e.style.position = "relative", e.style.width = "100%", e.style.padding = "0", e.style.margin = "0", e;
|
|
1602
|
-
},
|
|
1289
|
+
}, ve = () => {
|
|
1603
1290
|
if (!s || f !== u.wwos) return null;
|
|
1604
1291
|
let e = a.getBoundingClientRect().bottom, t = Array.from(s.querySelectorAll("div")).map((e) => {
|
|
1605
1292
|
let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = e.querySelector("ul");
|
|
@@ -1612,7 +1299,7 @@ var e = (e, t, n) => {
|
|
|
1612
1299
|
};
|
|
1613
1300
|
}).filter(({ rect: t, styles: n, list: r, listStyles: i }) => !r || !i || t.top < e - 4 || t.top > e + 120 || n.overflow !== "hidden" || parseFloat(n.borderTopLeftRadius) < 4 ? !1 : i.overflow === "auto" || i.overflowX === "auto");
|
|
1614
1301
|
return t.length ? (t.sort((t, n) => Math.abs(t.rect.top - e) - Math.abs(n.rect.top - e)), t[0]) : null;
|
|
1615
|
-
},
|
|
1302
|
+
}, $ = () => z || a, ye = () => !t.stickyRespectHeader || !t.stickyHeaderSelector ? [] : Array.from(i.querySelectorAll(t.stickyHeaderSelector)).map((e) => {
|
|
1616
1303
|
let t = e.getBoundingClientRect(), n = r.getComputedStyle(e), i = Number.parseInt(n.zIndex, 10);
|
|
1617
1304
|
return {
|
|
1618
1305
|
el: e,
|
|
@@ -1620,150 +1307,141 @@ var e = (e, t, n) => {
|
|
|
1620
1307
|
styles: n,
|
|
1621
1308
|
zIndex: Number.isFinite(i) ? i : null
|
|
1622
1309
|
};
|
|
1623
|
-
}).filter(({ rect: e, styles: t }) => e.width <= r.innerWidth * .5 || e.height <= 0 ? !1 : t.display !== "none" && t.visibility !== "hidden"),
|
|
1624
|
-
let e =
|
|
1310
|
+
}).filter(({ rect: e, styles: t }) => e.width <= r.innerWidth * .5 || e.height <= 0 ? !1 : t.display !== "none" && t.visibility !== "hidden"), be = () => {
|
|
1311
|
+
let e = ye().filter(({ rect: e, styles: n }) => n.position !== "fixed" && n.position !== "sticky" ? !1 : e.top <= t.stickyTop + 1 && e.bottom > t.stickyTop + 1);
|
|
1625
1312
|
return e.length ? (e.sort((e, t) => t.rect.bottom - e.rect.bottom), e[0]) : null;
|
|
1626
|
-
},
|
|
1627
|
-
let e =
|
|
1628
|
-
return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop,
|
|
1629
|
-
},
|
|
1630
|
-
let e =
|
|
1631
|
-
return e?.zIndex && e.zIndex > 2 ? Math.max(t.stickyZIndex, e.zIndex
|
|
1632
|
-
},
|
|
1633
|
-
|
|
1313
|
+
}, xe = () => {
|
|
1314
|
+
let e = be();
|
|
1315
|
+
return e ? Math.max(t.stickyTop, Math.round(e.rect.bottom)) : Math.max(t.stickyTop, fe || t.stickyTop);
|
|
1316
|
+
}, Se = () => {
|
|
1317
|
+
let e = be();
|
|
1318
|
+
return e?.zIndex && e.zIndex > 2 ? Math.max(1, Math.min(t.stickyZIndex, e.zIndex - 1)) : t.stickyZIndex;
|
|
1319
|
+
}, Ce = ({ active: e, progress: t = 0, remainingMs: n = 0 }) => {
|
|
1320
|
+
L?.contentWindow && L.contentWindow.postMessage({
|
|
1634
1321
|
type: "mobilefireplace:sticky",
|
|
1635
1322
|
active: e,
|
|
1636
1323
|
progress: Math.max(0, Math.min(1, t)),
|
|
1637
1324
|
remainingMs: Math.max(0, Math.round(n))
|
|
1638
1325
|
}, "*");
|
|
1639
|
-
},
|
|
1640
|
-
!e ||
|
|
1326
|
+
}, we = (e) => {
|
|
1327
|
+
!e || Y.some((t) => t.el === e) || Y.push({
|
|
1641
1328
|
el: e,
|
|
1642
1329
|
value: e.style.getPropertyValue("z-index"),
|
|
1643
1330
|
priority: e.style.getPropertyPriority("z-index")
|
|
1644
1331
|
});
|
|
1645
|
-
},
|
|
1646
|
-
let t = new Set([
|
|
1647
|
-
if (f === u.afr ||
|
|
1332
|
+
}, Te = (e) => {
|
|
1333
|
+
let t = new Set([$()].filter(Boolean));
|
|
1334
|
+
if (f === u.afr || H || p) {
|
|
1648
1335
|
[
|
|
1649
1336
|
a,
|
|
1650
1337
|
y,
|
|
1651
1338
|
c
|
|
1652
1339
|
].filter(Boolean).forEach((e) => t.add(e));
|
|
1653
|
-
let e =
|
|
1340
|
+
let e = $()?.parentElement;
|
|
1654
1341
|
for (; e && e !== i.body && e !== i.documentElement && (t.add(e), e.id !== "stickyLeaderboard");) e = e.parentElement;
|
|
1655
1342
|
}
|
|
1656
|
-
for (let n of t)
|
|
1657
|
-
},
|
|
1658
|
-
if (!
|
|
1659
|
-
let e =
|
|
1343
|
+
for (let n of t) we(n), n.style.setProperty("z-index", String(e), "important");
|
|
1344
|
+
}, Ee = () => X && (a.closest("#stickyLeaderboard") || i.querySelector("#stickyLeaderboard")) || $(), De = () => {
|
|
1345
|
+
if (!X || !L) return;
|
|
1346
|
+
let e = L.style;
|
|
1660
1347
|
e.left = "0px", e.width = "100vw";
|
|
1661
|
-
}, Ee = () => {
|
|
1662
|
-
if (!Z || !P || J === "active") return;
|
|
1663
|
-
let e = we();
|
|
1664
|
-
if (!e) return;
|
|
1665
|
-
let t = e.getBoundingClientRect(), n = P.style;
|
|
1666
|
-
n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, Te(), n.setProperty("z-index", "6", "important"), P.removeAttribute("data-mf-sticky-active");
|
|
1667
|
-
}, De = () => {
|
|
1668
|
-
Z && (Ee(), se && r.cancelAnimationFrame(se), se = r.requestAnimationFrame(() => {
|
|
1669
|
-
se = null, Ee();
|
|
1670
|
-
}), ce && r.clearTimeout(ce), ce = r.setTimeout(() => {
|
|
1671
|
-
ce = null, Ee();
|
|
1672
|
-
}, 350));
|
|
1673
1348
|
}, Oe = () => {
|
|
1674
|
-
!
|
|
1349
|
+
if (!X || !L || G === "active") return;
|
|
1350
|
+
let e = Ee();
|
|
1351
|
+
if (!e) return;
|
|
1352
|
+
let t = e.getBoundingClientRect(), n = L.style;
|
|
1353
|
+
n.position = "absolute", n.top = `${Math.round(r.scrollY + t.top)}px`, De(), n.setProperty("z-index", "6", "important"), L.removeAttribute("data-mf-sticky-active");
|
|
1675
1354
|
}, ke = () => {
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1355
|
+
X && (Oe(), K && r.cancelAnimationFrame(K), K = r.requestAnimationFrame(() => {
|
|
1356
|
+
K = null, Oe();
|
|
1357
|
+
}), q && r.clearTimeout(q), q = r.setTimeout(() => {
|
|
1358
|
+
q = null, Oe();
|
|
1359
|
+
}, 350));
|
|
1681
1360
|
}, Ae = () => {
|
|
1682
|
-
|
|
1683
|
-
let { el: t, value: n, priority: r } = X[e];
|
|
1684
|
-
n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
|
|
1685
|
-
}
|
|
1686
|
-
X.length = 0;
|
|
1361
|
+
!X || !L || L.parentElement === i.body || (Z = L.parentElement, Q = L.nextSibling, i.body.appendChild(L));
|
|
1687
1362
|
}, je = () => {
|
|
1688
|
-
if (!
|
|
1689
|
-
|
|
1690
|
-
let e = ge().getBoundingClientRect(), t = be();
|
|
1691
|
-
Ce(t), Oe();
|
|
1692
|
-
let n = P.style;
|
|
1693
|
-
n.position = "fixed", n.top = `${ye()}px`, Z ? Te() : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), P.setAttribute("data-mf-sticky-active", "");
|
|
1694
|
-
}, Me = () => {
|
|
1695
|
-
if (!P) return;
|
|
1696
|
-
if (ke(), Z) {
|
|
1697
|
-
De(), Ae();
|
|
1363
|
+
if (!Z || !L) {
|
|
1364
|
+
Z = null, Q = null;
|
|
1698
1365
|
return;
|
|
1699
1366
|
}
|
|
1700
|
-
|
|
1701
|
-
|
|
1367
|
+
Q && Q.parentNode === Z ? Z.insertBefore(L, Q) : Z.appendChild(L), Z = null, Q = null;
|
|
1368
|
+
}, Me = () => {
|
|
1369
|
+
for (let e = Y.length - 1; e >= 0; --e) {
|
|
1370
|
+
let { el: t, value: n, priority: r } = Y[e];
|
|
1371
|
+
n ? t.style.setProperty("z-index", n, r) : t.style.removeProperty("z-index");
|
|
1372
|
+
}
|
|
1373
|
+
Y.length = 0;
|
|
1702
1374
|
}, Ne = () => {
|
|
1703
|
-
|
|
1375
|
+
if (!L) return;
|
|
1376
|
+
ge($());
|
|
1377
|
+
let e = $().getBoundingClientRect(), t = Se();
|
|
1378
|
+
Te(t), Ae();
|
|
1379
|
+
let n = L.style;
|
|
1380
|
+
n.position = "fixed", n.top = `${xe()}px`, X ? De() : x ? (n.left = "0px", n.width = "100vw", n.setProperty("max-width", "100vw", "important")) : (n.left = `${Math.round(e.left)}px`, n.width = `${Math.round(e.width)}px`), n.setProperty("z-index", String(t), "important"), L.setAttribute("data-mf-sticky-active", "");
|
|
1704
1381
|
}, Pe = () => {
|
|
1705
|
-
|
|
1382
|
+
if (!L) return;
|
|
1383
|
+
if (je(), X) {
|
|
1384
|
+
ke(), Me();
|
|
1385
|
+
return;
|
|
1386
|
+
}
|
|
1387
|
+
let e = L.style;
|
|
1388
|
+
e.position = "relative", e.top = "", e.left = "", e.width = "100%", e.setProperty("z-index", "1"), Me(), L.removeAttribute("data-mf-sticky-active");
|
|
1706
1389
|
}, Fe = () => {
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1390
|
+
de &&= (r.cancelAnimationFrame(de), null);
|
|
1391
|
+
}, Ie = () => {
|
|
1392
|
+
if (ue === null) {
|
|
1393
|
+
let e = $().getBoundingClientRect();
|
|
1394
|
+
ue = Math.max(0, r.scrollY + e.top - t.stickyTop);
|
|
1710
1395
|
}
|
|
1711
|
-
return
|
|
1712
|
-
},
|
|
1713
|
-
let e =
|
|
1396
|
+
return ue;
|
|
1397
|
+
}, Le = () => le + (G === "active" ? Math.max(0, r.performance.now() - ce) : 0), Re = () => Math.max(0, r.scrollY - Ie()), ze = () => {
|
|
1398
|
+
let e = W ? Le() / t.stickyDurationMs : 0, n = oe ? Re() / t.stickyScrollDistance : 0;
|
|
1714
1399
|
return Math.max(e, n);
|
|
1715
|
-
},
|
|
1716
|
-
|
|
1400
|
+
}, Be = () => W ? t.stickyDurationMs - Le() : 0, Ve = () => r.scrollY < Ie() - 1, He = () => {
|
|
1401
|
+
G === "active" && (le = Le(), G = "paused", Fe(), Pe(), Ce({
|
|
1717
1402
|
active: !1,
|
|
1718
|
-
progress:
|
|
1719
|
-
remainingMs:
|
|
1403
|
+
progress: ze(),
|
|
1404
|
+
remainingMs: Be()
|
|
1720
1405
|
}));
|
|
1721
|
-
}, He = () => {
|
|
1722
|
-
J !== "paused" || Be() || (J = "active", ne = r.performance.now(), je(), We());
|
|
1723
1406
|
}, Ue = () => {
|
|
1724
|
-
|
|
1407
|
+
G !== "paused" || Ve() || (G = "active", ce = r.performance.now(), Ne(), Ge());
|
|
1408
|
+
}, We = () => {
|
|
1409
|
+
G !== "active" && G !== "paused" || (G === "active" && (le = Le()), G = "released", Fe(), Pe(), Ce({
|
|
1725
1410
|
active: !1,
|
|
1726
1411
|
progress: 1,
|
|
1727
1412
|
remainingMs: 0
|
|
1728
1413
|
}));
|
|
1729
|
-
},
|
|
1730
|
-
if (
|
|
1731
|
-
if (
|
|
1732
|
-
|
|
1414
|
+
}, Ge = () => {
|
|
1415
|
+
if (G !== "active") return;
|
|
1416
|
+
if (Ve()) {
|
|
1417
|
+
He();
|
|
1733
1418
|
return;
|
|
1734
1419
|
}
|
|
1735
|
-
let e =
|
|
1736
|
-
if (
|
|
1420
|
+
let e = Le(), n = Re(), i = W ? e / t.stickyDurationMs : 0, a = oe ? n / t.stickyScrollDistance : 0, o = Math.max(i, a), s = W ? t.stickyDurationMs - e : 0;
|
|
1421
|
+
if (Ne(), Ce({
|
|
1737
1422
|
active: !0,
|
|
1738
1423
|
progress: o,
|
|
1739
1424
|
remainingMs: s
|
|
1740
1425
|
}), i >= 1 || a >= 1) {
|
|
1741
|
-
|
|
1426
|
+
We();
|
|
1742
1427
|
return;
|
|
1743
1428
|
}
|
|
1744
|
-
|
|
1745
|
-
}, Ge = () => {
|
|
1746
|
-
if (!q || J !== "pending" || !P) return;
|
|
1747
|
-
Pe();
|
|
1748
|
-
let e = ge().getBoundingClientRect();
|
|
1749
|
-
ie = Math.max(0, r.scrollY + e.top - t.stickyTop), re = 0, J = "active", ne = r.performance.now(), je(), We();
|
|
1429
|
+
de = r.requestAnimationFrame(Ge);
|
|
1750
1430
|
}, Ke = () => {
|
|
1751
|
-
!
|
|
1431
|
+
if (!se || G !== "pending" || !L) return;
|
|
1432
|
+
let e = $().getBoundingClientRect();
|
|
1433
|
+
ue = Math.max(0, r.scrollY + e.top - t.stickyTop), le = 0, G = "active", ce = r.performance.now(), Ne(), Ge();
|
|
1752
1434
|
}, qe = () => {
|
|
1753
|
-
|
|
1435
|
+
!se || G !== "pending" || !L || $().getBoundingClientRect().top <= t.stickyTop && Ke();
|
|
1754
1436
|
}, Je = () => {
|
|
1755
|
-
|
|
1756
|
-
oe = null;
|
|
1757
|
-
return;
|
|
1758
|
-
}
|
|
1759
|
-
Ke(), oe = J === "pending" ? r.requestAnimationFrame(Je) : null;
|
|
1437
|
+
G === "pending" ? qe() : G === "active" && Ve() ? He() : G === "paused" && Ue(), G !== "active" && ke();
|
|
1760
1438
|
}, Ye = () => {
|
|
1761
|
-
|
|
1439
|
+
he();
|
|
1762
1440
|
let e = n.parentElement;
|
|
1763
1441
|
for (; e && e !== i.body && e !== i.documentElement;) {
|
|
1764
1442
|
let t = r.getComputedStyle(e);
|
|
1765
1443
|
if (t.position === "fixed" || t.position === "sticky") {
|
|
1766
|
-
|
|
1444
|
+
H = e, ae = e.getAttribute("style");
|
|
1767
1445
|
break;
|
|
1768
1446
|
}
|
|
1769
1447
|
e = e.parentElement;
|
|
@@ -1771,10 +1449,10 @@ var e = (e, t, n) => {
|
|
|
1771
1449
|
let d = n.parentElement;
|
|
1772
1450
|
for (; d && d !== i.body && d !== i.documentElement;) {
|
|
1773
1451
|
let e = r.getComputedStyle(d);
|
|
1774
|
-
(e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (
|
|
1452
|
+
(e.transform && e.transform !== "none" || e.willChange && e.willChange !== "auto" || e.contain && e.contain !== "none" || e.filter && e.filter !== "none" || e.perspective && e.perspective !== "none") && (B.push({
|
|
1775
1453
|
el: d,
|
|
1776
1454
|
orig: d.getAttribute("style")
|
|
1777
|
-
}), d.style.transform = "none", d.style.willChange = "auto", d.style.contain = "none", d.style.filter = "none", d.style.perspective = "none"), e.overflow !== "visible" && (
|
|
1455
|
+
}), d.style.transform = "none", d.style.willChange = "auto", d.style.contain = "none", d.style.filter = "none", d.style.perspective = "none"), e.overflow !== "visible" && (B.find((e) => e.el === d) || B.push({
|
|
1778
1456
|
el: d,
|
|
1779
1457
|
orig: d.getAttribute("style")
|
|
1780
1458
|
}), d.style.overflow = "visible"), d = d.parentElement;
|
|
@@ -1782,20 +1460,20 @@ var e = (e, t, n) => {
|
|
|
1782
1460
|
let m = n.style;
|
|
1783
1461
|
if (m.setProperty("position", f === u.afr ? "absolute" : "fixed", f === u.afr ? "important" : ""), m.setProperty("top", "0", f === u.afr ? "important" : ""), m.setProperty("left", "0", f === u.afr ? "important" : ""), m.setProperty("width", f === u.afr ? "0" : "100vw", f === u.afr ? "important" : ""), m.setProperty("height", f === u.afr ? "0" : "100dvh", f === u.afr ? "important" : ""), m.setProperty("z-index", f === u.afr ? "0" : String(t.zIndex), f === u.afr ? "important" : ""), m.setProperty("border", "none", f === u.afr ? "important" : ""), m.setProperty("margin", "0", f === u.afr ? "important" : ""), m.setProperty("padding", "0", f === u.afr ? "important" : ""), m.setProperty("display", "block", f === u.afr ? "important" : ""), m.setProperty("opacity", f === u.afr ? "0" : "1", f === u.afr ? "important" : ""), m.setProperty("pointer-events", "none", f === u.afr ? "important" : ""), f === u.afr && l && l !== "about:blank") try {
|
|
1784
1462
|
let e = new URL(l);
|
|
1785
|
-
e.searchParams.set("mfRole", "wallpaper"),
|
|
1786
|
-
let t =
|
|
1787
|
-
t.setProperty("position", "fixed", "important"), t.setProperty("top", "0", "important"), t.setProperty("left", "0", "important"), t.setProperty("width", "100vw", "important"), t.setProperty("height", "100dvh", "important"), t.setProperty("border", "none", "important"), t.setProperty("margin", "0", "important"), t.setProperty("padding", "0", "important"), t.setProperty("display", "block", "important"), t.setProperty("background", "transparent", "important"), t.setProperty("z-index", "0", "important"), t.setProperty("pointer-events", "none", "important"), i.body.insertBefore(
|
|
1463
|
+
e.searchParams.set("mfRole", "wallpaper"), R = i.createElement("iframe"), R.src = e.href, R.setAttribute("data-mf-wallpaper-iframe", ""), R.setAttribute("scrolling", "no"), R.setAttribute("frameborder", "0");
|
|
1464
|
+
let t = R.style;
|
|
1465
|
+
t.setProperty("position", "fixed", "important"), t.setProperty("top", "0", "important"), t.setProperty("left", "0", "important"), t.setProperty("width", "100vw", "important"), t.setProperty("height", "100dvh", "important"), t.setProperty("border", "none", "important"), t.setProperty("margin", "0", "important"), t.setProperty("padding", "0", "important"), t.setProperty("display", "block", "important"), t.setProperty("background", "transparent", "important"), t.setProperty("z-index", "0", "important"), t.setProperty("pointer-events", "none", "important"), i.body.insertBefore(R, i.body.firstChild);
|
|
1788
1466
|
} catch (e) {
|
|
1789
1467
|
console.warn("[mobilefireplace] Could not create AFR wallpaper iframe:", e);
|
|
1790
1468
|
}
|
|
1791
|
-
if (a.setAttribute("poweredAC", "0.1.
|
|
1469
|
+
if (a.setAttribute("poweredAC", "0.1.88"), _) {
|
|
1792
1470
|
let e = _.style;
|
|
1793
1471
|
e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
|
|
1794
1472
|
}
|
|
1795
1473
|
let h = a.style;
|
|
1796
|
-
h.height = t.billboardHeight + "px", h.minHeight = t.billboardHeight + "px", h.background = "transparent", h.overflow = "visible", h.position = "relative", h.width = "100%", h.padding = "0", h.margin = "0", y && (y.style.overflow = "visible", y.style.position = "relative", y.style.backgroundColor = "transparent", y.style.height = t.billboardHeight + "px", y.style.minHeight = t.billboardHeight + "px", y.style.maxHeight = t.billboardHeight + "px", y.style.padding = "0", y.style.margin = "0", y.setAttribute("data-mf-slot", ""));
|
|
1474
|
+
h.height = t.billboardHeight + "px", h.minHeight = t.billboardHeight + "px", h.background = "transparent", h.overflow = "visible", h.position = "relative", h.width = "100%", h.padding = "0", h.margin = "0", y && (y.style.overflow = "visible", y.style.position = "relative", y.style.backgroundColor = "transparent", y.style.height = t.billboardHeight + "px", y.style.minHeight = t.billboardHeight + "px", y.style.maxHeight = t.billboardHeight + "px", y.style.padding = "0", y.style.margin = "0", x && S && S !== "0px" && (y.style.marginTop = S), y.setAttribute("data-mf-slot", ""));
|
|
1797
1475
|
let g = `max(${t.sideStripWidth}px, env(safe-area-inset-left))`, v = `max(${t.sideStripWidth}px, env(safe-area-inset-right))`;
|
|
1798
|
-
if (
|
|
1476
|
+
if (I = i.createElement("style"), I.id = "mobilefireplace-pac", I.textContent = `
|
|
1799
1477
|
/* Mobile Fireplace — powered-ad-config */
|
|
1800
1478
|
html, body {
|
|
1801
1479
|
background-color: transparent !important;
|
|
@@ -1818,6 +1496,11 @@ var e = (e, t, n) => {
|
|
|
1818
1496
|
margin-right: ${v} !important;
|
|
1819
1497
|
}
|
|
1820
1498
|
/* Header, nav and network nav stay full-width — no side margin, keep own background */
|
|
1499
|
+
#app > [data-ad-target="header"],
|
|
1500
|
+
#app [data-ad-target="header-nav"],
|
|
1501
|
+
#app [data-ad-target="header-nav"] nav,
|
|
1502
|
+
#app > [data-ad-target="header-ad-desktop"],
|
|
1503
|
+
#app > [data-ad-target="header-ad-mobile"],
|
|
1821
1504
|
body > * > header,
|
|
1822
1505
|
body > * > nav,
|
|
1823
1506
|
body > * > [data-network-nav],
|
|
@@ -1825,6 +1508,49 @@ var e = (e, t, n) => {
|
|
|
1825
1508
|
margin-left: 0 !important;
|
|
1826
1509
|
margin-right: 0 !important;
|
|
1827
1510
|
}
|
|
1511
|
+
#app > [data-ad-target="header"] {
|
|
1512
|
+
left: 0 !important;
|
|
1513
|
+
right: auto !important;
|
|
1514
|
+
width: 100vw !important;
|
|
1515
|
+
max-width: 100vw !important;
|
|
1516
|
+
margin: 0 !important;
|
|
1517
|
+
transform: none !important;
|
|
1518
|
+
z-index: 1075 !important;
|
|
1519
|
+
box-sizing: border-box !important;
|
|
1520
|
+
}
|
|
1521
|
+
#app > [data-ad-target="header"] [data-ad-target="header-nav"] {
|
|
1522
|
+
width: 100% !important;
|
|
1523
|
+
max-width: 100% !important;
|
|
1524
|
+
box-sizing: border-box !important;
|
|
1525
|
+
}
|
|
1526
|
+
#app > [data-ad-target="header-ad-mobile"] {
|
|
1527
|
+
background-color: transparent !important;
|
|
1528
|
+
box-sizing: border-box !important;
|
|
1529
|
+
overflow: visible !important;
|
|
1530
|
+
width: 100% !important;
|
|
1531
|
+
max-width: 100% !important;
|
|
1532
|
+
z-index: 1 !important;
|
|
1533
|
+
}
|
|
1534
|
+
#app > [data-ad-target="page-container"],
|
|
1535
|
+
#app > [data-ad-target="footer"] {
|
|
1536
|
+
box-sizing: border-box !important;
|
|
1537
|
+
}
|
|
1538
|
+
#app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child {
|
|
1539
|
+
margin-left: -16px !important;
|
|
1540
|
+
margin-right: -16px !important;
|
|
1541
|
+
width: calc(100% + 32px) !important;
|
|
1542
|
+
max-width: calc(100% + 32px) !important;
|
|
1543
|
+
box-sizing: border-box !important;
|
|
1544
|
+
}
|
|
1545
|
+
#app > [data-ad-target="page-container"] > div:first-of-type > main > div:first-child > section:first-child > a {
|
|
1546
|
+
margin-left: 0 !important;
|
|
1547
|
+
margin-right: 0 !important;
|
|
1548
|
+
width: 100% !important;
|
|
1549
|
+
max-width: 100% !important;
|
|
1550
|
+
padding-left: 16px !important;
|
|
1551
|
+
padding-right: 16px !important;
|
|
1552
|
+
box-sizing: border-box !important;
|
|
1553
|
+
}
|
|
1828
1554
|
iframe[id^="google_ads_iframe_"][style*="position: fixed"]:not([data-mf-billboard-iframe]),
|
|
1829
1555
|
[data-mf-wallpaper-iframe] {
|
|
1830
1556
|
z-index: 0 !important;
|
|
@@ -1936,16 +1662,24 @@ var e = (e, t, n) => {
|
|
|
1936
1662
|
}
|
|
1937
1663
|
` : ""}
|
|
1938
1664
|
/* The mobilefireplace slot wrapper — transparent, full-width, no margins */
|
|
1939
|
-
[data-mf-slot],
|
|
1665
|
+
[data-mf-slot]:not([data-ad-target="header-ad-mobile"]),
|
|
1940
1666
|
[data-mf-slot] > * {
|
|
1941
1667
|
background-color: transparent !important;
|
|
1942
1668
|
z-index: auto !important;
|
|
1943
1669
|
margin: 0 !important;
|
|
1944
1670
|
padding: 0 !important;
|
|
1945
1671
|
}
|
|
1672
|
+
[data-mf-slot][data-ad-target="header-ad-mobile"] {
|
|
1673
|
+
background-color: transparent !important;
|
|
1674
|
+
z-index: 1 !important;
|
|
1675
|
+
margin-left: 0 !important;
|
|
1676
|
+
margin-right: 0 !important;
|
|
1677
|
+
margin-bottom: 0 !important;
|
|
1678
|
+
padding: 0 !important;
|
|
1679
|
+
}
|
|
1946
1680
|
/* The ad slot itself stays transparent */
|
|
1947
|
-
|
|
1948
|
-
|
|
1681
|
+
[id^="adspot-mobile-mbanner-"],
|
|
1682
|
+
[id^="adspot-mobile-mbanner-"] > * {
|
|
1949
1683
|
background-color: transparent !important;
|
|
1950
1684
|
z-index: auto !important;
|
|
1951
1685
|
margin: 0 !important;
|
|
@@ -1959,50 +1693,50 @@ var e = (e, t, n) => {
|
|
|
1959
1693
|
margin: 0 !important;
|
|
1960
1694
|
padding: 0 !important;
|
|
1961
1695
|
}
|
|
1962
|
-
`, i.head.appendChild(
|
|
1963
|
-
let e =
|
|
1964
|
-
e && (
|
|
1696
|
+
`, i.head.appendChild(I), f.setup && f.setup(i, a), f === u.wwos) {
|
|
1697
|
+
let e = ve();
|
|
1698
|
+
e && (M = e.el, N = M.getAttribute("style"), P = e.list, F = P ? P.getAttribute("style") : null, M.style.marginLeft = "10px", M.style.marginRight = "10px", M.style.width = "calc(100% - 20px)", P && (P.style.width = "100%"));
|
|
1965
1699
|
}
|
|
1966
|
-
if (o && f !== u.afr && (
|
|
1967
|
-
if (
|
|
1700
|
+
if (o && f !== u.afr && (H || p)) {
|
|
1701
|
+
if (H && (ne = c || y), l && l !== "about:blank") {
|
|
1968
1702
|
let e = new URL(l);
|
|
1969
|
-
e.searchParams.set("mfRole", "wallpaper"),
|
|
1970
|
-
let n =
|
|
1971
|
-
n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100dvh", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.background = "transparent", n.zIndex = String(t.zIndex), n.pointerEvents = "none", i.body.insertBefore(
|
|
1703
|
+
e.searchParams.set("mfRole", "wallpaper"), R = i.createElement("iframe"), R.src = e.href, R.setAttribute("data-mf-wallpaper-iframe", ""), R.setAttribute("scrolling", "no"), R.setAttribute("frameborder", "0");
|
|
1704
|
+
let n = R.style;
|
|
1705
|
+
n.position = "fixed", n.top = "0", n.left = "0", n.width = "100vw", n.height = "100dvh", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.background = "transparent", n.zIndex = String(t.zIndex), n.pointerEvents = "none", i.body.insertBefore(R, i.body.firstChild);
|
|
1972
1706
|
}
|
|
1973
|
-
n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1",
|
|
1974
|
-
for (let { el: e } of
|
|
1975
|
-
|
|
1707
|
+
n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.width = "0", n.style.height = "0", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1", z = _e(), o.parentElement.insertBefore(z, o), H ? (H.style.position = "static", H.style.inset = "auto", H.style.height = "0", H.style.minHeight = "0", H.style.maxHeight = "0", H.style.overflow = "hidden", H.style.backgroundColor = "transparent", H.style.boxShadow = "none", H.style.border = "0", H.style.outline = "0", H.style.pointerEvents = "none") : y && (y.style.height = "0", y.style.minHeight = "0", y.style.maxHeight = "0", y.style.overflow = "hidden", y.style.backgroundColor = "transparent", y.style.border = "0", y.style.outline = "0"), h.height = "0", h.minHeight = "0", h.width = "0", h.overflow = "hidden", s && (s.style.backgroundColor = "transparent", s.style.backgroundImage = "none", s.style.position = "relative", s.style.zIndex = "1"), o.style.marginLeft = "14px", o.style.marginRight = "14px", o.style.backgroundColor = "#ffffff", o.style.position = "relative", o.style.zIndex = "2", o.style.overflowX = "clip", o.style.isolation = "isolate";
|
|
1708
|
+
for (let { el: e } of j) e.style.backgroundColor = "transparent", e.style.boxShadow = "none", e.style.paddingLeft = "10px", e.style.paddingRight = "10px";
|
|
1709
|
+
E && (E.style.borderTop = "0", E.style.outline = "0", E.style.boxShadow = "none"), O && (O.style.borderBottom = "0"), k && (k.style.marginLeft = "14px", k.style.marginRight = "14px", k.style.position = "relative", k.style.zIndex = "2"), he();
|
|
1976
1710
|
}
|
|
1977
|
-
|
|
1711
|
+
z || (z = _e(), a.appendChild(z));
|
|
1978
1712
|
}, Xe = null, Ze = null, Qe = !1, $e = () => {
|
|
1979
1713
|
let e = r.innerWidth, n = r.innerHeight;
|
|
1980
1714
|
if (e > n) {
|
|
1981
1715
|
let r = n / e, i = Math.round(t.billboardHeight * r);
|
|
1982
|
-
a.style.height = i + "px", a.style.minHeight = i + "px",
|
|
1983
|
-
} else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px",
|
|
1984
|
-
|
|
1716
|
+
a.style.height = i + "px", a.style.minHeight = i + "px", z && (z.style.height = i + "px", z.style.minHeight = i + "px", z.style.maxHeight = i + "px"), L && (L.style.height = i + "px");
|
|
1717
|
+
} else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", z && (z.style.height = t.billboardHeight + "px", z.style.minHeight = t.billboardHeight + "px", z.style.maxHeight = t.billboardHeight + "px"), L && (L.style.height = t.billboardHeight + "px");
|
|
1718
|
+
G === "active" ? Ne() : ke();
|
|
1985
1719
|
};
|
|
1986
1720
|
if (Ye(), l && l !== "about:blank") try {
|
|
1987
1721
|
let e = new URL(l);
|
|
1988
|
-
e.searchParams.set("mfRole", "billboard"),
|
|
1989
|
-
let n =
|
|
1990
|
-
n.position =
|
|
1722
|
+
e.searchParams.set("mfRole", "billboard"), L = i.createElement("iframe"), L.src = e.href, L.setAttribute("data-mf-billboard-iframe", ""), L.setAttribute("scrolling", "no"), L.setAttribute("frameborder", "0");
|
|
1723
|
+
let n = L.style;
|
|
1724
|
+
n.position = X ? "absolute" : "relative", n.width = "100%", n.height = t.billboardHeight + "px", n.border = "none", n.margin = "0", n.padding = "0", n.display = "block", n.overflow = "hidden", n.background = "transparent", n.zIndex = X ? "6" : "1", X ? (L.setAttribute("data-mf-body-billboard", ""), i.body.appendChild(L), Oe()) : (z || a).appendChild(L), se && (J = Je, r.addEventListener("scroll", J, { passive: !0 }));
|
|
1991
1725
|
} catch (e) {
|
|
1992
1726
|
console.warn("[mobilefireplace] Could not create billboard iframe:", e);
|
|
1993
1727
|
}
|
|
1994
1728
|
r.__mfBridge = {
|
|
1995
1729
|
adapted: !1,
|
|
1996
|
-
wallpaperWindow:
|
|
1997
|
-
billboardIframe:
|
|
1730
|
+
wallpaperWindow: R?.contentWindow || n.contentWindow,
|
|
1731
|
+
billboardIframe: L,
|
|
1998
1732
|
billboardWindow: null
|
|
1999
|
-
},
|
|
1733
|
+
}, R && R.addEventListener("load", () => {
|
|
2000
1734
|
try {
|
|
2001
|
-
r.__mfBridge && (r.__mfBridge.wallpaperWindow =
|
|
1735
|
+
r.__mfBridge && (r.__mfBridge.wallpaperWindow = R.contentWindow);
|
|
2002
1736
|
} catch {}
|
|
2003
|
-
}),
|
|
1737
|
+
}), L && L.addEventListener("load", () => {
|
|
2004
1738
|
try {
|
|
2005
|
-
r.__mfBridge.billboardWindow =
|
|
1739
|
+
r.__mfBridge.billboardWindow = L.contentWindow;
|
|
2006
1740
|
} catch {}
|
|
2007
1741
|
}), Xe = $e, r.addEventListener("resize", Xe), $e(), Ze = () => {
|
|
2008
1742
|
et();
|
|
@@ -2011,23 +1745,23 @@ var e = (e, t, n) => {
|
|
|
2011
1745
|
});
|
|
2012
1746
|
let et = () => {
|
|
2013
1747
|
if (!Qe) {
|
|
2014
|
-
Qe = !0, Ze &&= (window.removeEventListener("pagehide", Ze), window.removeEventListener("beforeunload", Ze), null), Xe &&= (r.removeEventListener("resize", Xe), null),
|
|
1748
|
+
Qe = !0, Ze &&= (window.removeEventListener("pagehide", Ze), window.removeEventListener("beforeunload", Ze), null), Xe &&= (r.removeEventListener("resize", Xe), null), J &&= (r.removeEventListener("scroll", J), null), Fe(), K &&= (r.cancelAnimationFrame(K), null), q &&= (r.clearTimeout(q), null), Ce({
|
|
2015
1749
|
active: !1,
|
|
2016
1750
|
progress: 1,
|
|
2017
1751
|
remainingMs: 0
|
|
2018
|
-
}),
|
|
1752
|
+
}), I && I.parentNode && (I.parentNode.removeChild(I), I = null), L && L.parentNode && (L.parentNode.removeChild(L), L = null), Z = null, Q = null, z && z.parentNode && (z.parentNode.removeChild(z), z = null), R && R.parentNode && (R.parentNode.removeChild(R), R = null);
|
|
2019
1753
|
try {
|
|
2020
1754
|
delete r.__mfBridge;
|
|
2021
1755
|
} catch {}
|
|
2022
|
-
for (let e =
|
|
2023
|
-
let { shell: t, parent: n, nextSibling: r } =
|
|
1756
|
+
for (let e = U.length - 1; e >= 0; --e) {
|
|
1757
|
+
let { shell: t, parent: n, nextSibling: r } = U[e];
|
|
2024
1758
|
!t || !n || (r && r.parentNode === n ? n.insertBefore(t, r) : n.appendChild(t));
|
|
2025
1759
|
}
|
|
2026
|
-
|
|
2027
|
-
for (let { el: e, orig: t } of
|
|
2028
|
-
|
|
2029
|
-
for (let { el: e, orig: t } of
|
|
2030
|
-
|
|
1760
|
+
U.length = 0, V && (te && te.parentNode === V ? V.insertBefore(n, te) : V.appendChild(n), V = null, te = null), m ? n.setAttribute("style", m) : n.removeAttribute("style"), h || n.removeAttribute("data-mf-wallpaper-iframe");
|
|
1761
|
+
for (let { el: e, orig: t } of B) t ? e.setAttribute("style", t) : e.removeAttribute("style");
|
|
1762
|
+
B.length = 0, g ? a.setAttribute("style", g) : a.removeAttribute("style"), _ && (v ? _.setAttribute("style", v) : _.removeAttribute("style")), ne &&= (re && (ie && ie.parentNode === re ? re.insertBefore(ne, ie) : re.appendChild(ne), re = null, ie = null), null), y && (y.removeAttribute("data-mf-slot"), C ? y.setAttribute("style", C) : y.removeAttribute("style")), H && (ae ? H.setAttribute("style", ae) : H.removeAttribute("style"), H = null, ae = null);
|
|
1763
|
+
for (let { el: e, orig: t } of j) t ? e.setAttribute("style", t) : e.removeAttribute("style");
|
|
1764
|
+
P && (F ? P.setAttribute("style", F) : P.removeAttribute("style"), P = null, F = null), M && (N ? M.setAttribute("style", N) : M.removeAttribute("style"), M = null, N = null), o && (T ? o.setAttribute("style", T) : o.removeAttribute("style")), E && (D ? E.setAttribute("style", D) : E.removeAttribute("style")), O && (ee ? O.setAttribute("style", ee) : O.removeAttribute("style")), k && (A ? k.setAttribute("style", A) : k.removeAttribute("style")), s && (w ? s.setAttribute("style", w) : s.removeAttribute("style"));
|
|
2031
1765
|
}
|
|
2032
1766
|
};
|
|
2033
1767
|
return et;
|
|
@@ -2037,6 +1771,6 @@ function L({ adFormat: e = "", stickyOffset: t = 0, logoPosX: n = 0, logoHeight:
|
|
|
2037
1771
|
let o = () => {};
|
|
2038
1772
|
return e === "fireplace" ? o = d(t) : e === "fireplace-collant" ? o = f(t) : e === "logomorph" ? o = j(n, r, i) : e === "dynamicheading" ? o = A(a) : e === "interscroller" ? o = N(a) : e === "liquidframe" ? o = P(a) : e === "mobilefireplace" ? o = F(a) : console.warn("[powered-ad-config] Unknown ad format:", e), I = typeof o == "function" ? o : () => {}, I;
|
|
2039
1773
|
}
|
|
2040
|
-
L.version = "0.1.
|
|
1774
|
+
L.version = "0.1.88";
|
|
2041
1775
|
//#endregion
|
|
2042
1776
|
export { L as default };
|