powered-ad-config 0.1.5 → 0.1.7
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 +1200 -967
- package/dist/powered-ad-config.umd.js +11 -11
- package/package.json +2 -2
|
@@ -1,909 +1,1154 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
},
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
},
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
1
|
+
//#region src/lib/components/fireplace.js
|
|
2
|
+
var e = (e) => {
|
|
3
|
+
let t = window.frameElement ? window.frameElement : null;
|
|
4
|
+
if (!t) return () => {};
|
|
5
|
+
let n = window.parent;
|
|
6
|
+
if (!n || n === window) return () => {};
|
|
7
|
+
let r = null;
|
|
8
|
+
try {
|
|
9
|
+
r = n.document, n.location.href;
|
|
10
|
+
} catch {
|
|
11
|
+
return () => {};
|
|
12
|
+
}
|
|
13
|
+
let i = {
|
|
14
|
+
siteBackgroundColor: "#ffffff",
|
|
15
|
+
fireplaceLeftMargin: 0,
|
|
16
|
+
adNodeMarginTop: -24,
|
|
17
|
+
adNodeMarginBottom: 24,
|
|
18
|
+
responsiveScroll: -124,
|
|
19
|
+
xPosHalfpage: 695,
|
|
20
|
+
yPosHalfpage: 72,
|
|
21
|
+
stickyMargin: {
|
|
22
|
+
offset: 72,
|
|
23
|
+
isSticky: !0
|
|
24
|
+
},
|
|
25
|
+
zIndex: function() {
|
|
26
|
+
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
27
|
+
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");
|
|
28
|
+
}
|
|
29
|
+
}, a = {
|
|
30
|
+
siteBackgroundColor: "#ffffff",
|
|
31
|
+
fireplaceLeftMargin: 0,
|
|
32
|
+
adNodeMarginTop: -24,
|
|
33
|
+
adNodeMarginBottom: 24,
|
|
34
|
+
responsiveScroll: -124,
|
|
35
|
+
xPosHalfpage: 695,
|
|
36
|
+
yPosHalfpage: 32,
|
|
37
|
+
stickyMargin: {
|
|
38
|
+
offset: 32,
|
|
39
|
+
isSticky: !0
|
|
40
|
+
},
|
|
41
|
+
zIndex: function() {
|
|
42
|
+
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
43
|
+
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");
|
|
44
|
+
}
|
|
45
|
+
}, o = {
|
|
46
|
+
siteBackgroundColor: "#ffffff",
|
|
47
|
+
fireplaceLeftMargin: 0,
|
|
48
|
+
adNodeMarginTop: -24,
|
|
49
|
+
adNodeMarginBottom: -55,
|
|
50
|
+
responsiveScroll: -120,
|
|
51
|
+
xPosHalfpage: 722,
|
|
52
|
+
yPosHalfpage: 32,
|
|
53
|
+
stickyMargin: {
|
|
54
|
+
offset: 8,
|
|
55
|
+
isSticky: !0
|
|
56
|
+
},
|
|
57
|
+
zIndex: function() {
|
|
58
|
+
let e = window.parent.document;
|
|
59
|
+
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\"]")) {
|
|
60
|
+
let t = e.createElement("style");
|
|
61
|
+
t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, s = {
|
|
65
|
+
siteBackgroundColor: "#ffffff",
|
|
66
|
+
fireplaceLeftMargin: 0,
|
|
67
|
+
adNodeMarginTop: -24,
|
|
68
|
+
adNodeMarginBottom: 0,
|
|
69
|
+
responsiveScroll: -124,
|
|
70
|
+
xPosHalfpage: 720,
|
|
71
|
+
yPosHalfpage: 32,
|
|
72
|
+
stickyMargin: {
|
|
73
|
+
offset: 104,
|
|
74
|
+
isSticky: !0
|
|
75
|
+
},
|
|
76
|
+
zIndex: function() {
|
|
77
|
+
let e = window.parent.document, t = e.querySelector("footer").previousElementSibling;
|
|
78
|
+
if (t && t.tagName.toLowerCase() === "div" && (t.style.position = "relative"), e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) {
|
|
79
|
+
let t = e.createElement("style");
|
|
80
|
+
t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, c = {
|
|
84
|
+
siteBackgroundColor: "#f7f7f7",
|
|
85
|
+
fireplaceLeftMargin: 0,
|
|
86
|
+
adNodeMarginTop: -25,
|
|
87
|
+
adNodeMarginBottom: 0,
|
|
88
|
+
responsiveScroll: -124,
|
|
89
|
+
xPosHalfpage: 720,
|
|
90
|
+
yPosHalfpage: 32,
|
|
91
|
+
stickyMargin: {
|
|
92
|
+
offset: 104,
|
|
93
|
+
isSticky: !0
|
|
94
|
+
},
|
|
95
|
+
zIndex: function() {
|
|
96
|
+
let e = window.parent.document;
|
|
97
|
+
if (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("div[id*=\"tablet\"][id*=\"takeover\"]")) {
|
|
98
|
+
let t = e.createElement("style");
|
|
99
|
+
t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}, l = {
|
|
103
|
+
siteBackgroundColor: "#ffffff",
|
|
104
|
+
fireplaceLeftMargin: 0,
|
|
105
|
+
adNodeMarginTop: -32,
|
|
106
|
+
adNodeMarginBottom: 18,
|
|
107
|
+
responsiveScroll: -124,
|
|
108
|
+
xPosHalfpage: 720,
|
|
109
|
+
yPosHalfpage: 16,
|
|
110
|
+
stickyMargin: {
|
|
111
|
+
offset: 16,
|
|
112
|
+
isSticky: !0
|
|
113
|
+
},
|
|
114
|
+
zIndex: function() {
|
|
115
|
+
let e = window.parent.document;
|
|
116
|
+
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);");
|
|
117
|
+
}
|
|
118
|
+
}, u = [
|
|
119
|
+
{
|
|
120
|
+
site: "https://www.nine.com.au/sport",
|
|
121
|
+
config: s
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
site: "https://www.nine.com.au/product-reviews",
|
|
125
|
+
config: a
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
site: "https://www.nine.com.au/property",
|
|
129
|
+
config: a
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
site: "https://www.nine.com.au/entertainment",
|
|
133
|
+
config: a
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
site: "https://staging.nine.com.au/sport",
|
|
137
|
+
config: s
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
site: "https://staging.nine.com.au/product-reviews",
|
|
141
|
+
config: a
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
site: "https://staging.nine.com.au/property",
|
|
145
|
+
config: a
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
site: "https://staging.nine.com.au/entertainment",
|
|
149
|
+
config: a
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
site: "https://render-web-nine-staging-v1.ffxblue.com.au",
|
|
153
|
+
config: o
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
site: "https://render-web-nine-production-v1.ffxblue.com.au",
|
|
157
|
+
config: o
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
site: "https://preview.nine.com.au/",
|
|
161
|
+
config: o
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
site: "https://www.nine",
|
|
165
|
+
config: o
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
site: "https://staging.nine",
|
|
169
|
+
config: o
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
site: "https://entertainment",
|
|
173
|
+
config: i
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
site: "https://celebrity",
|
|
177
|
+
config: i
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
site: "https://homes",
|
|
181
|
+
config: i
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
site: "https://travel",
|
|
185
|
+
config: i
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
site: "https://honey",
|
|
189
|
+
config: i
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
site: "https://style",
|
|
193
|
+
config: i
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
site: "https://coach",
|
|
197
|
+
config: i
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
site: "https://kitchen",
|
|
201
|
+
config: i
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
site: "https://finance",
|
|
205
|
+
config: i
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
site: "https://wwos",
|
|
209
|
+
config: c
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
site: "https://staging.wwos",
|
|
213
|
+
config: s
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
site: "https://www.9news",
|
|
217
|
+
config: l
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
site: "https://staging.9news",
|
|
221
|
+
config: l
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
site: "https://www.yourtv",
|
|
225
|
+
config: i
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
site: "https://staging.yourtv",
|
|
229
|
+
config: i
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
site: "https://9now",
|
|
233
|
+
config: a
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
site: "https://creative-preview-an.com",
|
|
237
|
+
config: i
|
|
238
|
+
}
|
|
239
|
+
], d = () => {
|
|
240
|
+
let e = window.document.getElementById("nineContent");
|
|
241
|
+
e && (e.style.backgroundColor = v.siteBackgroundColor), h(), m(), n.addEventListener("scroll", g), y = setTimeout(g, 50);
|
|
242
|
+
}, f = () => {
|
|
243
|
+
let e = null;
|
|
244
|
+
return e = r.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
|
|
245
|
+
}, p = () => {
|
|
246
|
+
let e = n.location.href;
|
|
247
|
+
for (let t = 0; t < u.length; t += 1) if (e.indexOf(u[t].site) >= 0) return u[t].config;
|
|
248
|
+
}, m = () => {
|
|
249
|
+
if (!t) return;
|
|
250
|
+
let e = t.style;
|
|
251
|
+
e.width = "100%", e.height = "1000px", e.position = "fixed", e.left = "50%", e.transform = "translate(-50%, 0)";
|
|
252
|
+
}, h = () => {
|
|
253
|
+
if (!_) return;
|
|
254
|
+
let e = _.style;
|
|
255
|
+
_.className = "", e.minHeight = "250px", e.marginTop = v.adNodeMarginTop + "px", e.marginBottom = v.adNodeMarginBottom + "px", e.position = "static", e.display = "block", v.zIndex && v.zIndex();
|
|
256
|
+
}, g = () => {
|
|
257
|
+
let e = n.scrollY, r = t.style, i = document.getElementById("siteContent") ? document.getElementById("siteContent").style : {};
|
|
258
|
+
e >= 0 && e <= b ? (r.transform = `translate(-50%, ${-e}px)`, i.transform = "translateY(0)") : e > b && e <= x ? (r.transform = `translate(-50%, ${-b}px)`, i.transform = `translateY(${b - e}px)`) : e > x && (r.transform = `translate(-50%, ${-b}px)`, i.transform = "translateY(-250px)");
|
|
259
|
+
}, _ = f(), v = p();
|
|
260
|
+
if (!v) return () => {};
|
|
261
|
+
let y = null, b = -v.responsiveScroll + e, x = b + 250;
|
|
262
|
+
return d(), () => {
|
|
263
|
+
n.removeEventListener("scroll", g), y &&= (clearTimeout(y), null);
|
|
264
|
+
};
|
|
265
|
+
}, t = (e) => {
|
|
266
|
+
let t = window.frameElement ? window.frameElement : null;
|
|
267
|
+
if (!t) return () => {};
|
|
268
|
+
let n = window.parent;
|
|
269
|
+
if (!n || n === window) return () => {};
|
|
270
|
+
let r = null;
|
|
271
|
+
try {
|
|
272
|
+
r = n.document, n.location.href;
|
|
273
|
+
} catch {
|
|
274
|
+
return () => {};
|
|
275
|
+
}
|
|
276
|
+
let i = document.getElementById("nineMasthead"), a = i ? i.style : {}, o, s = {
|
|
277
|
+
siteBackgroundColor: "#ffffff",
|
|
278
|
+
fireplaceLeftMargin: 0,
|
|
279
|
+
adNodeMarginTop: -24,
|
|
280
|
+
adNodeMarginBottom: 24,
|
|
281
|
+
responsiveScroll: -124,
|
|
282
|
+
xPosHalfpage: 722,
|
|
283
|
+
yPosHalfpage: 72,
|
|
284
|
+
stickyMargin: {
|
|
285
|
+
offset: 160,
|
|
286
|
+
isSticky: !0
|
|
287
|
+
},
|
|
288
|
+
maskOffset: 298,
|
|
289
|
+
zIndex: function() {
|
|
290
|
+
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
291
|
+
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");
|
|
292
|
+
}
|
|
293
|
+
}, c = {
|
|
294
|
+
siteBackgroundColor: "#ffffff",
|
|
295
|
+
fireplaceLeftMargin: 0,
|
|
296
|
+
adNodeMarginTop: -24,
|
|
297
|
+
adNodeMarginBottom: 0,
|
|
298
|
+
responsiveScroll: -124,
|
|
299
|
+
xPosHalfpage: 695,
|
|
300
|
+
yPosHalfpage: 32,
|
|
301
|
+
stickyMargin: {
|
|
302
|
+
offset: 160,
|
|
303
|
+
isSticky: !0
|
|
304
|
+
},
|
|
305
|
+
maskOffset: window.parent.document.querySelector("div[class*=\"video-index__MyContainer\"]") ? 248 : 298,
|
|
306
|
+
zIndex: function() {
|
|
307
|
+
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
308
|
+
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");
|
|
309
|
+
}
|
|
310
|
+
}, l = {
|
|
311
|
+
siteBackgroundColor: "#ffffff",
|
|
312
|
+
fireplaceLeftMargin: 0,
|
|
313
|
+
adNodeMarginTop: -24,
|
|
314
|
+
adNodeMarginBottom: -13,
|
|
315
|
+
responsiveScroll: -120,
|
|
316
|
+
xPosHalfpage: 722,
|
|
317
|
+
yPosHalfpage: 32,
|
|
318
|
+
stickyMargin: {
|
|
319
|
+
offset: 166,
|
|
320
|
+
isSticky: !0
|
|
321
|
+
},
|
|
322
|
+
maskOffset: 304,
|
|
323
|
+
zIndex: function() {
|
|
324
|
+
let e = window.parent.document;
|
|
325
|
+
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\"]")) {
|
|
326
|
+
let t = e.createElement("style");
|
|
327
|
+
t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}, u = {
|
|
331
|
+
siteBackgroundColor: "#ffffff",
|
|
332
|
+
fireplaceLeftMargin: 0,
|
|
333
|
+
adNodeMarginTop: -24,
|
|
334
|
+
adNodeMarginBottom: 0,
|
|
335
|
+
responsiveScroll: -124,
|
|
336
|
+
xPosHalfpage: 720,
|
|
337
|
+
yPosHalfpage: 32,
|
|
338
|
+
stickyMargin: {
|
|
339
|
+
offset: 160,
|
|
340
|
+
isSticky: !0
|
|
341
|
+
},
|
|
342
|
+
maskOffset: 312,
|
|
343
|
+
zIndex: function() {
|
|
344
|
+
let e = window.parent.document, t = e.querySelector("footer").previousElementSibling;
|
|
345
|
+
if (t && t.tagName.toLowerCase() === "div" && (t.style.position = "relative"), e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) {
|
|
346
|
+
let t = e.createElement("style");
|
|
347
|
+
t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}, d = {
|
|
351
|
+
siteBackgroundColor: "#ffffff",
|
|
352
|
+
fireplaceLeftMargin: 0,
|
|
353
|
+
adNodeMarginTop: -25,
|
|
354
|
+
adNodeMarginBottom: 0,
|
|
355
|
+
responsiveScroll: -124,
|
|
356
|
+
xPosHalfpage: 720,
|
|
357
|
+
yPosHalfpage: 32,
|
|
358
|
+
stickyMargin: {
|
|
359
|
+
offset: 175,
|
|
360
|
+
isSticky: !0
|
|
361
|
+
},
|
|
362
|
+
maskOffset: 274,
|
|
363
|
+
zIndex: function() {
|
|
364
|
+
let e = window.parent.document;
|
|
365
|
+
if (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"), e.querySelector("div[id*=\"tablet\"][id*=\"takeover\"]")) {
|
|
366
|
+
let t = e.createElement("style");
|
|
367
|
+
t.innerHTML = "\n div:has(#adspot-tablet-takeover-2-above) {\n position: static;\n }\n ", e.head.appendChild(t);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}, f = {
|
|
371
|
+
siteBackgroundColor: "#ffffff",
|
|
372
|
+
fireplaceLeftMargin: 0,
|
|
373
|
+
adNodeMarginTop: -32,
|
|
374
|
+
adNodeMarginBottom: 8,
|
|
375
|
+
responsiveScroll: -124,
|
|
376
|
+
xPosHalfpage: 720,
|
|
377
|
+
yPosHalfpage: 16,
|
|
378
|
+
stickyMargin: {
|
|
379
|
+
offset: 160,
|
|
380
|
+
isSticky: !0
|
|
381
|
+
},
|
|
382
|
+
maskOffset: window.parent.document.querySelector("div[class*=\"VideoIndexComponent\"]") ? 324 : 292,
|
|
383
|
+
zIndex: function() {
|
|
384
|
+
let e = window.parent.document;
|
|
385
|
+
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);");
|
|
386
|
+
let t = e.querySelector("[class*=\"VideoIndexComponent\"]");
|
|
387
|
+
t && (e.querySelector(".breadcrumbs")?.setAttribute("style", "display:none"), t.style.maxWidth = "1190px", t.style.margin = "auto", t.style.position = "relative");
|
|
388
|
+
}
|
|
389
|
+
}, p = [
|
|
390
|
+
{
|
|
391
|
+
site: "https://www.nine.com.au/sport",
|
|
392
|
+
config: u
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
site: "https://www.nine.com.au/product-reviews",
|
|
396
|
+
config: c
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
site: "https://www.nine.com.au/property",
|
|
400
|
+
config: c
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
site: "https://www.nine.com.au/entertainment",
|
|
404
|
+
config: c
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
site: "https://staging.nine.com.au/sport",
|
|
408
|
+
config: u
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
site: "https://staging.nine.com.au/product-reviews",
|
|
412
|
+
config: c
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
site: "https://staging.nine.com.au/property",
|
|
416
|
+
config: c
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
site: "https://staging.nine.com.au/entertainment",
|
|
420
|
+
config: c
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
site: "https://render-web-nine-staging-v1.ffxblue.com.au",
|
|
424
|
+
config: l
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
site: "https://render-web-nine-production-v1.ffxblue.com.au",
|
|
428
|
+
config: l
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
site: "https://preview.nine.com.au/",
|
|
432
|
+
config: l
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
site: "https://www.nine",
|
|
436
|
+
config: l
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
site: "https://staging.nine",
|
|
440
|
+
config: l
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
site: "https://entertainment",
|
|
444
|
+
config: s
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
site: "https://celebrity",
|
|
448
|
+
config: s
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
site: "https://homes",
|
|
452
|
+
config: s
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
site: "https://travel",
|
|
456
|
+
config: s
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
site: "https://honey",
|
|
460
|
+
config: s
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
site: "https://style",
|
|
464
|
+
config: s
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
site: "https://coach",
|
|
468
|
+
config: s
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
site: "https://kitchen",
|
|
472
|
+
config: s
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
site: "https://finance",
|
|
476
|
+
config: s
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
site: "https://wwos",
|
|
480
|
+
config: d
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
site: "https://staging.wwos",
|
|
484
|
+
config: u
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
site: "https://www.9news",
|
|
488
|
+
config: f
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
site: "https://staging.9news",
|
|
492
|
+
config: f
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
site: "https://www.yourtv",
|
|
496
|
+
config: s
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
site: "https://staging.yourtv",
|
|
500
|
+
config: s
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
site: "https://9now",
|
|
504
|
+
config: c
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
site: "https://creative-preview-an.com",
|
|
508
|
+
config: s
|
|
509
|
+
}
|
|
510
|
+
], m = () => {
|
|
511
|
+
let e = window.document.getElementById("nineContent");
|
|
512
|
+
e && (e.style.backgroundColor = T.siteBackgroundColor), i && (a.setProperty("--masthead-height", "250px"), a.height = "var(--masthead-height)"), y(), v(), g(), b(), n.addEventListener("scroll", C, { passive: !0 }), E = setTimeout(C, 50);
|
|
513
|
+
}, h = () => {
|
|
514
|
+
let e = null;
|
|
515
|
+
return e = r.querySelector("div[id*=\"billboard\"][id*=\"above\"]"), e;
|
|
516
|
+
}, g = () => {
|
|
517
|
+
let e = null;
|
|
518
|
+
if (!window.parent) return e;
|
|
519
|
+
if (e = r.querySelector("div[id*=\"halfpage\"][id*=\"above\"]"), !e) return;
|
|
520
|
+
let t = e;
|
|
521
|
+
for (let e = 0; e < 3; e++) if (t = t.parentNode, t && getComputedStyle(t).position === "sticky") {
|
|
522
|
+
t.setAttribute("style", `top: ${T.stickyMargin.offset}px`);
|
|
523
|
+
break;
|
|
524
|
+
}
|
|
525
|
+
}, _ = () => {
|
|
526
|
+
let e = n.location.href;
|
|
527
|
+
for (let t = 0; t < p.length; t += 1) if (e.indexOf(p[t].site) >= 0) return p[t].config;
|
|
528
|
+
}, v = () => {
|
|
529
|
+
if (!t) return;
|
|
530
|
+
let e = t.style;
|
|
531
|
+
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)";
|
|
532
|
+
}, y = () => {
|
|
533
|
+
if (!w) return;
|
|
534
|
+
let e = w.style;
|
|
535
|
+
w.className = "", e.minHeight = "250px", e.marginTop = T.adNodeMarginTop + "px", e.marginBottom = T.adNodeMarginBottom + "px", e.position = "static", e.display = "block", T.zIndex && T.zIndex();
|
|
536
|
+
}, b = () => {
|
|
537
|
+
o = r.querySelector("div[data-contentunit-id=\"stan\"]")?.parentNode || r.querySelector("div[data-ui-testid=\"header-score-strip\"]")?.parentNode || r.querySelector("div[class*=\"__MyContainer\"]") || r.querySelector("div[class*=\"__ArticleContainer\"]") || r.querySelector("div[class*=\"__VideoIndexComponent\"]") || r.querySelector("div.container.layout") || r.querySelector("main.container.layout"), o && (o.style.willChange = "clip-path", o.style.transition = "none", o.style.webkitBackfaceVisibility = "hidden", o.style.backfaceVisibility = "hidden", o.style.transform = "translate3d(0,0,0)", o.style.backgroundColor = T.siteBackgroundColor, o.style.setProperty("--mask-inset", "0px"), o.style.clipPath = "inset(var(--mask-inset, 0px) 0 0 0)");
|
|
538
|
+
}, x = 0, S = 0, C = () => {
|
|
539
|
+
let e = n.scrollY, r = e > x, i = e > O ? e - T.maskOffset : 0, s = Math.abs(i - S);
|
|
540
|
+
if (o) if (r && i > S) if (s > 100) {
|
|
541
|
+
let e = Math.max(0, i - 100);
|
|
542
|
+
o.style.transition = "none", o.style.setProperty("--mask-inset", `${e}px`), o.offsetHeight, o.style.transition = "clip-path 0.3s ease-out", o.style.setProperty("--mask-inset", `${i}px`);
|
|
543
|
+
} else o.style.transition = "clip-path 0.3s ease-out", o.style.setProperty("--mask-inset", `${i}px`);
|
|
544
|
+
else o.style.transition = "none", o.style.setProperty("--mask-inset", `${i}px`);
|
|
545
|
+
x = e, S = i, e > O ? (t.style.setProperty("--transform-y", `${-D}px`), a.setProperty("--masthead-height", "100px"), window.CollantOn || window.goCollant()) : e > D && e <= O ? (t.style.setProperty("--transform-y", `${-D}px`), a.setProperty("--masthead-height", `${250 + D - e}px`), window.CollantOn && window.goBillboard()) : e >= 0 && e <= D && (t.style.setProperty("--transform-y", `${-e}px`), a.setProperty("--masthead-height", "250px"), window.CollantOn && window.goBillboard());
|
|
546
|
+
}, w = h(), T = _();
|
|
547
|
+
if (!T) return () => {};
|
|
548
|
+
let E = null, D = -T.responsiveScroll + e, O = D + 150;
|
|
549
|
+
return m(), () => {
|
|
550
|
+
n.removeEventListener("scroll", C), E &&= (clearTimeout(E), null);
|
|
551
|
+
};
|
|
552
|
+
}, n = (e, t, n) => {
|
|
553
|
+
let r = window.frameElement ? window.frameElement : null;
|
|
554
|
+
if (!r) return () => {};
|
|
555
|
+
let i = window.parent;
|
|
556
|
+
if (!i || i === window) return () => {};
|
|
557
|
+
let a = null;
|
|
558
|
+
try {
|
|
559
|
+
a = i.document, i.location.href;
|
|
560
|
+
} catch {
|
|
561
|
+
return () => {};
|
|
562
|
+
}
|
|
563
|
+
let o = {
|
|
564
|
+
siteBackgroundColor: "#ffffff",
|
|
565
|
+
logoTop: "44px",
|
|
566
|
+
logoLeft: "50%",
|
|
567
|
+
logoTransform: "translateX(-50%)",
|
|
568
|
+
logoSmallLeft: "250px",
|
|
569
|
+
logoSmallTransform: "translateX(0px)",
|
|
570
|
+
logoSmallFilter: "none",
|
|
571
|
+
zIndex: function() {
|
|
572
|
+
let e = window.parent.document;
|
|
573
|
+
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");
|
|
574
|
+
}
|
|
575
|
+
}, s = {
|
|
576
|
+
siteBackgroundColor: "#ffffff",
|
|
577
|
+
logoTop: "44px",
|
|
578
|
+
logoLeft: "50%",
|
|
579
|
+
logoTransform: "translateX(-50%)",
|
|
580
|
+
logoSmallLeft: "50%",
|
|
581
|
+
logoSmallTransform: "translateX(-50%)",
|
|
582
|
+
logoSmallFilter: "none",
|
|
583
|
+
zIndex: function() {
|
|
584
|
+
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
585
|
+
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*=\"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"), e.querySelector("div[id*=\"sidepanel\"][id*=\"above\"]")?.setAttribute("style", "display:none");
|
|
586
|
+
}
|
|
587
|
+
}, c = {
|
|
588
|
+
siteBackgroundColor: "#ffffff",
|
|
589
|
+
logoTop: "44px",
|
|
590
|
+
logoLeft: "50%",
|
|
591
|
+
logoTransform: "translateX(-50%)",
|
|
592
|
+
logoSmallLeft: "50%",
|
|
593
|
+
logoSmallTransform: "translateX(-50%)",
|
|
594
|
+
logoSmallFilter: "none",
|
|
595
|
+
zIndex: function() {
|
|
596
|
+
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
597
|
+
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("section[class^=\"WatchNow__Container\"]")?.setAttribute("style", "margin-left:calc(50% - 49vw);margin-right:calc(50% - 49vw + 10px);"), e.querySelector("div[class*=\"ArticleContainer\"]")?.setAttribute("style", "max-width:1190px;margin-top:0px"), 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");
|
|
598
|
+
}
|
|
599
|
+
}, l = {
|
|
600
|
+
siteBackgroundColor: "#ffffff",
|
|
601
|
+
logoTop: "44px",
|
|
602
|
+
logoLeft: "50%",
|
|
603
|
+
logoTransform: "translateX(-50%)",
|
|
604
|
+
logoSmallLeft: "50%",
|
|
605
|
+
logoSmallTransform: "translateX(-50%)",
|
|
606
|
+
logoSmallFilter: "none",
|
|
607
|
+
zIndex: function() {
|
|
608
|
+
let e = window.parent.document, t = (e, t) => e.forEach((e) => t.forEach(([t, n]) => e.style[t] = n));
|
|
609
|
+
e.querySelector("section[data-section=\"marketing-banner\"]")?.setAttribute("style", "position:relative"), e.querySelector(".container--ads")?.setAttribute("style", "min-height:0"), e.getElementById("mastheadAnchorToggle")?.setAttribute("style", "display:none"), t(e.querySelectorAll(".advert"), [["position", "relative"]]), t(e.querySelectorAll("iframe"), [["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"), t(e.querySelectorAll("small"), [["position", "relative"]]), e.querySelector("small")?.setAttribute("style", "position:inherit"), 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");
|
|
610
|
+
}
|
|
611
|
+
}, u = {
|
|
612
|
+
siteBackgroundColor: "#ffffff",
|
|
613
|
+
logoTop: "-148px",
|
|
614
|
+
logoLeft: "50%",
|
|
615
|
+
logoTransform: "translateX(-50%)",
|
|
616
|
+
logoSmallLeft: "50%",
|
|
617
|
+
logoSmallTransform: "translateX(-50%)",
|
|
618
|
+
logoSmallFilter: "none",
|
|
619
|
+
zIndex: function() {
|
|
620
|
+
let e = window.parent.document;
|
|
621
|
+
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");
|
|
622
|
+
}
|
|
623
|
+
}, d = {
|
|
624
|
+
siteBackgroundColor: "#ffffff",
|
|
625
|
+
logoTop: "44px",
|
|
626
|
+
logoLeft: "50%",
|
|
627
|
+
logoTransform: "translateX(-50%)",
|
|
628
|
+
logoSmallLeft: "50%",
|
|
629
|
+
logoSmallTransform: "translateX(-50%)",
|
|
630
|
+
logoSmallFilter: "invert(1)",
|
|
631
|
+
zIndex: function() {
|
|
632
|
+
let e = window.parent.document;
|
|
633
|
+
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);"), 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");
|
|
634
|
+
}
|
|
635
|
+
}, f = [
|
|
636
|
+
{
|
|
637
|
+
site: "https://www.nine.com.au/sport",
|
|
638
|
+
config: o
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
site: "https://www.nine.com.au/product-reviews",
|
|
642
|
+
config: c
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
site: "https://www.nine.com.au/property",
|
|
646
|
+
config: c
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
site: "https://www.nine.com.au/entertainment",
|
|
650
|
+
config: c
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
site: "https://staging.nine.com.au/sport",
|
|
654
|
+
config: o
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
site: "https://staging.nine.com.au/product-reviews",
|
|
658
|
+
config: c
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
site: "https://staging.nine.com.au/property",
|
|
662
|
+
config: c
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
site: "https://staging.nine.com.au/entertainment",
|
|
666
|
+
config: c
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
site: "https://render-web-nine-staging-v1.ffxblue.com.au",
|
|
670
|
+
config: l
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
site: "https://render-web-nine-production-v1.ffxblue.com.au",
|
|
674
|
+
config: l
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
site: "https://preview.nine.com.au/",
|
|
678
|
+
config: l
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
site: "https://www.nine",
|
|
682
|
+
config: l
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
site: "https://staging.nine",
|
|
686
|
+
config: l
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
site: "https://entertainment",
|
|
690
|
+
config: s
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
site: "https://celebrity",
|
|
694
|
+
config: s
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
site: "https://homes",
|
|
698
|
+
config: s
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
site: "https://travel",
|
|
702
|
+
config: s
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
site: "https://honey",
|
|
706
|
+
config: s
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
site: "https://style",
|
|
710
|
+
config: s
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
site: "https://coach",
|
|
714
|
+
config: s
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
site: "https://kitchen",
|
|
718
|
+
config: s
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
site: "https://finance",
|
|
722
|
+
config: s
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
site: "https://wwos",
|
|
726
|
+
config: u
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
site: "https://staging.wwos",
|
|
730
|
+
config: u
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
site: "https://www.9news",
|
|
734
|
+
config: d
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
site: "https://staging.9news",
|
|
738
|
+
config: d
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
site: "https://www.yourtv",
|
|
742
|
+
config: s
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
site: "https://staging.yourtv",
|
|
746
|
+
config: s
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
site: "https://9now",
|
|
750
|
+
config: c
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
site: "https://creative-preview-an.com",
|
|
754
|
+
config: s
|
|
755
|
+
}
|
|
756
|
+
], p = () => {
|
|
757
|
+
let e = window.document.getElementById("logo-small");
|
|
758
|
+
e && (e.style.left = C.logoSmallLeft, e.style.transform = C.logoSmallTransform, e.style.filter = C.logoSmallFilter), _(), g(), i.addEventListener("scroll", y), w = setTimeout(y, 50);
|
|
759
|
+
}, m = () => {
|
|
760
|
+
let e = null;
|
|
761
|
+
return e = a.querySelector("div[id*=\"desktop\"][id*=\"takeover\"][id*=\"above\"]"), e;
|
|
762
|
+
}, h = () => {
|
|
763
|
+
let e = i.location.href;
|
|
764
|
+
for (let t = 0; t < f.length; t += 1) if (e.indexOf(f[t].site) >= 0) return f[t].config;
|
|
765
|
+
}, g = () => {
|
|
766
|
+
if (!r) return;
|
|
767
|
+
let e = r.style;
|
|
768
|
+
e.width = "100%", e.height = `${t}px`, e.position = "relative";
|
|
769
|
+
}, _ = () => {
|
|
770
|
+
if (!S) return;
|
|
771
|
+
let e = S.style;
|
|
772
|
+
e.maxHeight = `${t}px`, e.minHeight = `${t}px`, e.marginTop = "0px", e.marginBottom = "0px", e.position = "absolute", e.width = "1900px", e.top = C.logoTop, e.left = C.logoLeft, e.transform = C.logoTransform, e.zIndex = "10000", e.pointerEvents = "none", C.zIndex && C.zIndex();
|
|
773
|
+
}, v = (e) => {
|
|
774
|
+
if (!S) return;
|
|
775
|
+
let r = S.style;
|
|
776
|
+
e === "big" && !window.bigActive ? (r.maxHeight = `${t}px`, r.minHeight = `${t}px`, r.position = "absolute", r.top = C.logoTop, r.zIndex = "10000", window.loadBig()) : e === "small" && !window.smallActive && (r.maxHeight = `${n}px`, r.minHeight = `${n}px`, r.position = "fixed", r.top = "0px", r.zIndex = "100000", window.loadSmall());
|
|
777
|
+
}, y = () => {
|
|
778
|
+
let e = i.scrollY;
|
|
779
|
+
r.style, e >= 0 && e <= T ? v("big") : e > T && (v(e > E ? "small" : "big"), E = e <= 0 ? 0 : e);
|
|
780
|
+
}, b = (e = 4) => {
|
|
781
|
+
x() || e > 1 && setTimeout(() => {
|
|
782
|
+
b(e - 1);
|
|
783
|
+
}, 20);
|
|
784
|
+
}, x = () => {
|
|
785
|
+
let e = a.querySelector("header");
|
|
786
|
+
return window.getComputedStyle(e).top === "0px" ? (v("big"), !0) : (v("small"), !1);
|
|
787
|
+
}, S = m(), C = h();
|
|
788
|
+
if (!C) return () => {};
|
|
789
|
+
let w = null, T = e, E = 0;
|
|
790
|
+
return p(), () => {
|
|
791
|
+
i.removeEventListener("scroll", y), w &&= (clearTimeout(w), null);
|
|
792
|
+
};
|
|
793
|
+
}, r = ((e, t = 50) => `linear(${Array.from({ length: t + 1 }, (n, r) => e(r / t)).map((e) => +e.toFixed(4)).join(", ")})`)((e) => {
|
|
794
|
+
if (e === 0 || e === 1) return e;
|
|
795
|
+
let t = 2 * Math.PI / 3;
|
|
796
|
+
return 2 ** (-10 * e) * Math.sin((e * 10 - .75) * t) + 1;
|
|
797
|
+
}), i = (e = {}) => {
|
|
798
|
+
let t = {
|
|
799
|
+
adScrollHeight: "300vh",
|
|
800
|
+
bandHeight: 24,
|
|
801
|
+
bandBg: "#222",
|
|
802
|
+
bandColor: "#fff",
|
|
803
|
+
bandFontSize: "10px",
|
|
804
|
+
bandFontFamily: "Arial, Helvetica, sans-serif",
|
|
805
|
+
bandLetterSpacing: "1px",
|
|
806
|
+
labelTop: "Advertisement",
|
|
807
|
+
labelBottomResume: "Scroll to continue",
|
|
808
|
+
labelBottomMid: "Keep scrolling",
|
|
809
|
+
labelBottomLate: "Almost there",
|
|
810
|
+
labelBottomNow: "Content now ↓",
|
|
811
|
+
progressBarColor: "rgba(255,255,255,0.35)",
|
|
812
|
+
zIndexTop: 9,
|
|
813
|
+
zIndexBottom: 8,
|
|
814
|
+
bottomBandShowAt: 400,
|
|
815
|
+
bottomBandHideAt: 300,
|
|
816
|
+
snapPx: 50,
|
|
817
|
+
snapOverlap: 2,
|
|
818
|
+
stretchOverlap: 20,
|
|
819
|
+
snapDuration: .9,
|
|
820
|
+
snapEase: r,
|
|
821
|
+
onEnter: null,
|
|
822
|
+
onExit: null,
|
|
823
|
+
onProgress: null,
|
|
824
|
+
thresholds: [],
|
|
825
|
+
...e
|
|
826
|
+
}, n = window.frameElement ? window.frameElement : null;
|
|
827
|
+
if (!n) return () => {};
|
|
828
|
+
let i = window.parent;
|
|
829
|
+
if (!i || i === window) return () => {};
|
|
830
|
+
let a = null;
|
|
831
|
+
try {
|
|
832
|
+
a = i.document, i.location.href;
|
|
833
|
+
} catch {
|
|
834
|
+
return () => {};
|
|
835
|
+
}
|
|
836
|
+
let o = (() => {
|
|
837
|
+
let e = a.querySelector("#adspot-mobile-mobile-3-above");
|
|
838
|
+
if (e) return e;
|
|
839
|
+
let t = n.parentElement;
|
|
840
|
+
for (; t && t !== a.body;) {
|
|
841
|
+
if (t.id && t.id.includes("adspot")) return t;
|
|
842
|
+
t = t.parentElement;
|
|
843
|
+
}
|
|
844
|
+
return n.parentElement;
|
|
845
|
+
})();
|
|
846
|
+
if (!o) return () => {};
|
|
847
|
+
let s = o.getAttribute("style"), c = n.getAttribute("style"), l = [], u = {
|
|
848
|
+
width: "100vw",
|
|
849
|
+
marginLeft: "calc(50% - 50vw)",
|
|
850
|
+
height: t.bandHeight + "px",
|
|
851
|
+
backgroundColor: t.bandBg,
|
|
852
|
+
color: t.bandColor,
|
|
853
|
+
fontSize: t.bandFontSize,
|
|
854
|
+
fontFamily: t.bandFontFamily,
|
|
855
|
+
textTransform: "uppercase",
|
|
856
|
+
letterSpacing: t.bandLetterSpacing,
|
|
857
|
+
display: "flex",
|
|
858
|
+
alignItems: "center",
|
|
859
|
+
justifyContent: "center",
|
|
860
|
+
pointerEvents: "none"
|
|
861
|
+
};
|
|
862
|
+
(() => {
|
|
863
|
+
let e = o.style;
|
|
864
|
+
e.height = t.adScrollHeight, e.maxHeight = t.adScrollHeight, e.position = "relative", o.setAttribute("poweredAC", "0.1.7"), 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";
|
|
865
|
+
let r = o.parentElement;
|
|
866
|
+
for (let e = 0; e < 6 && r && r !== a.body; e++) {
|
|
867
|
+
let t = i.getComputedStyle(r), n = !1;
|
|
868
|
+
(t.overflow === "hidden" || t.overflowY === "hidden") && (l.push({
|
|
869
|
+
el: r,
|
|
870
|
+
prop: "overflow",
|
|
871
|
+
val: r.style.overflow
|
|
872
|
+
}), l.push({
|
|
873
|
+
el: r,
|
|
874
|
+
prop: "overflowY",
|
|
875
|
+
val: r.style.overflowY
|
|
876
|
+
}), r.style.overflow = "visible", r.style.overflowY = "visible", n = !0);
|
|
877
|
+
let a = parseFloat(t.height);
|
|
878
|
+
t.height !== "auto" && !isNaN(a) && a < 600 && (l.push({
|
|
879
|
+
el: r,
|
|
880
|
+
prop: "height",
|
|
881
|
+
val: r.style.height
|
|
882
|
+
}), r.style.height = "auto", n = !0);
|
|
883
|
+
let o = t.maxHeight;
|
|
884
|
+
if (o && o !== "none" && (l.push({
|
|
885
|
+
el: r,
|
|
886
|
+
prop: "maxHeight",
|
|
887
|
+
val: r.style.maxHeight
|
|
888
|
+
}), r.style.maxHeight = "none", n = !0), !n && e > 1) break;
|
|
889
|
+
r = r.parentElement;
|
|
890
|
+
}
|
|
891
|
+
let s = n.style;
|
|
892
|
+
s.position = "fixed", s.top = "0", s.left = "0", s.width = "100vw", s.height = "100vh", s.maxWidth = "100vw", s.margin = "0", s.padding = "0", s.border = "none", s.zIndex = "1";
|
|
893
|
+
let c = a.createElement("div");
|
|
894
|
+
c.id = "interscroller-top-band-wrapper", Object.assign(c.style, {
|
|
895
|
+
position: "sticky",
|
|
896
|
+
bottom: "0",
|
|
897
|
+
width: "100vw",
|
|
898
|
+
marginLeft: "calc(50% - 50vw)",
|
|
899
|
+
zIndex: t.zIndexTop,
|
|
900
|
+
pointerEvents: "none"
|
|
901
|
+
});
|
|
902
|
+
let d = a.createElement("div");
|
|
903
|
+
d.id = "interscroller-top-band", d.textContent = t.labelTop, Object.assign(d.style, u, {
|
|
904
|
+
position: "relative",
|
|
905
|
+
width: "100%",
|
|
906
|
+
marginLeft: "0",
|
|
907
|
+
transformOrigin: "top center"
|
|
908
|
+
}), c.appendChild(d), o.insertAdjacentElement("beforebegin", c);
|
|
909
|
+
let f = a.createElement("div");
|
|
910
|
+
f.id = "interscroller-bottom-band", Object.assign(f.style, u, {
|
|
911
|
+
position: "fixed",
|
|
912
|
+
bottom: "0",
|
|
913
|
+
left: "0",
|
|
914
|
+
zIndex: t.zIndexBottom,
|
|
915
|
+
display: "flex",
|
|
916
|
+
overflow: "hidden",
|
|
917
|
+
transform: "translateY(100%)",
|
|
918
|
+
transition: "none"
|
|
919
|
+
});
|
|
920
|
+
let p = a.createElement("span");
|
|
921
|
+
if (p.id = "interscroller-bottom-label", p.textContent = t.labelBottomResume, p.style.cssText = "position:relative;z-index:1;pointer-events:none;", f.appendChild(p), t.progressBarColor) {
|
|
922
|
+
let e = a.createElement("span");
|
|
923
|
+
e.id = "interscroller-bottom-progress", e.style.cssText = [
|
|
924
|
+
"position:absolute",
|
|
925
|
+
"inset:0",
|
|
926
|
+
"width:0%",
|
|
927
|
+
`background:${t.progressBarColor}`,
|
|
928
|
+
"transition:none",
|
|
929
|
+
"z-index:0",
|
|
930
|
+
"pointer-events:none"
|
|
931
|
+
].join(";"), f.appendChild(e);
|
|
932
|
+
}
|
|
933
|
+
o.after(f);
|
|
934
|
+
})();
|
|
935
|
+
let d = a.querySelector("#interscroller-top-band"), f = a.querySelector("#interscroller-top-band-wrapper"), p = a.querySelector("#interscroller-bottom-band"), m = a.querySelector("#interscroller-bottom-label"), h = a.querySelector("#interscroller-bottom-progress"), g = t.bandHeight, _ = t.snapPx, v = !1, y = !1, b = !1, x = !1, S = (t.thresholds || []).map(() => !1), C = () => {
|
|
936
|
+
if (!p) return;
|
|
937
|
+
let e = o.getBoundingClientRect(), n = i.innerHeight, r = e.top <= n, a = e.bottom <= n - g, s = x ? e.top <= n - t.bottomBandHideAt : e.top <= n - t.bottomBandShowAt, c = o.offsetHeight, l = Math.min(1, Math.max(0, (n - e.top) / (c + n))), u = Math.min(1, Math.max(0, (n - e.top) / (c + g))), f = Math.min(1, Math.max(0, (n - e.top) / c)), C = Math.min(e.bottom, n) - Math.max(e.top - g, 0), w = Math.min(1, Math.max(0, C / n)), T = Math.max(0, Math.round(e.bottom - n));
|
|
938
|
+
!y && r && t.onEnter && t.onEnter(), !b && a && t.onExit && t.onExit(), y = r, b = a, x = s, t.onProgress && t.onProgress({
|
|
939
|
+
scrollProgress: l,
|
|
940
|
+
adExposure: f,
|
|
941
|
+
viewportCoverage: w,
|
|
942
|
+
pxRemaining: T
|
|
943
|
+
}), (t.thresholds || []).forEach((e, t) => {
|
|
944
|
+
let n = S[t], r = l >= e.at;
|
|
945
|
+
!n && r ? (S[t] = !0, e.onEnter && e.onEnter(l)) : n && !r && (S[t] = !1, e.onLeave && e.onLeave(l));
|
|
946
|
+
});
|
|
947
|
+
let E = n;
|
|
948
|
+
if (d && e.top <= E + t.stretchOverlap && !a) {
|
|
949
|
+
let n = E - e.top;
|
|
950
|
+
if (!v && n <= _ - t.snapOverlap) {
|
|
951
|
+
let e = 1 + Math.max(0, n + t.stretchOverlap) / g;
|
|
952
|
+
d.style.transition = "none", d.style.transform = `scaleY(${e})`;
|
|
953
|
+
} else !v && n > _ - t.snapOverlap && (v = !0, d.style.transition = `transform ${t.snapDuration}s ${t.snapEase}`, d.style.transform = "scaleY(1)");
|
|
954
|
+
} else d && e.top > E + t.stretchOverlap && (v = !1, d.style.transition = "none", d.style.transform = "scaleY(1)");
|
|
955
|
+
let D = i.visualViewport ? Math.round(i.innerHeight - (i.visualViewport.offsetTop + i.visualViewport.height)) : 0;
|
|
956
|
+
a ? (p.style.transition = "none", p.style.transform = "none", p.style.position = "sticky", p.style.top = "0", p.style.bottom = "", p.style.left = "", p.style.marginLeft = "calc(50% - 50vw)", p.style.width = "100vw", m && (m.textContent = t.labelBottomNow), h && (h.style.width = "100%")) : s ? (m && (m.textContent = T > 0 ? u < .2 ? t.labelBottomResume : u < .75 ? t.labelBottomMid : t.labelBottomLate : t.labelBottomNow), h && (h.style.width = `${Math.round(u * 100)}%`), p.style.transition = "transform 0.3s ease", p.style.transform = "translateY(0)", p.style.position = "fixed", p.style.bottom = `${D}px`, p.style.top = "", p.style.left = "0", p.style.marginLeft = "0", p.style.width = "100vw") : (p.style.transition = "transform 0.3s ease", p.style.transform = "translateY(100%)", p.style.position = "fixed", p.style.bottom = `${D}px`, p.style.left = "0", p.style.marginLeft = "0", p.style.width = "100vw");
|
|
957
|
+
};
|
|
958
|
+
return C(), i.addEventListener("scroll", C, { passive: !0 }), i.visualViewport?.addEventListener("resize", C, { passive: !0 }), () => {
|
|
959
|
+
i.removeEventListener("scroll", C), i.visualViewport?.removeEventListener("resize", C), f ? f.remove() : d && d.remove(), p && p.remove(), s ? o.setAttribute("style", s) : o.removeAttribute("style"), c ? n.setAttribute("style", c) : n.removeAttribute("style"), l.forEach(({ el: e, prop: t, val: n }) => {
|
|
960
|
+
e.style[t] = n || "";
|
|
961
|
+
});
|
|
962
|
+
};
|
|
963
|
+
}, a = (e = {}) => {
|
|
964
|
+
let t = {
|
|
965
|
+
adaptToWidth: "100%",
|
|
966
|
+
maxWidth: "400px",
|
|
967
|
+
maintainAspectRatio: !0,
|
|
968
|
+
adaptToHeight: !1,
|
|
969
|
+
zIndex: 7,
|
|
970
|
+
onAdapt: null,
|
|
971
|
+
...e
|
|
972
|
+
}, n = window.frameElement ?? null;
|
|
973
|
+
if (!n) return () => {};
|
|
974
|
+
let r = window.parent;
|
|
975
|
+
if (!r || r === window) return () => {};
|
|
976
|
+
let i = null;
|
|
977
|
+
try {
|
|
978
|
+
i = r.document, r.location.href;
|
|
979
|
+
} catch {
|
|
980
|
+
return () => {};
|
|
981
|
+
}
|
|
982
|
+
let a = (() => {
|
|
983
|
+
let e = i.querySelector("#adspot-mobile-mbanner-2-above");
|
|
984
|
+
if (e) return e;
|
|
985
|
+
let t = n.parentElement;
|
|
986
|
+
for (; t && t !== i.body;) {
|
|
987
|
+
if (t.id && t.id.includes("adspot")) return t;
|
|
988
|
+
t = t.parentElement;
|
|
989
|
+
}
|
|
990
|
+
return n.parentElement;
|
|
991
|
+
})();
|
|
992
|
+
if (!a) return () => {};
|
|
993
|
+
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;
|
|
994
|
+
return (() => {
|
|
995
|
+
let e = a.style;
|
|
996
|
+
if (e.position = "relative", e.overflow = "visible", e.boxSizing = "border-box", a.setAttribute("poweredAC", "0.1.7"), c) {
|
|
997
|
+
let e = c.style;
|
|
998
|
+
e.width = "100%", e.height = "100%", e.margin = "0", e.textAlign = "left";
|
|
999
|
+
}
|
|
1000
|
+
let t = n.style;
|
|
1001
|
+
t.display = "block", t.width = "100%", t.height = "100%", t.border = "none", t.margin = "0", t.padding = "0";
|
|
1002
|
+
})(), (() => {
|
|
1003
|
+
let e = a.style;
|
|
1004
|
+
e.zIndex = String(t.zIndex), t.adaptToWidth && (e.width = t.adaptToWidth, e.maxWidth = t.maxWidth || t.adaptToWidth, t.maxWidth && t.adaptToWidth !== "100vw" && !t.adaptToWidth.endsWith("vw") ? (e.marginLeft = "auto", e.marginRight = "auto") : (t.adaptToWidth === "100vw" || t.adaptToWidth.endsWith("vw")) && (e.marginLeft = "calc(50% - 50vw)", e.marginRight = "0")), u && d && d !== "0px" && (u.style.paddingTop = "0"), t.maintainAspectRatio ? r.requestAnimationFrame(() => {
|
|
1005
|
+
let e = a.offsetWidth || p, r = Math.round((m || 50) / p * e);
|
|
1006
|
+
a.style.height = r + "px", c && (c.style.height = r + "px"), n.style.height = r + "px", t.onAdapt && t.onAdapt();
|
|
1007
|
+
}) : (t.adaptToHeight && (e.height = t.adaptToHeight), t.onAdapt && t.onAdapt());
|
|
1008
|
+
})(), () => {
|
|
1009
|
+
f &&= (f.disconnect(), null), o ? a.setAttribute("style", o) : a.removeAttribute("style"), s ? n.setAttribute("style", s) : n.removeAttribute("style"), c && (l ? c.setAttribute("style", l) : c.removeAttribute("style")), u && d && d !== "0px" && (u.style.paddingTop = d);
|
|
1010
|
+
};
|
|
1011
|
+
}, o = (e = {}) => {
|
|
1012
|
+
let t = {
|
|
1013
|
+
billboardHeight: 150,
|
|
1014
|
+
sideStripWidth: 10,
|
|
1015
|
+
zIndex: 0,
|
|
1016
|
+
creativeUrl: null,
|
|
1017
|
+
onAdapt: null,
|
|
1018
|
+
...e
|
|
1019
|
+
}, n = window.frameElement ?? null;
|
|
1020
|
+
if (!n) return () => {};
|
|
1021
|
+
let r = window.parent;
|
|
1022
|
+
if (!r || r === window) return () => {};
|
|
1023
|
+
let i = null;
|
|
1024
|
+
try {
|
|
1025
|
+
i = r.document, r.location.href;
|
|
1026
|
+
} catch {
|
|
1027
|
+
return () => {};
|
|
1028
|
+
}
|
|
1029
|
+
let a = (() => {
|
|
1030
|
+
let e = i.querySelector("#adspot-mobile-mbanner-2-above");
|
|
1031
|
+
if (e) return e;
|
|
1032
|
+
let t = n.parentElement;
|
|
1033
|
+
for (; t && t !== i.body;) {
|
|
1034
|
+
if (t.id && t.id.includes("adspot")) return t;
|
|
1035
|
+
t = t.parentElement;
|
|
1036
|
+
}
|
|
1037
|
+
return n.parentElement;
|
|
1038
|
+
})();
|
|
1039
|
+
if (!a) return () => {};
|
|
1040
|
+
let o = {
|
|
1041
|
+
nine: {
|
|
1042
|
+
siteBackgroundColor: "#ffffff",
|
|
1043
|
+
setup(e, t) {
|
|
1044
|
+
e.querySelector("main")?.style.setProperty("position", "relative");
|
|
1045
|
+
let n = t?.parentElement?.nextElementSibling;
|
|
1046
|
+
n && n.tagName !== "HEADER" && (n.style.paddingTop = "0px");
|
|
1047
|
+
}
|
|
1048
|
+
},
|
|
1049
|
+
wwos: {
|
|
1050
|
+
siteBackgroundColor: "#ffffff",
|
|
1051
|
+
setup(e, t) {
|
|
1052
|
+
e.querySelector("main")?.style.setProperty("position", "relative");
|
|
1053
|
+
let n = t?.parentElement?.nextElementSibling;
|
|
1054
|
+
n && n.tagName !== "HEADER" && (n.style.paddingTop = "0px");
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
nineNews: {
|
|
1058
|
+
siteBackgroundColor: "#ffffff",
|
|
1059
|
+
setup(e) {
|
|
1060
|
+
let t = e.querySelector(".layout");
|
|
1061
|
+
t && (t.style.backgroundColor = "transparent"), e.querySelector(".content")?.style.setProperty("position", "relative");
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
lifestyle: {
|
|
1065
|
+
siteBackgroundColor: "#ffffff",
|
|
1066
|
+
setup(e) {
|
|
1067
|
+
e.querySelector("main")?.style.setProperty("position", "relative");
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
smh: {
|
|
1071
|
+
siteBackgroundColor: "#ffffff",
|
|
1072
|
+
setup(e) {
|
|
1073
|
+
e.querySelector("main")?.style.setProperty("position", "relative");
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
theage: {
|
|
1077
|
+
siteBackgroundColor: "#ffffff",
|
|
1078
|
+
setup(e) {
|
|
1079
|
+
e.querySelector("main")?.style.setProperty("position", "relative");
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}, s = [
|
|
1083
|
+
{
|
|
1084
|
+
site: "https://www.nine.com.au/sport",
|
|
1085
|
+
config: o.wwos
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
site: "https://staging.nine.com.au/sport",
|
|
1089
|
+
config: o.wwos
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
site: "https://www.nine.com.au",
|
|
1093
|
+
config: o.nine
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
site: "https://staging.nine.com.au",
|
|
1097
|
+
config: o.nine
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
site: "https://preview.nine.com.au",
|
|
1101
|
+
config: o.nine
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
site: "https://www.9news",
|
|
1105
|
+
config: o.nineNews
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
site: "https://staging.9news",
|
|
1109
|
+
config: o.nineNews
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
site: "https://honey",
|
|
1113
|
+
config: o.lifestyle
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
site: "https://www.smh",
|
|
1117
|
+
config: o.smh
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
site: "https://www.theage",
|
|
1121
|
+
config: o.theage
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
site: "https://creative-preview-an.com",
|
|
1125
|
+
config: o.nine
|
|
1126
|
+
}
|
|
1127
|
+
], c = (() => {
|
|
1128
|
+
let e = r.location.href;
|
|
1129
|
+
for (let t of s) if (e.indexOf(t.site) >= 0) return t.config;
|
|
1130
|
+
return o.nine;
|
|
1131
|
+
})(), l = n.getAttribute("style"), u = a.getAttribute("style"), d = n.parentElement === a ? null : n.parentElement, f = d ? d.getAttribute("style") : null, p = a.parentElement, m = p ? p.getAttribute("style") : null, h = null, g = null, _ = [], v = () => {
|
|
1132
|
+
let e = n.parentElement;
|
|
1133
|
+
for (; e && e !== i.body && e !== i.documentElement;) {
|
|
1134
|
+
let t = r.getComputedStyle(e);
|
|
1135
|
+
(t.transform && t.transform !== "none" || t.willChange && t.willChange !== "auto" || t.contain && t.contain !== "none" || t.filter && t.filter !== "none" || t.perspective && t.perspective !== "none") && (_.push({
|
|
1136
|
+
el: e,
|
|
1137
|
+
orig: e.getAttribute("style")
|
|
1138
|
+
}), e.style.transform = "none", e.style.willChange = "auto", e.style.contain = "none", e.style.filter = "none", e.style.perspective = "none"), t.overflow !== "visible" && (_.find((t) => t.el === e) || _.push({
|
|
1139
|
+
el: e,
|
|
1140
|
+
orig: e.getAttribute("style")
|
|
1141
|
+
}), e.style.overflow = "visible"), e = e.parentElement;
|
|
1142
|
+
}
|
|
1143
|
+
let o = n.style;
|
|
1144
|
+
if (o.position = "fixed", o.top = "0", o.left = "0", o.width = "100vw", o.height = "100dvh", o.zIndex = String(t.zIndex), o.border = "none", o.margin = "0", o.padding = "0", o.display = "block", a.setAttribute("poweredAC", "0.1.7"), d) {
|
|
1145
|
+
let e = d.style;
|
|
1146
|
+
e.width = "100%", e.height = "0", e.overflow = "visible", e.position = "static", e.margin = "0";
|
|
1147
|
+
}
|
|
1148
|
+
let s = a.style;
|
|
1149
|
+
s.height = t.billboardHeight + "px", s.minHeight = t.billboardHeight + "px", s.background = "transparent", s.overflow = "visible", s.position = "relative", s.width = "100%", s.padding = "0", s.margin = "0", p && (p.style.overflow = "visible", p.style.position = "relative", p.style.backgroundColor = "transparent", p.style.height = t.billboardHeight + "px", p.style.minHeight = t.billboardHeight + "px", p.style.maxHeight = t.billboardHeight + "px", p.style.padding = "0", p.style.margin = "0", p.setAttribute("data-mf-slot", ""));
|
|
1150
|
+
let l = `max(${t.sideStripWidth}px, env(safe-area-inset-left))`, u = `max(${t.sideStripWidth}px, env(safe-area-inset-right))`;
|
|
1151
|
+
h = i.createElement("style"), h.id = "mobilefireplace-pac", h.textContent = `
|
|
907
1152
|
/* Mobile Fireplace — powered-ad-config */
|
|
908
1153
|
html, body {
|
|
909
1154
|
background-color: transparent !important;
|
|
@@ -921,9 +1166,9 @@ const V = (x) => {
|
|
|
921
1166
|
body > * > * {
|
|
922
1167
|
position: relative;
|
|
923
1168
|
z-index: 1;
|
|
924
|
-
background-color: ${
|
|
925
|
-
margin-left: ${
|
|
926
|
-
margin-right: ${
|
|
1169
|
+
background-color: ${c.siteBackgroundColor};
|
|
1170
|
+
margin-left: ${l} !important;
|
|
1171
|
+
margin-right: ${u} !important;
|
|
927
1172
|
}
|
|
928
1173
|
/* Header, nav and network nav stay full-width — no side margin, keep own background */
|
|
929
1174
|
body > * > header,
|
|
@@ -955,62 +1200,50 @@ const V = (x) => {
|
|
|
955
1200
|
margin: 0 !important;
|
|
956
1201
|
padding: 0 !important;
|
|
957
1202
|
}
|
|
958
|
-
`,
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
g.length = 0, S ? r.setAttribute("style", S) : r.removeAttribute("style"), M && (y ? M.setAttribute("style", y) : M.removeAttribute("style")), b && (b.removeAttribute("data-mf-slot"), P ? b.setAttribute("style", P) : b.removeAttribute("style"));
|
|
1002
|
-
};
|
|
1003
|
-
};
|
|
1004
|
-
let _ = () => {
|
|
1005
|
-
};
|
|
1006
|
-
function Z({ adFormat: x = "", stickyOffset: n = 0, logoPosX: p = 0, logoHeight: l = 0, logoSmallHeight: a = 0, ...C } = {}) {
|
|
1007
|
-
typeof _ == "function" && _();
|
|
1008
|
-
let r = () => {
|
|
1009
|
-
};
|
|
1010
|
-
return x === "fireplace" ? r = V(n) : x === "fireplace-collant" ? r = Y(n) : x === "logomorph" ? r = U(p, l, a) : x === "interscroller" ? r = K(C) : x === "liquidframe" ? r = J(C) : x === "mobilefireplace" ? r = Q(C) : console.warn("[powered-ad-config] Unknown ad format:", x), _ = typeof r == "function" ? r : () => {
|
|
1011
|
-
}, _;
|
|
1203
|
+
`, i.head.appendChild(h), c.setup && c.setup(i, a);
|
|
1204
|
+
}, y = null, b = () => {
|
|
1205
|
+
let e = r.innerWidth, n = r.innerHeight;
|
|
1206
|
+
if (e > n) {
|
|
1207
|
+
let r = n / e, i = Math.round(t.billboardHeight * r);
|
|
1208
|
+
a.style.height = i + "px", a.style.minHeight = i + "px", g && (g.style.height = i + "px");
|
|
1209
|
+
} else a.style.height = t.billboardHeight + "px", a.style.minHeight = t.billboardHeight + "px", g && (g.style.height = t.billboardHeight + "px");
|
|
1210
|
+
};
|
|
1211
|
+
v();
|
|
1212
|
+
let x = t.creativeUrl || "";
|
|
1213
|
+
if (x && x !== "about:blank") try {
|
|
1214
|
+
let e = new URL(x);
|
|
1215
|
+
e.searchParams.set("mfRole", "billboard"), g = i.createElement("iframe"), g.src = e.href, g.setAttribute("data-mf-billboard-iframe", ""), g.setAttribute("scrolling", "no"), g.setAttribute("frameborder", "0");
|
|
1216
|
+
let n = g.style;
|
|
1217
|
+
n.position = "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 = "1", a.appendChild(g);
|
|
1218
|
+
} catch (e) {
|
|
1219
|
+
console.warn("[mobilefireplace] Could not create billboard iframe:", e);
|
|
1220
|
+
}
|
|
1221
|
+
return r.__mfBridge = {
|
|
1222
|
+
adapted: !1,
|
|
1223
|
+
wallpaperWindow: n.contentWindow,
|
|
1224
|
+
billboardIframe: g,
|
|
1225
|
+
billboardWindow: null
|
|
1226
|
+
}, g && g.addEventListener("load", () => {
|
|
1227
|
+
try {
|
|
1228
|
+
r.__mfBridge.billboardWindow = g.contentWindow;
|
|
1229
|
+
} catch {}
|
|
1230
|
+
}), y = b, r.addEventListener("resize", y), b(), t.onAdapt && r.requestAnimationFrame(() => {
|
|
1231
|
+
r.__mfBridge.adapted = !0, t.onAdapt();
|
|
1232
|
+
}), () => {
|
|
1233
|
+
y &&= (r.removeEventListener("resize", y), null), h && h.parentNode && (h.parentNode.removeChild(h), h = null), g && g.parentNode && (g.parentNode.removeChild(g), g = null);
|
|
1234
|
+
try {
|
|
1235
|
+
delete r.__mfBridge;
|
|
1236
|
+
} catch {}
|
|
1237
|
+
l ? n.setAttribute("style", l) : n.removeAttribute("style");
|
|
1238
|
+
for (let { el: e, orig: t } of _) t ? e.setAttribute("style", t) : e.removeAttribute("style");
|
|
1239
|
+
_.length = 0, u ? a.setAttribute("style", u) : a.removeAttribute("style"), d && (f ? d.setAttribute("style", f) : d.removeAttribute("style")), p && (p.removeAttribute("data-mf-slot"), m ? p.setAttribute("style", m) : p.removeAttribute("style"));
|
|
1240
|
+
};
|
|
1241
|
+
}, s = () => {};
|
|
1242
|
+
function c({ adFormat: r = "", stickyOffset: c = 0, logoPosX: l = 0, logoHeight: u = 0, logoSmallHeight: d = 0, ...f } = {}) {
|
|
1243
|
+
typeof s == "function" && s();
|
|
1244
|
+
let p = () => {};
|
|
1245
|
+
return r === "fireplace" ? p = e(c) : r === "fireplace-collant" ? p = t(c) : r === "logomorph" ? p = n(l, u, d) : r === "interscroller" ? p = i(f) : r === "liquidframe" ? p = a(f) : r === "mobilefireplace" ? p = o(f) : console.warn("[powered-ad-config] Unknown ad format:", r), s = typeof p == "function" ? p : () => {}, s;
|
|
1012
1246
|
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
};
|
|
1247
|
+
c.version = "0.1.7";
|
|
1248
|
+
//#endregion
|
|
1249
|
+
export { c as default };
|