PageSourceSearch

https://www.metroradio.com.hk/superhome/2022/js/index.js?20240223

js metroradio.com.hk collected 2026-09-24 09:14:05 UTC 49,412 bytes, 1,127 lines download raw bytes

1! function(e) {
2    var i = {};
3
4    function t(o) {
5        if (i[o]) return i[o].exports;
6        var n = i[o] = {
7            i: o,
8            l: !1,
9            exports: {}
10        };
11        return e[o].call(n.exports, n, n.exports, t), n.l = !0, n.exports
12    }
13    t.m = e, t.c = i, t.d = function(e, i, o) {
14        t.o(e, i) || Object.defineProperty(e, i, {
15            enumerable: !0,
16            get: o
17        })
18    }, t.r = function(e) {
19        "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
20            value: "Module"
21        }), Object.defineProperty(e, "__esModule", {
22            value: !0
23        })
24    }, t.t = function(e, i) {
25        if (1 & i && (e = t(e)), 8 & i) return e;
26        if (4 & i && "object" == typeof e && e && e.__esModule) return e;
27        var o = Object.create(null);
28        if (t.r(o), Object.defineProperty(o, "default", {
29                enumerable: !0,
30                value: e
31            }), 2 & i && "string" != typeof e)
32            for (var n in e) t.d(o, n, function(i) {
33                return e[i]
34            }.bind(null, n));
35        return o
36    }, t.n = function(e) {
37        var i = e && e.__esModule ? function() {
38            return e.default
39        } : function() {
40            return e
41        };
42        return t.d(i, "a", i), i
43    }, t.o = function(e, i) {
44        return Object.prototype.hasOwnProperty.call(e, i)
45    }, t.p = "", t(t.s = 4)
46}([function(e, i, t) {
47    var o = t(1),
48        n = t(2);
49    "string" == typeof(n = n.__esModule ? n.default : n) && (n = [
50        [e.i, n, ""]
51    ]);
52    var a = {
53        insert: "head",
54        singleton: !1
55    };
56    o(n, a);
57    e.exports = n.locals || {}
58}, function(e, i, t) {
59    "use strict";
60    var o, n = function() {
61            return void 0 === o && (o = Boolean(window && document && document.all && !window.atob)), o
62        },
63        a = function() {
64            var e = {};
65            return function(i) {
66                if (void 0 === e[i]) {
67                    var t = document.querySelector(i);
68                    if (window.HTMLIFrameElement && t instanceof window.HTMLIFrameElement) try {
69                        t = t.contentDocument.head
70                    } catch (e) {
71                        t = null
72                    }
73                    e[i] = t
74                }
75                return e[i]
76            }
77        }(),
78        r = [];
79
80    function d(e) {
81        for (var i = -1, t = 0; t < r.length; t++)
82            if (r[t].identifier === e) {
83                i = t;
84                break
85            } return i
86    }
87
88    function l(e, i) {
89        for (var t = {}, o = [], n = 0; n < e.length; n++) {
90            var a = e[n],
91                l = i.base ? a[0] + i.base : a[0],
92                p = t[l] || 0,
93                s = "".concat(l, " ").concat(p);
94            t[l] = p + 1;
95            var c = d(s),
96                _ = {
97                    css: a[1],
98                    media: a[2],
99                    sourceMap: a[3]
100                }; - 1 !== c ? (r[c].references++, r[c].updater(_)) : r.push({
101                identifier: s,
102                updater: h(_, i),
103                references: 1
104            }), o.push(s)
105        }
106        return o
107    }
108
109    function p(e) {
110        var i = document.createElement("style"),
111            o = e.attributes || {};
112        if (void 0 === o.nonce) {
113            var n = t.nc;
114            n && (o.nonce = n)
115        }
116        if (Object.keys(o).forEach((function(e) {
117                i.setAttribute(e, o[e])
118            })), "function" == typeof e.insert) e.insert(i);
119        else {
120            var r = a(e.insert || "head");
121            if (!r) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
122            r.appendChild(i)
123        }
124        return i
125    }
126    var s, c = (s = [], function(e, i) {
127        return s[e] = i, s.filter(Boolean).join("\n")
128    });
129
130    function _(e, i, t, o) {
131        var n = t ? "" : o.media ? "@media ".concat(o.media, " {").concat(o.css, "}") : o.css;
132        if (e.styleSheet) e.styleSheet.cssText = c(i, n);
133        else {
134            var a = document.createTextNode(n),
135                r = e.childNodes;
136            r[i] && e.removeChild(r[i]), r.length ? e.insertBefore(a, r[i]) : e.appendChild(a)
137        }
138    }
139
140    function g(e, i, t) {
141        var o = t.css,
142            n = t.media,
143            a = t.sourceMap;
144        if (n ? e.setAttribute("media", n) : e.removeAttribute("media"), a && "undefined" != typeof btoa && (o += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a)))), " */")), e.styleSheet) e.styleSheet.cssText = o;
145        else {
146            for (; e.firstChild;) e.removeChild(e.firstChild);
147            e.appendChild(document.createTextNode(o))
148        }
149    }
150    var m = null,
151        b = 0;
152
153    function h(e, i) {
154        var t, o, n;
155        if (i.singleton) {
156            var a = b++;
157            t = m || (m = p(i)), o = _.bind(null, t, a, !1), n = _.bind(null, t, a, !0)
158        } else t = p(i), o = g.bind(null, t, i), n = function() {
159            ! function(e) {
160                if (null === e.parentNode) return !1;
161                e.parentNode.removeChild(e)
162            }(t)
163        };
164        return o(e),
165            function(i) {
166                if (i) {
167                    if (i.css === e.css && i.media === e.media && i.sourceMap === e.sourceMap) return;
168                    o(e = i)
169                } else n()
170            }
171    }
172    e.exports = function(e, i) {
173        (i = i || {}).singleton || "boolean" == typeof i.singleton || (i.singleton = n());
174        var t = l(e = e || [], i);
175        return function(e) {
176            if (e = e || [], "[object Array]" === Object.prototype.toString.call(e)) {
177                for (var o = 0; o < t.length; o++) {
178                    var n = d(t[o]);
179                    r[n].references--
180                }
181                for (var a = l(e, i), p = 0; p < t.length; p++) {
182                    var s = d(t[p]);
183                    0 === r[s].references && (r[s].updater(), r.splice(s, 1))
184                }
185                t = a
186            }
187        }
188    }
189}, function(e, i, t) {
190    (i = t(3)(!1)).push([e.i, '', ""]), e.exports = i
191}, function(e, i, t) {
192    "use strict";
193    e.exports = function(e) {
194        var i = [];
195        return i.toString = function() {
196            return this.map((function(i) {
197                var t = function(e, i) {
198                    var t = e[1] || "",
199                        o = e[3];
200                    if (!o) return t;
201                    if (i && "function" == typeof btoa) {
202                        var n = (r = o, d = btoa(unescape(encodeURIComponent(JSON.stringify(r)))), l = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(d), "/*# ".concat(l, " */")),
203                            a = o.sources.map((function(e) {
204                                return "/*# sourceURL=".concat(o.sourceRoot || "").concat(e, " */")
205                            }));
206                        return [t].concat(a).concat([n]).join("\n")
207                    }
208                    var r, d, l;
209                    return [t].join("\n")
210                }(i, e);
211                return i[2] ? "@media ".concat(i[2], " {").concat(t, "}") : t
212            })).join("")
213        }, i.i = function(e, t, o) {
214            "string" == typeof e && (e = [
215                [null, e, ""]
216            ]);
217            var n = {};
218            if (o)
219                for (var a = 0; a < this.length; a++) {
220                    var r = this[a][0];
221                    null != r && (n[r] = !0)
222                }
223            for (var d = 0; d < e.length; d++) {
224                var l = [].concat(e[d]);
225                o && n[l[0]] || (t && (l[2] ? l[2] = "".concat(t, " and ").concat(l[2]) : l[2] = t), i.push(l))
226            }
227        }, i
228    }
229}, function(e, i, t) {
230    "use strict";
231    t.r(i);
232    t(0), t(5), t(6)
233}, function(e, i) {
234    function t() {
235        setTimeout((function() {
236            $(".superhome-banner").length && $(".superhome-banner").each((function() {
237                var e = $(this),
238                    i = $(this).find(".img-slider .swiper-container .swiper-slide").outerHeight(),
239                    t = $(this).find(".thumbnail-slider .swiper-container");
240                e.css({
241                    height: i - 5
242                }), t.css({
243                    height: i - 3
244                })
245            }))
246        }), 100)
247    }
248    $((function() {
249        t(), $(".superhome-banner").length && $(".superhome-banner").each((function() {
250            var e = $(this),
251                i = e.find(".thumbnail-slider .swiper-container"),
252                t = new Swiper(i, {
253                    direction: "vertical",
254                    slidesPerView: 4,
255                    spaceBetween: 0,
256                    loop: !0,
257                    simulateTouch: !0,
258                    observer: !0,
259                    observeParents: !0,
260                    observeSlideChildren: !0,
261                    on: {
262                        resize: function() {
263                            var e = setInterval((function() {
264                                t.update()
265                            }), 250);
266                            setTimeout((function() {
267                                clearInterval(e)
268                            }), 1e3)
269                        }
270                    }
271                }),
272                o = e.find(".img-slider"),
273                n = new Swiper(o.find(".swiper-container"), {
274                    loop: !0,
275                    slidesPerView: 1,
276                    spaceBetween: 0,
277                    grabCursor: !0,
278                    simulateTouch: !0,
279                    effect: "fade",
280                    observer: !0,
281                    observeParents: !0,
282                    observeSlideChildren: !0,
283                    autoplay: {
284                        delay: 6e3,
285                        disableOnInteraction: !1
286                    },
287                    pagination: {
288                        el: o.find(".swiper-pagination"),
289                        clickable: !0
290                    },
291                    navigation: {
292                        nextEl: o.find(".swiper-button-next"),
293                        prevEl: o.find(".swiper-button-prev")
294                    },
295                    on: {
296                        init: function() {
297                            var rndIndex = Math.floor(Math.random() * 6) + 1;
298                            this.slideToLoop(rndIndex);
299
300                            e.find(".thumbnail-slide").on("click", (function() {
301                                var e = parseInt($(this).attr("data-index"));
302                                n.slideToLoop(e)
303                            }))
304                        },
305                        slideChange: function() {
306                            var e = this.realIndex;
307                            t.slideToLoop(e + 1)
308                        },
309                        resize: function() {
310                            e.find(".thumbnail-slide").off("click"), e.find(".thumbnail-slide").on("click", (function() {
311                                var e = parseInt($(this).attr("data-index"));
312                                n.slideToLoop(e)
313                            }));
314                            var i = setInterval((function() {
315                                n.update()
316                            }), 250);
317                            setTimeout((function() {
318                                clearInterval(i)
319                            }), 1e3)
320                        }
321                    }
322                })
323        }))
324    })), $(window).on("resize", (function() {
325        t()
326    }))
327}, function(e, i) {
328    function t() {
329        $(".expandable").length && $(".expandable").each((function() {
330            var e = $(this);
331            if (!e.hasClass("expanded")) {
332                var i = 85;
333                window.outerWidth < 550 ? i = 135 : window.outerWidth < 992 && (i = 115), e.find(".expandable__article").shave(i, {
334                    classname: "shaved",
335                    spaces: !1,
336                    character: "..."
337                }), e.find(".expandable__btn").on("click", (function() {
338                    e.addClass("expanded")
339                }))
340            }
341        }))
342    }
343
344    function o() {
345        if ($("#sticky-player").length) {
346            $(".three-col-banner").css({
347                overflow: "visible"
348            });
349            var e = $(window).scrollTop(),
350                i = $("#sticky-player").offset().top - 100,
351                t = $("#sticky-player .live-card__player__wrapper").outerHeight();
352            $("#sticky-player").css({
353                "min-height": t
354            }), $("#sticky-player").hasClass("closed") ? $("#sticky-player").removeClass("stick") : e > i ? $("#sticky-player").addClass("stick") : $("#sticky-player").removeClass("stick"), $("#sticky-player .btn-close-player").on("click", (function() {
355                $("#sticky-player").removeClass("stick"), $("#sticky-player").addClass("closed")
356            }))
357        }
358        if ($("#sticky-video-player").length) {
359            e = $(window).scrollTop(), i = $("#sticky-video-player").offset().top;
360            var o = $("#sticky-video-player").outerHeight();
361            $("#sticky-video-player").hasClass("closed") ? $("#sticky-video-player").removeClass("stick") : e > i + o ? $("#sticky-video-player").addClass("stick") : $("#sticky-video-player").removeClass("stick"), $("#sticky-video-player .btn-close-player").on("click", (function() {
362                $("#sticky-video-player").removeClass("stick"), $("#sticky-video-player").addClass("closed")
363            }))
364        }
365    }
366
367    function n() {
368        if ($("#video-player").length) {
369            var e = 9 * $("#video-player").outerWidth() / 16;
370            e > 623 && (e = 623), $("#video-player, #sticky-video-player").css({
371                height: e
372            }), window.outerWidth < 1215 ? $("#video-player").parents(".three-col-banner").find(".vertical-slider .swiper-container").css({
373                height: "auto"
374            }) : $("#video-player").parents(".three-col-banner").find(".vertical-slider .swiper-container").css({
375                height: e - $(".vertical-slider__title").outerHeight()
376            })
377        }
378    }
379
380    function a() {
381        $(".section-indicator").length && $(".section-indicator__item").on("click", (function() {
382			$(this).siblings().removeClass("active").end().addClass("active");
383            var e = "#" + $(this).attr("data-section");
384//			console.debug({ section: $(e).get(0), scrollto: $(e).offset().top - $(".header").outerHeight()});
385$("html, body").animate({
386                scrollTop: $(e).offset().top - $(".header").outerHeight()
387            }, 300);
388        }))
389    }
390
391    function r() {
392        if ($(".section-indicator").length) {
393			let w = $(window).scrollTop();
394			let si = $(".section-indicator");
395			let st = si.next(".section").offset().top;
396			$("html").get(0).dataset.y = `Scroll:${w.toFixed(2)} 1st:${st.toFixed(2)}`;
397
398//			let fy = ($(window).height() - si.outerHeight()) / 2 + w;
399			let fy = w + $(".header").outerHeight()
400			fy = Math.max(fy, st);
401			si.offset({ top: fy });
402			si.css({ opacity: 1 });
403			fy = si.offset().top;
404			si.get(0).dataset.y = `top:${fy.toFixed(2)}`;
405
406			let sa = $(".section-indicator .section-indicator__item")
407				.map((i, v) => {
408					let id = $(v).data("section");
409					let section = $("#" + id);
410
411					let top = section?.offset()?.top;
412					return { i, ind: v, id, section: section.get(0), top: top, bottom: top + section.outerHeight() };
413				})
414				.get();
415
416            let {i, ind, id, section, top}
416 = sa.reduce((pv, cv) => {
417				return fy >= cv.top && fy < cv.bottom ? cv : pv;
418			}, {});
419
420			si.get(0).dataset.y += ` target:${section?.id} indicator:${ind?.dataset.section}`;
421            c = $(ind);
422			$(".section-indicator .section-indicator__item").removeClass("active");
423			c.addClass("active");
424        }
425    }
426
427    function d(e) {
428        var i = e.offset().top - $(".header").outerHeight() + $(".schedule__menu__wrapper").outerHeight() - 20;
429        window.outerWidth < 768 && (i = e.offset().top - $(".header").outerHeight() - $(".schedule__menu__wrapper").outerHeight() + 60), $("html, body").animate({
430            scrollTop: i
431        }, 800)
432    }
433    $((function() {
434        $("html").fadeIn(300), r(), a(), t(), $(".auto-width-slider").length && $(".auto-width-slider").each((function() {
435                var e = $(this).find(".swiper-container");
436                var totalSlide = e.find(".swiper-slide").length;
437                $(this).find(".swiper-slide"), new Swiper(e, {
438                    loop: !1,
439                    spaceBetween: 0,
440                    slidesPerView: "auto",
441                    watchSlidesVisibility: !0,
442                    observer: !0,
443                    observeParents: !0,
444                    observeSlideChildren: !0,
445                    grabCursor: !0,
446                    simulateTouch: !0,
447                    pagination: {
448                        el: e.find(".swiper-pagination"),
449                        clickable: !0
450                    },
451                    navigation: {
452                        nextEl: $(this).find(".swiper-button-next"),
453                        prevEl: $(this).find(".swiper-button-prev")
454                    },
455                    on: {
456                        init: function() {
457                            var rndIndex = Math.floor(Math.random() * totalSlide) + 1;
458                            this.slideTo(rndIndex);
459                        }
460                    }
461                })
462            })), 
463            $(".link-card-slider").length && $(".link-card-slider").each((function() {
464                var e = $(this).find(".swiper-container");
465                new Swiper(e, {
466                    loop: !0,
467                    slidesPerView: 1.3,
468                    spaceBetween: 15,
469                    observer: !0,
470                    observeParents: !0,
471                    observeSlideChildren: !0,
472                    grabCursor: !0,
473                    simulateTouch: !0,
474                    keyboard: {
475                        enabled: !0,
476                        onlyInViewport: !0
477                    },
478                    navigation: {
479                        nextEl: $(this).find(".swiper-button-next"),
480                        prevEl: $(this).find(".swiper-button-prev")
481                    },
482                    breakpoints: {
483                        550: {
484                            slidesPerView: 2.3,
485                            spaceBetween: 15
486                        },
487                        768: {
488                            slidesPerView: 3.5,
489                            spaceBetween: 10
490                        }
491                    }
492                })
493            })), $(".full-slider").length && $(".full-slider").each((function() {
494                var e = $(this).find(".swiper-container");
495                $(this).hasClass("full-slider--large") ? new Swiper(e, {
496                    loop: !0,
497                    slidesPerView: 1,
498                    slidesPerGroup: 1,
499                    spaceBetween: 15,
500                    observer: !0,
501                    observeParents: !0,
502                    observeSlideChildren: !0,
503                    grabCursor: !0,
504                    simulateTouch: !0,
505                    pagination: {
506                        el: e.find(".swiper-pagination"),
507                        clickable: !0
508                    },
509                    keyboard: {
510                        enabled: !0,
511                        onlyInViewport: !0
512                    },
513                    breakpoints: {
514                        550: {
515                            slidesPerView: 2,
516                            slidesPerGroup: 2
517                        },
518                        768: {
519                            slidesPerView: 2,
520                            slidesPerGroup: 2
521                        },
522                        992: {
523                            slidesPerView: 3,
524                            slidesPerGroup: 3
525                        }
526                    }
527                }) : new Swiper(e, {
528                    loop: !0,
529                    slidesPerView: 1.15,
530                    slidesPerGroup: 1,
531                    spaceBetween: 15,
532                    observer: !0,
533                    observeParents: !0,
534                    observeSlideChildren: !0,
535                    grabCursor: !0,
536                    simulateTouch: !0,
537                    pagination: {
538                        el: e.find(".swiper-pagination"),
539                        clickable: !0
540                    },
541                    keyboard: {
542                        enabled: !0,
543                        onlyInViewport: !0
544                    },
545                    breakpoints: {
546                        550: {
547                            slidesPerView: 2,
548                            slidesPerGroup: 2
549                        },
550                        768: {
551                            slidesPerView: 3,
552                            slidesPerGroup: 3
553                        },
554                        992: {
555                            slidesPerView: 4,
556                            slidesPerGroup: 4
557                        }
558                    }
559                })
560            })), $(".metro-plus").length && $(".metro-plus").each((function() {
561                var e = $(this),
562                    i = e.attr("data-url");
563                $.ajax({
564                    type: "GET",
565                    url: i,
566                    success: function(i) {
567                        ! function(e, i) {
568                            for (var t = "", o = parseInt(e.attr("data-display-item-count")), n = 0; n < o; n++) t = t + '<div class="swiper-slide"> <a href="' + i[n].link + '" class="card" target="_blank"> <span class="card__thumbnail"> <img src="' + (i[n].yoast_head_json?i[n].yoast_head_json.og_image[0].url:((i[n].uagb_featured_image_src)?i[n].uagb_featured_image_src.medium_large[0]:i[n].jetpack_featured_media_url)) + '" alt=""> </span> <span class="card__content"> <span class="card__title">' + i[n].title.rendered + '</span> </span> <span class="card__date">' + (a = i[n].date, (a = new Date(a)).getDate() + "/" + (a.getMonth() + 1) + "/" + a.getFullYear() + "</span> </a></div>");
569                            var a;
570                            e.find(".swiper-wrapper").append(t),
571                                function(e) {
572                                    var i = e.find(".swiper-container");
573                                    e.hasClass("full-width-slider") ? new Swiper(i, {
574                                        loop: false,
575                                        slidesPerView: 1.15,
576                                        slidesPerGroup: 1,
577                                        spaceBetween: 15,
578                                        observer: !0,
579                                        observeParents: !0,
580                                        observeSlideChildren: !0,
581                                        grabCursor: !0,
582                                        simulateTouch: !0,
583                                        preloadImages: !1,
584                                        lazy: {
585                                            loadPrevNext: !0,
586                                            loadOnTransitionStart: !0
587                                        },
588                                        pagination: {
589                                            el: i.find(".swiper-pagination"),
590                                            clickable: !0
591                                        },
592                                        keyboard: {
593                                            enabled: !0,
594                                            onlyInViewport: !0
595                                        },
596                                        breakpoints: {
597                                            550: {
598                                                slidesPerView: 2.2,
599                                                slidesPerGroup: 2
600                                            },
601                                            768: {
602                                                slidesPerView: 3,
603                                                slidesPerGroup: 3
604                                            },
605                                            992: {
606                                                slidesPerView: 4,
607                                                slidesPerGroup: 4
608                                            }
609                                        }
610                                    }) : new Swiper(i, {
611                                        loop: false,
612                                        slidesPerView: 1.15,
613                                        slidesPerGroup: 1,
614                                        spaceBetween: 15,
615                                        observer: !0,
616                                        observeParents: !0,
617                                        observeSlideChildren: !0,
618                                        grabCursor: !0,
619                                        simulateTouch: !0,
620                                        preloadImages: !1,
621                                        lazy: {
622                                            loadPrevNext: !0,
623                                            loadOnTransitionStart: !0
624                                        },
625                                        pagination: {
626                                            el: i.find(".swiper-pagination"),
627                                            clickable: !0
628                                        },
629                                        keyboard: {
630                                            enabled: !0,
631                                            onlyInViewport: !0
632                                        },
633                                        breakpoints: {
634                                            550: {
635                                                slidesPerView: 2,
636                                                slidesPerGroup: 2
637                                            },
638                                            768: {
639                                                slidesPerView: 3,
640                                                slidesPerGroup: 3
641                                            },
642                                            992: {
643                                                slidesPerView: 2,
644                                                slidesPerGroup: 2
645                                            }
646                                        }
647                                    })
648                                }(e)
649                        }(e, i)
650                    }
651                })
652            })), $(".btn-menu").on("click", (function() {
653                $(".mobile-menu").toggleClass("active"), $(".mask").fadeToggle(300)
654            })), $(".mask").on("click", (function() {
655                $(".mobile-menu").removeClass("active"), $(".mask").fadeOut(260)
656            })), $(".header__mb-top .btn-listen").on("click", (function() {
657                $(this).hide(), $(".header__mb-top .btn-listen-close").show(), $(".header__mb-top .header__mb-listen").slideDown(300)
658            })), $(".header__mb-top .btn-listen-close").on("click", (function() {
659                $(this).hide(), $(".header__mb-top .btn-listen").show(), $(".header__mb-top .header__mb-listen").slide
659Up(260)
660            })), $(".JQellipsis").length && $(".JQellipsis").each((function(e) {
661                var i = $(this).attr("data-txt-length");
662                if ($(this).text().length > i) {
663                    $(this).attr("title", $(this).text());
664                    var t = $(this).text().substring(0, i - 1) + "...";
665                    $(this).text(t)
666                }
667            })), $(".top-banner-bar .btn-close").on("click", (function() {
668                $("html").removeClass("top-banner-bar-opened has-top-banner "), $(".top-banner-bar").addClass("closed"), $('body, .header').removeAttr("style")
669            })), $(".show-slider").length && $(".show-slider").each((function() {
670                var e = $(this).find(".swiper-container");
671                new Swiper(e, {
672                    loop: !1,
673                    slidesPerView: 1,
674                    slidesPerColumn: 3,
675                    slidesPerColumnFill: "row",
676                    spaceBetween: 15,
677                    observer: !0,
678                    observeParents: !0,
679                    observeSlideChildren: !0,
680                    grabCursor: !0,
681                    simulateTouch: !0,
682                    pagination: {
683                        el: e.find(".swiper-pagination"),
684                        clickable: !0
685                    },
686                    keyboard: {
687                        enabled: !0,
688                        onlyInViewport: !0
689                    },
690                    breakpoints: {
691                        500: {
692                            slidesPerView: 2,
693                            slidesPerColumn: 2
694                        },
695                        768: {
696                            slidesPerView: 3,
697                            slidesPerColumn: 2
698                        }
699                    }
700                })
701            })), $(".img-card-slider").length && $(".img-card-slider").each((function() {
702                var e = $(this).find(".swiper-container");
703                new Swiper(e, {
704                    loop: !0,
705                    slidesPerView: 1,
706                    spaceBetween: 0,
707                    grabCursor: !0,
708                    simulateTouch: !0,
709                    effect: "fade",
710                    observer: !0,
711                    observeParents: !0,
712                    observeSlideChildren: !0,
713                    autoplay: {
714                        delay: 6e3,
715                        disableOnInteraction: !1
716                    },
717                    pagination: {
718                        el: $(this).find(".swiper-pagination"),
719                        clickable: !0
720                    }
721                })
722            })), $(".stock-card-slider").length && $(".stock-card-slider").each((function() {
723                var e = $(this).find(".swiper-container");
724                new Swiper(e, {
725                    loop: !0,
726                    slidesPerView: 2.8,
727                    spaceBetween: 15,
728                    grabCursor: !0,
729                    simulateTouch: !0,
730                    observer: !0,
731                    observeParents: !0,
732                    observeSlideChildren: !0,
733                    navigation: {
734                        nextEl: $(this).find(".swiper-button-next"),
735                        prevEl: $(this).find(".swiper-button-prev")
736                    },
737                    autoplay: {
738                        delay: 3e3,
739                        disableOnInteraction: !1
740                    },
741                    breakpoints: {
742                        550: {
743                            slidesPerView: 3.5
744                        },
745                        768: {
746                            slidesPerView: 3
747                        },
748                        991: {
749                            slidesPerView: 4
750                        }
751                    }
752                })
753            })), $(".vertical-slider").length && $(".vertical-slider").each((function() {
754                var e = (i = $(this)).find(".swiper-container"),
755                    i = new Swiper(e, {
756                        direction: "horizontal",
757                        slidesPerView: 1,
758                        slidesPerGroup: 1,
759                        spaceBetween: 0,
760                        loop: !0,
761                        simulateTouch: !0,
762                        observer: !0,
763                        observeParents: !0,
764                        observeSlideChildren: !0,
765                        pagination: {
766                            el: $(this).find(".swiper-pagination"),
767                            clickable: !0
768                        },
769                        breakpoints: {
770                            550: {
771                                slidesPerView: 2,
772                                slidesPerGroup: 2,
773                                direction: "horizontal"
774                            },
775                            1199: {
776                                slidesPerView: 4,
777                                direction: "vertical"
778                            }
779                        },
780                        on: {
781                            resize: function() {
782                                var e = setInterval((function() {
783                                    i.update()
784                                }), 250);
785                                setTimeout((function() {
786                                    clearInterval(e)
787                                }), 1e3)
788                            }
789                        }
790                    })
791            })), $(".banner-slider").length && $(".banner-slider").each((function() {
792                var e = $(this).find(".swiper-container");
793                new Swiper(e, {
794                    loop: !0,
795                    slidesPerView: 1,
796                    spaceBetween: 0,
797                    observer: !0,
798                    observeParents: !0,
799                    observeSlideChildren: !0,
800                    grabCursor: !0,
801                    simulateTouch: !0,
802                    preloadImages: !1,
803                    lazy: {
804                        loadPrevNext: !0,
805                        loadOnTransitionStart: !0
806                    },
807                    pagination: {
808                        el: e.find(".swiper-pagination"),
809                        clickable: !0
810                    },
811                    keyboard: {
812                        enabled: !0,
813                        onlyInViewport: !0
814                    }
815                })
816            })), $(".horizontalScroll").length && $(".horizontalScroll").each((function() {
817                var e, i, t = $(this)[0],
818                    o = !1;
819                t.addEventListener("mousedown", (function(n) {
820                    o = !0, e = n.pageX - t.offsetLeft, i = t.scrollLeft
821                })), t.addEventListener("mouseleave", (function() {
822                    o = !1
823                })), t.addEventListener("mouseup", (function() {
824                    o = !1
825                })), t.addEventListener("mousemove", (function(n) {
826                    if (o) {
827                        n.preventDefault();
828                        var a = 3 * (n.pageX - t.offsetLeft - e);
829                        t.scrollLeft = i - a
830                    }
831                }))
832            })), $(".modal").on("show.bs.modal", (function(e) {
833                $("html").addClass("modal-show")
834            })), $(".modal").on("hide.bs.modal", (function(e) {
835                $("html").removeClass("modal-show")
836            })), $("#socialModal").on("show.bs.modal", (function(e) {
837                $(".mobile-menu").removeClass("active"), $(".mask").fadeOut(260)
838            })), o(), n(), $(".schedule").length && ($(".schedule .dropdown__item").on("click", (function() {
839                var e = $(this),
840                    i = $(this).html(),
841                    t = $(this).attr("data-channel-id");
842                e.parents(".schedule").find("#dropdown-active-txt").html(i), e.parents(".schedule").find(".schedule__menu__tab, .schedule__wrapper").hide(), e.parents(".schedule").find(".schedule__menu__tab, .schedule__wrapper").removeClass("active"), e.parents(".schedule").find('.schedule__menu__tab[data-channel-tab="' + t + '"], .schedule__wrapper[data-channel-body="' + t + '"]').fadeIn(300, (function() {
843                    $(this).addClass("active")
844                }))
845            })), $(".schedule__menu .nav-link").on("click", (function() {
846                var e = $(this).attr("href");
847                $(".schedule__wrapper.active").find(".tab-pane").removeClass("active show"), $(e).tab("show")
848            }))),
849            function() {
850                if ($(".schedule").length && !$(".archive").length) {
851                    $("html").addClass("hasScheduleMenu"), window.scrollTo(0, 0);
852                    for (var e = (new Date).toLocaleString("en-US", {
853                            timeZone: "Asia/Hong_Kong"
854                        }), i = new Date(e), t = 0; t < $(".schedule__wrapper.active .program__schedule").length; t++) {
855                        var o = new Date((new Date).toLocaleString("en-US", {
856                                timeZone: "Asia/Hong_Kong"
857                            })),
858                            n = $(".schedule__wrapper.active .program__schedule").eq(t).attr("data-start-time");
859                        if (n) {
860                            o.setHours(n.substr(0, 2), n.substr(3, 2));
861                            var a = new Date(o);
862                            if (i < a) return window.scrollTo(0, 0), $(".schedule__wrapper.active .program__schedule").eq(t - 1).parents(".program__item").addClass("isLive"), void setTimeout((function() {
863                                d($(".schedule__wrapper.active .program__schedule").eq(t - 1).parents(".program__item"))
864                            }), 1e3)
865                        }
866                    }
867                }
868            }(), p(), $('[data-toggle="popover"]').popover({
869                html: !0,
870                trigger: "focus"
871            }), $("#btn-share-wechat").on("shown.bs.popover", (function() {
872                $("#url-qrcode").qrcode({
873                    width: 150,
874                    height: 150,
875                    text: window.location.href
876                })
877            }))
878    })), $(window).on("load", (function() {
879        $("html").fadeIn(300), $(".spinner-container").hide(), a(), $(".nav-tabs.draggable").length && $(".nav-tabs.draggable").each((function() {
880            if ($(this).find(".nav-item").length > 2) {
881                var e, i, t = $(this).attr("id"),
882                    o = document.getElementById(t),
883                    n = !1;
884                o.addEventListener("mousedown", (function(t) {
885                    n = !0, e = t.pageX - o.offsetLeft, i = o.scrollLeft
886                })), o.addEventListener("mouseleave", (function() {
887                    n = !1
888                })), o.addEventListener("mouseup", (function() {
889                    n = !1
890                })), o.addEventListener("mousemove", (function(t) {
891                    if (n) {
892                        t.preventDefault();
893                        var a = 3 * (t.pageX - o.offsetLeft - e);
894                        o.scrollLeft = i - a
895                    }
896                }))
897            }
898        })), $('[data-toggle="tooltip"]').tooltip(), $(".sliderArea__cover__link").on("click", (function() {
899            var e = $(this).attr("data-active-slide");
900            s = parseInt(e)
901        })), $(".thumbnailSliderModal").on("show.bs.modal", (function(e) {
902            $("html").addClass("darkBackdrop")
903        })), $(".thumbnailSliderModal").on("shown.bs.modal", (function(e) {
904            ! function(e) {
905                var i = $(e.relatedTarget).attr("data-target"),
906                    t = $(i);
907                c = new Swiper(t.find(".gallery-thumbs"), {
908                    spaceBetween: 5,
909                    slidesPerView: 4,
910                    loop: !0,
911                    freeMode: !0,
912                    loopedSlides: 4,
913                    watchSlidesVisibility: !0,
914                    watchSlidesProgress: !0,
915                    preloadImages: !1,
916                    lazy: {
917                        loadPrevNext: !0,
918                        loadOnTransitionStart: !0
919                    },
920                    observer: !0,
921                    observeParents: !0,
922                    observeSlideChildren: !0,
923                    grabCursor: !0,
924                    simulateTouch: !0,
925                    breakpoints: {
926                        768: {
927                            spaceBetween: 10,
928                            slidesPerView: 5,
929                            loopedSlides: 5
930                        }
931                    }
932                }), new Swiper(t.find(".gallery-top"), {
933                    spaceBetween: 10,
934                    freeMode: !1,
935                    loop: !0,
936                    loopedSlides: 4,
937                    preloadImages: !1,
938                    lazy: {
939                        loadPrevNext: !0,
940                        loadOnTransitionStart: !0
941                    },
942                    observer: !0,
943                    observeParents: !0,
944                    observeSlideChildren: !0,
945                    grabCursor: !0,
946                    simulateTouch: !0,
947                    navigation: {
948                        nextEl: t.find(".swiper-button-next"),
949                        prevEl: t.find(".swiper-button-prev")
950                    },
951                    thumbs: {
952                        swiper: c
953                    },
954                    breakpoints: {
955                        768: {
956                            loopedSlides: 5
957                        }
958                    },
959                    on: {
960                        init: function() {
961                            this.slideToLoop(s)
962                        }
963                    }
964                })
965            }(e)
966        })), $(".thumbnailSliderModal").on("hidden.bs.modal", (function(e) {
967            $("html").removeClass("darkBackdrop")
968        })), $(".form__password__showBtn").on("click", (function() {
969            var e = $(this).parents(".form__password").find("input").attr("id"),
970                i = document.getElementById(e);
971            "password" === i.type ? i.type = "text" : i.type = "password"
972        })), $(".scrollToSectionBar__item").on("click", (function() {
973            var e = "#" + $(this).attr("data-goto-sect"),
974                i = $(e).offset().top - $(".header").outerHeight() - 20;
975            $("html, body").animate({
976                scrollTop: i
977            }, 300)
978        }))
979    })), $(window).on("scroll", (function() {
980        var e, i, d;
981        e = $(window).scrollTop(), d = e - (this.lastScrollTop ?? e), this.lastScrollTop = e, i = $(".top-banner-bar").outerHeight(), $(".top-banner-bar").length && !$(".top-banner-bar").hasClass("closed") && (e + 10 > i ? $("html").removeClass("top-banner-bar-opened") : $("html").addClass("top-banner-bar-opened")), (d > 0) ? $("html").addClass("scrolling-down") : $("html").removeClass("scrolling-down"), o(), n(), r(), p(), $('[data-toggle="tooltip"]').tooltip("hide")
982    })), $(window).on("resize", (function() {
983        window.outerWidth > 767 && ($(".mobile-menu").removeClass("active"), $(".mask").fadeOut(260)), t(), o(), n(), r(), p(), $('[data-toggle="tooltip"]').tooltip("hide")
984    }));
985    var l = 0;
986
987    function p() {
988        if ($(".schedule__menu").length) {
989            var e = $(window).scrollTop(),
990                i = $(".schedule__menu").offset().top,
991                t = $(".schedule__menu").outerHeight(),
992                o = $(".header").outerHeight();
993            e > i - o + t ? ($("html").addClass("scheduleMenuOnTop"), e > l ? ($("html").addClass("scrollDown"), $(".schedule__menu__wrapper").css({
994                top: 0
995            })) : ($("html").removeClass("scrollDown"), $(".schedule__menu__wrapper").css({
996                top: o
997            }))) : ($("html").removeClass("scheduleMenuOnTop"), $("html").removeClass("scrollDown"), $(".schedule__menu__wrapper").css({
998                top: 0
999            })), l = e
1000        }
1001    }
1002    var s = 0;
1003    var c = null
1004}]);
1005
1006$(function() {
1007    radioBtnUnchecked();
1008});
1009
1010$(window).on("load", (function() {
1011    topAdBannerDynamicHeight();
1012}));
1013
1014function radioBtnUnchecked() {
1015    $("input[name='subscribe-plan']").change(function() {
1016        $("input[name='subscribe-plan']").not(this).prop('checked', false);
1017    });
1018
1019    $("input[name='subscribe-streaming']").change(function() {
1020        $("input[name='subscribe-streaming']").not(this).prop('checked', false);
1021    });
1022}
1023
1024function topAdBannerDynamicHeight() {
1025    setInterval(function() {
1026        if (!$('html').hasClass('checked')) {
1027
1028            if ($('.top-banner-bar iframe').length) { 
1029                var adBannerHeight = $('.top-banner-bar iframe').height();
1030                var bodyPaddingTop = $('.top-banner-bar iframe').height() + $('.header').height() + 50;
1031                var headerTop = $('.top-banner-bar iframe').height() + 50;
1032                
1033                if (adBannerHeight < 110) {
1034                    $('html').addClass('ad-holder-90 checked');
1035                    window.scrollTo(0, 0);
1036                } else if (adBannerHeight > 245) {
1037                    $('html').addClass('ad-holder-250 checked');
1038                    window.scrollTo(0, 0);
1039                }
1040            }
1041        }
1042    }, 1000);
1043}
1044
1045// Metro Focus
1046$(function(){
1047
1048    $.get('https://metro.hk/wp-json/wp/v2/posts?per_page=8&_embed=wp:term,wp:featuredmedia', {categories:[2,3,4,5,6,7,8,9]}, function(data){
1049        console.log(data);
1050        let posts = data.map(function(item){
1051            let img = item._embedded['wp:featuredmedia'][0].media_details.sizes.medium_large?.source_url ?? item._embedded['wp:featuredmedia'][0].source_url ?? ""
1052            let title = item.title.rendered
1053            let a = new Date(item.date);
1054            let date = a.getDate() + "/" + (a.getMonth() + 1) + "/" + a.getFullYear()
1055
1056            let cat = item._embedded['wp:term'].flat().filter(c=>c.taxonomy == 'category' && c.id >= 2 && c.id <= 9)[0]
1057
1058            return `
1059                <a href="${item.link}" class="card" target="_blank">
1060                    <span class="card__thumbnail">
1061                        <img src="${img}" alt="">
1062                    </span>
1063                    <span class="card__content">
1064                        <span class="card__tag cat-item-${cat?.id ?? 0}">${cat?.name ?? decodeURI('%E6%9C%AA%E5%88%86%E9%A1%9E')}</span>
1065                        <span class="card__title">${title}</span>
1066                    </span>
1067                    <span class="card__date">${date}</span>
1068                </a>
1069            `
1070        })
1071        $('#metroFocus .grid').append(posts)
1072    });
1073
1074})
1075
1076// Desktop Menu Hover
1077$(function(){
1078    console.log($(".has-sub-menu"))
1079    $(".has-sub-menu").mouseenter(function() {
1080        console.log("Test Sub-menu")
1081        $(".sub-menu").removeClass("active");
1082        $(this).next(".sub-menu").addClass("active").css('left', $(this).position().left);
1083    });
1084    $(".header__menu").mouseleave(function() {
1085        $(".sub-menu").removeClass("active");
1086    });
1087    $(".main-item:not('.has-sub-menu')").mouseenter(function() {
1088        $(".sub-menu").removeClass("active")
1089    })
1090})
1091
1092function launchDate(date, interval = 60 * 60) {
1093	const v = () => {
1094		const n = Date.now();
1095		if (launchDate.l < n) {
1096			$(".schedule-launch").removeClass("schedule-launch");
1097			console.debug("[Launch Date] Launch time readched:", { launch: new Date(launchDate.l), now: new Date(n), taskId: launchDate.t });
1098			clearInterval(launchDate.t);
1099		} else {
1100			console.debug("[Launch Date] Checking Launch time:", { launch: new Date(launchDate.l), now: new Date(n), taskId: launchDate.t });
1101		}
1102	};
1103	try {
1104		switch (typeof date) {
1105			case "string":
1106				launchDate.l = Date.parse(date);
1107				break;
1108			case "object":
1109				if (date instanceof Date) launchDate.l = date.valueOf();
1110				else throw null;
1111				break;
1112			case "number":
1113				launchDate.l = date;
1114				break;
1115			default:
1116				throw null;
1117		}
1118	} catch (error) {
1119		launchDate.l = 0;
1120	}
1121
1122	$(() => {
1123		clearInterval(launchDate.t);
1124		launchDate.t = setInterval(v, interval * 1000);
1125		v();
1126	});
1127}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.