PageSourceSearch

https://richmondsentinel.ca/js/script.js?t=1791143860

js richmondsentinel.ca collected 2026-10-04 19:57:53 UTC 2,962 bytes, 90 lines download raw bytes

1$(function () {
2    $(".dropdown-menu a.dropdown-item").on("click", function (e) {
3        if (
4            !$(this)
5            .next()
6            .hasClass("show")
7        ) {
8            $(this)
9                .parents(".dropdown-menu")
10                .first()
11                .find(".show")
12                .removeClass("show");
13        }
14        var $subMenu = $(this).next(".dropdown-menu");
15        $subMenu.toggleClass("show");
16
17        $(this)
18            .parents("li.nav-item.dropdown.show")
19            .on("hidden.bs.dropdown", function (e) {
20                $(".dropdown-submenu .show").removeClass("show");
21            });
22        return false;
23    });
24
25    $(".video-play-pause")
26        .find("i")
27        .click(function (e) {
28            $(".video-inner")
29                .find("video")
30                .each(function () {
31                    $(this)
32                        .get(0)
33                        .pause();
34                });
35            e.preventDefault();
36            if ($(this).hasClass("fa-play-circle-o")) {
37                $(this)
38                    .parents("a")
39                    .find(".video-throbber")
40                    .removeClass("hidden");
41                $(this)
42                    .parents("a")
43                    .find("video")
44                    .get(0)
45                    .play();
46                $(this)
47                    .removeClass("fa-play-circle-o")
48                    .addClass("fa-pause-circle-o");
49            } else if ($(this).hasClass("fa-pause-circle-o")) {
50                $(this)
51                    .parents("a")
52                    .find("video")
53                    .get(0)
54                    .pause();
55                $(this)
56                    .removeClass("fa-pause-circle-o")
57                    .addClass("fa-play-circle-o");
58            }
59        });
60    $(".video-inner").each(function () {
61        var video_tag = $("video", this);
62        $(video_tag).attr(
63            "height",
64            Math.floor($(video_tag).width()) / 2 + "px"
65        );
66        $(video_tag).on("canplay", function () {
67            $(this)
68                .next(".video-throbber")
69                .addClass("hidden");
70        });
71    });     
72
73    var height = $("#detail").height();
74    var treheight = $(".trendingnews").outerHeight();
75    var totaltrending = Math.floor(height / treheight);
76    $(".trendingnews:gt(" + totaltrending + ")").remove();
77    lazyLoadArticles();
78});
79function lazyLoadArticles(){
80     $(".article-inner .throbber").find("img:not(.video-list-play-button)").each(function () {
81         if ($(this).parents(".throbber").find(".throbber_after").length > 0) {
82             $(this).attr("src", $(this).data("src"));
83             $(this).on('load', function () {
84                 $(this).parents(".throbber").find(".throbber_after").remove();
85                 $(this).removeAttr("data-src");
86                 $(this).off('load');
87             });
88         }
89     });
90}

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.