PageSourceSearch

https://sds-bridge.github.io/assets/js/sample.js

js sds-bridge.github.io collected 2026-10-03 09:55:18 UTC 4,465 bytes, 63 lines download raw bytes

1function select_sample(selectElement) {
2    const selectedValue = selectElement.value;
3
4    // Define the paths for each method
5    const paths = {
6        "VSD": `./video_assets/nerf/VSD/${selectedValue}.mp4`,
7        "SDS": `./video_assets/nerf/SDS/${selectedValue}.mp4`,
8        "Ours": `./video_assets/nerf/Ours/${selectedValue}.mp4`
9    };
10
11    // Update the source of each video element
12    document.querySelector("#sect-2-sample-0 source").src = paths["VSD"];
13    document.querySelector("#sect-2-sample-1 source").src = paths["SDS"];
14    document.querySelector("#sect-2-sample-2 source").src = paths["Ours"];
15
16    // Reload the video elements to reflect the new sources
17    document.getElementById("sect-2-sample-0").load();
18    document.getElementById("sect-2-sample-1").load();
19    document.getElementById("sect-2-sample-2").load();
20
21    // Update the description
22    document.getElementById("sect-2-prompt").innerText = getPrompt(selectedValue);
23}
24
25// Function to return description based on selected sample
26function getPrompt(selectedValue) {
27    const prompts = {
28        "bulldog": "A bulldog, detailed, high resolution, high quality, sharp.",
29        "dog_statue": "Michelangelo style statue of dog reading news on a cellphone.",
30        "fluffy_wolf": "A fluffy wolf, detailed, high resolution, high quality, sharp.",
31        "horse": "A zoomed out photo of a horse.",
32        "pineapple": "A pineapple, detailed, high resolution, high quality, sharp",
33        "rock_moss": "A giant rock with moss on it, detailed, high resolution, high quality, sharp.",
34        "tudor_house": "A model of a house in Tudor style.",
35        "cookies": "A plate piled high with chocolate chip cookies.",
36        "elephant_skull": "An elephant skull.",
37        "golden_retriever": "A golden retriever, detailed, high resolution, high quality, sharp.",
38        "llama": "A llama, detailed, high resolution, high quality, sharp.",
39        "policewoman": "A policewoman.",
40        "snail": "A snail on a leaf.",
41        "walnut": "A walnut, detailed, high resolution, high quality, sharp.",
42        "cottage": "A 3D model of an adorable cottage with a thatched roof.",
43        "firefighter": "A firefighter standing.",
44        "hermit_crab": "A hermit crab.",
45        "nurse": "A nurse.",
46        "potato_tree": "A tree of potatoes, detailed, high resolution, high quality, sharp.",
47        "toucan": "A toucan standing on the wood.",
48        "wooden_chair": "A wooden chair, detailed, high resolution, high quality, sharp.",
49        "chess": "A compact, cylindrical, vintage pepper mill, with a polished, ornate brass body, slightly worn from use, placed beside a porcelain plate on a checkered tablecloth",
50        "cake": "A large, multi-layered, symmetrical wedding cake, with smooth fondant, delicate piping, and lifelike sugar flowers in full bloom, displayed on a silver stand",
51        "shell": "A medium-sized, layered, radially symmetrical conch shell, with a rough texture on the outside, fading from pink to cream, sitting alone on a sandy beach",
52        "orb": "A small, solid, geometrically spherical, metallic orb, with a glossy ruby finish, nestled in a nest of black velvet, untouched and gleaming under a spotlight",
53        "abalone": "A small, solid, radially symmetrical, iridescent abalone shell, with jagged contours, hosting a miniature, tranquil Zen garden complete with tiny, raked sand and micro bonsai",
54        "teapot": "A solid, smooth, symmetrical porcelain teapot, with a cobalt blue dragon design, steam rising from the spout, suggesting it's just been filled with boiling water",
55        "instruments": "An ensemble of hollow, irregularly shaped musical instruments, including a saxophone, a violin, and a drum, resting on a stage before a jazz concert",
56        "wooden_figuring": "An intricately carved, solid, wooden figurine, with jagged contours depicting an ancient deity, the wood grain visible under a matte finish, on a stone altar",
57        "birdcage": "An oversized, porous, sphere-shaped birdcage, made of woven golden wires, with a matte finish, housing a small, mechanical, singing bird that flutters in a lifelike manner",
58        "seashells": "Various hollow, asymmetrical, textured seashells, collected in a sand-filled, clear glass jar with a twine-tied neck, displayed on a windowsill",
59        "crown": "Imperial state crown of England.",
60    };
61
62    return prompts[selectedValue] || "Description not available.";
63}

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.