PageSourceSearch

https://maritiemdigitaal.nl/_content/DDigit.BlazorComponents/js/video.wpfwwrqmby.js

js maritiemdigitaal.nl collected 2026-09-24 20:39:45 UTC 968 bytes, 41 lines download raw bytes

1{
2  class VideoElement {
3    constructor(element) {
4      this.video = element;
5
6      if (this.video) {
7        this.video.onpause = () => {
8          this.video.currentTime = this.start;
9        };
10      }
11      this.reset();
12    }
13
14    reset() {
15      if (this.video) {
16        var rangeIndex = this.video.src.indexOf("#t=");
17        if (rangeIndex != -1) {
18          let timestamp = this.video.src.substr(rangeIndex + 3);
19          [this.start, this.end] = timestamp.split(',');
20        }
21      }
22    }
23  }
24
25  var video_elements = {};
26
27  window.RemoveVideoElement = function (elementId) {
28    delete video_elements[elementId];
29  }
30
31  window.AddVideoElement = function (elementId) {
32    var element = document.getElementById(elementId);
33    if (element) {
34      video_elements[elementId] = new VideoElement(element);
35    }
36  }
37
38  window.ResetVideoElement = function (elementId) {
39    video_elements[elementId].reset();
40  }
41} 

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.