PageSourceSearch

https://rat4d.github.io/js/app.js

js rat4d.github.io collected 2026-10-03 09:49:22 UTC 1,958 bytes, 66 lines download raw bytes

1// JavaScript to handle mouseover and mouseout events
2var activeMethodPill = null;
3var activeScenePill = null;
4var activeModePill = null;
5var activeVidID = 0;
6var select = false;
7
8
9var editor = null;
10
11$(document).ready(function () {
12    editor = CodeMirror.fromTextArea(document.getElementById("bibtex"), {
13        lineNumbers: false,
14        lineWrapping: true,
15        readOnly: true
16    });
17    $(function () {
18        $('[data-toggle="tooltip"]').tooltip()
19    });
20
21    editor.removeTag = CodeMirror.removeTag;
22    var cm = $(".CodeMirror");
23    cm.editor = editor;
24    editor.save();
25    editor.setOption("mode", "htmlmixed");
26
27
28    // resizeAndPlay($('#sparsity')[0]);
29});
30
31function copyBibtex() {
32    if (editor) {
33        navigator.clipboard.writeText(editor.getValue());
34    }
35};
36
37// function selectCompVideo(methodPill, scenePill, modePill) {
38//     // Your existing logic for video selection
39//     // var video = document.getElementById("compVideo");
40//     select = true;
41
42//     if (activeMethodPill) {
43//         activeMethodPill.classList.remove("active");
44//     }
45//     if (activeScenePill) {
46//         activeScenePill.classList.remove("active");
47//     }
48//     if (modePill) {
49//         activeModePill.classList.remove("active");
50//         modePill.classList.add("active");
51//         activeModePill = modePill;
52//     }
53//     activeMethodPill = methodPill;
54//     activeScenePill = scenePill;
55//     methodPill.classList.add("active");
56//     scenePill.classList.add("active");
57//     method = methodPill.getAttribute("data-value");
58//     pill = scenePill.getAttribute("data-value");
59//     mode = activeModePill.getAttribute("data-value");
60
61//     // swap video to avoid flickering
62//     activeVidID = 1 - activeVidID;
63//     var video_active = document.getElementById("compVideo" + activeVidID);
64//     video_active.src = "videos/comparison/" + pill + "_" + method + "_vs_ours_" + mode + ".mp4";
65//     video_active.load();
66// }

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.