PageSourceSearch

https://quantavinyl.app/script.js

js quantavinyl.app collected 2026-10-05 04:45:59 UTC 882 bytes, 29 lines download raw bytes

1var myvid = document.getElementById('myvideo');
2var myvids = [
3    "https://github.com/Priva28/quanta.github.io/raw/main/apoc%20dreams%20quanta.mp4", 
4    "https://user-images.githubusercontent.com/40876121/209416048-cf5b7b0a-6780-4cae-bd9a-f2976dff2f08.mp4"
5];
6
7function getRandomIndex(max) {
8    /* The function will return a random number between 0 and max - 1 */
9    return Math.floor(Math.random() * Math.floor(max));
10}
11
12function randomlyChooseVideo() {
13    activeVideo = getRandomIndex(myvids.length);
14
15    // update the video source and play
16    myvid.src = myvids[activeVideo];
17    myvid.play();
18}
19
20/* The initial active video will radomly be choosen between 0 and videoArray length - 1 */
21var activeVideo = getRandomIndex(myvids.length);
22
23window.onload = function(e) {
24    randomlyChooseVideo()
25}
26
27myvid.addEventListener('ended', function(e) {
28    randomlyChooseVideo()
29});

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.