PageSourceSearch

https://hfny.org/wp-content/themes/hope-for-new-york/assets/js/ui/map-video.js?ver=1.0.94

js hfny.org collected 2026-10-02 07:45:57 UTC 1,284 bytes, 55 lines download raw bytes

1(function () {
2  "use strict";
3
4  const PLAYBACK_RATE = 0.7;
5
6  function initMapVideo() {
7    const container = document.getElementById("map-video");
8    if (!container) {
9      return;
10    }
11
12    const video = container.querySelector("video");
13    if (!video) {
14      return;
15    }
16
17    video.muted = true;
18    video.loop = true;
19    video.autoplay = true;
20    video.playsInline = true;
21    video.setAttribute("muted", "");
22    video.setAttribute("loop", "");
23    video.setAttribute("playsinline", "");
24    video.removeAttribute("controls");
25    video.controls = false;
26
27    const applyRate = function () {
28      video.playbackRate = PLAYBACK_RATE;
29    };
30
31    if (video.readyState >= 1) {
32      applyRate();
33    }
34    video.addEventListener("loadedmetadata", applyRate, { once: true });
35    video.addEventListener("ratechange", function () {
36      if (video.playbackRate !== PLAYBACK_RATE) {
37        video.playbackRate = PLAYBACK_RATE;
38      }
39    });
40
41    const tryPlay = function () {
42      const p = video.play();
43      if (p && typeof p.catch === "function") {
44        p.catch(function () {});
45      }
46    };
47    tryPlay();
48  }
49
50  if (document.readyState === "loading") {
51    document.addEventListener("DOMContentLoaded", initMapVideo);
52  } else {
53    initMapVideo();
54  }
55})();

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.