File size: 17,390 Bytes
78e24f3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 | const videos = [
{
id: 1,
title: "Physics-IQ: ball and rotating paper",
prompt: "The ball moves downward while the paper board rotates.",
frame: "0 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "01_physics_iq_ball_and_rotating_paper.mp4",
},
{
id: 2,
title: "Panda-70M: freeway interchange at dusk",
prompt: "An aerial view of a freeway intersection at the dusk.",
frame: "3 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "02_panda_freeway_interchange_dusk.mp4",
},
{
id: 3,
title: "Panda-70M: hug in front of trophy",
prompt: "Two men hugging each other in front of a trophy.",
frame: "0 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "03_panda_hug_in_front_of_trophy.mp4",
},
{
id: 4,
title: "HAD test0053: turn right",
prompt: "Turn right at the intersection.",
frame: "0 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "04_had_test0053_turn_right.mp4",
},
{
id: 5,
title: "HAD test0053: follow traffic rules",
prompt: "The vehicle proceeds according to traffic rules.",
frame: "0 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "05_had_test0053_follow_traffic_rules.mp4",
},
{
id: 6,
title: "Sekai: look up at the ceiling",
prompt: "The person looks up at the ceiling.",
frame: "14 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "06_sekai_look_up_at_ceiling.mp4",
},
{
id: 7,
title: "WISA-80K: ascending drone",
prompt: "A view from an ascending drone.",
frame: "0 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "07_wisa_ascending_drone.mp4",
},
{
id: 8,
title: "PAI Transfer: robot hands over milk tea",
prompt: "The robot hands the milk tea to the woman.",
frame: "0 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "08_pai_robot_hands_milk_tea.mp4",
},
{
id: 9,
title: "PAI Understanding: phone while driving",
prompt: "The man talks on the phone while driving.",
frame: "0 s",
model: "Kling O3 Standard fallback",
family: "kling",
file: "09_pai_man_talks_on_phone_while_driving_kling_fallback.mp4",
},
{
id: 10,
title: "PAI Transfer: faster car and motorcycle",
prompt: "You are driving on the road; the red car and the motorcycle are moving faster than you.",
frame: "0 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "10_pai_faster_red_car_and_motorcycle.mp4",
},
{
id: 11,
title: "Panda-70M: driver turns around cones",
prompt: "The driver is turning around cones.",
frame: "7 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "11_panda_driver_turns_around_cones.mp4",
},
{
id: 12,
title: "PAI Understanding: camera circles left",
prompt: "The woman is holding a camera and moving around to her left while filming.",
frame: "3 s",
model: "Kling O3 Standard fallback",
family: "kling",
file: "12_pai_woman_circles_left_while_filming_kling_fallback.mp4",
},
{
id: 13,
title: "Panda-70M: green player spikes",
prompt: "The player in green scores by spiking the volleyball.",
frame: "5 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "13_panda_green_player_spikes_volleyball.mp4",
},
{
id: 14,
title: "Panda-70M: lipstick application",
prompt: "The makeup artist is applying lipstick to the woman.",
frame: "0 s",
model: "Kling O3 Standard fallback",
family: "kling",
file: "14_panda_makeup_artist_applies_lipstick_kling_fallback.mp4",
},
{
id: 27,
label: "15",
poster: "s15",
title: "VGenST-Bench: cat crosses the billiard table",
prompt: "The camera remains stationary. Within the 5-second clip, the cat moves to the opposite side of the billiard table.",
frame: "2 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "15_vgenst_cat_opposite_side_of_billiard_table.mp4",
},
{
id: 28,
label: "16",
poster: "s16",
title: "VGenST-Bench: apples into and out of a box",
prompt: "The camera remains stationary. Within the 5-second clip, the person places the two apples into the box one after the other, then removes the first apple from the box.",
frame: "1 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "16_vgenst_two_apples_into_box_then_first_out.mp4",
},
{
id: 29,
label: "17",
poster: "s17",
title: "VGenST-Bench: dog crosses in front of e-bike",
prompt: "The camera follows the electric scooter. Within the 5-second clip, a dog emerges from behind the blue Tourist Information Kiosk and crosses the road, forcing the electric scooter to slow down and yield.",
frame: "0 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "17_vgenst_dog_crosses_and_ebike_yields.mp4",
},
{
id: 30,
label: "18",
poster: "s18",
title: "VGenST-Bench: book opposite cup on mantel",
prompt: "The camera remains stationary. Within the 5-second clip, the person moves the book onto the fireplace mantel and places it directly opposite the cup from the camera's perspective.",
frame: "1 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "18_vgenst_book_opposite_cup_on_mantel.mp4",
},
{
id: 31,
label: "19",
poster: "s19",
title: "VGenST-Bench: reveal three container contents",
prompt: "From left to right from the camera's perspective, the containers hold Black Ink, Gold Coins, and Rolled Parchment, respectively. Within the 5-second clip, the camera changes its viewing angle to clearly reveal the items inside all three containers.",
frame: "0 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "19_vgenst_reveal_contents_of_three_containers.mp4",
},
{
id: 32,
label: "20",
poster: "s20",
title: "VGenST-Bench: loop along the left wall",
prompt: "Within the 5-second clip, the camera travels along the left wall, completes a full loop, returns to its starting position, and finishes facing the same direction as at the beginning.",
frame: "0 s",
model: "Seedance 2.0 Standard",
family: "seedance",
file: "20_vgenst_loop_along_left_wall_return_to_start.mp4",
},
{
id: 15,
label: "K01",
poster: "k01",
title: "Physics-IQ: ball and rotating paper",
prompt: "The ball moves downward while the paper board rotates.",
frame: "0 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "01_physics_iq_ball_and_rotating_paper_kling.mp4",
},
{
id: 16,
label: "K02",
poster: "k02",
title: "Panda-70M: freeway interchange at dusk",
prompt: "An aerial view of a freeway intersection at the dusk.",
frame: "3 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "02_panda_freeway_interchange_dusk_kling.mp4",
},
{
id: 17,
label: "K03",
poster: "k03",
title: "Panda-70M: hug in front of trophy",
prompt: "Two men hugging each other in front of a trophy.",
frame: "0 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "03_panda_hug_in_front_of_trophy_kling.mp4",
},
{
id: 18,
label: "K04",
poster: "k04",
title: "HAD test0053: turn right",
prompt: "Turn right at the intersection.",
frame: "0 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "04_had_test0053_turn_right_kling.mp4",
},
{
id: 19,
label: "K05",
poster: "k05",
title: "HAD test0053: follow traffic rules",
prompt: "The vehicle proceeds according to traffic rules.",
frame: "0 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "05_had_test0053_follow_traffic_rules_kling.mp4",
},
{
id: 26,
label: "K04-R",
poster: "k04r",
title: "HAD test0053: turn right",
prompt: "Within the 5-second clip, the ego vehicle approaches the intersection, completes a full right turn onto the cross street, and continues straight for the remainder of the clip.",
frame: "0 s",
model: "Kling O3 Standard revision",
family: "kling",
file: "04_had_test0053_turn_right_kling_revision.mp4",
},
{
id: 20,
label: "K06",
poster: "k06",
title: "Sekai: look up at the ceiling",
prompt: "The person looks up at the ceiling.",
frame: "14 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "06_sekai_look_up_at_ceiling_kling.mp4",
},
{
id: 21,
label: "K07",
poster: "k07",
title: "WISA-80K: ascending drone",
prompt: "A view from an ascending drone.",
frame: "0 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "07_wisa_ascending_drone_kling.mp4",
},
{
id: 22,
label: "K08",
poster: "k08",
title: "PAI Transfer: robot hands over milk tea",
prompt: "The robot hands the milk tea to the woman.",
frame: "0 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "08_pai_robot_hands_milk_tea_kling.mp4",
},
{
id: 23,
label: "K10",
poster: "k10",
title: "PAI Transfer: faster car and motorcycle",
prompt: "You are driving on the road; the red car and the motorcycle are moving faster than you.",
frame: "0 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "10_pai_faster_red_car_and_motorcycle_kling.mp4",
},
{
id: 24,
label: "K11",
poster: "k11",
title: "Panda-70M: driver turns around cones",
prompt: "The driver is turning around cones.",
frame: "7 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "11_panda_driver_turns_around_cones_kling.mp4",
},
{
id: 25,
label: "K13",
poster: "k13",
title: "Panda-70M: green player spikes",
prompt: "The player in green scores by spiking the volleyball.",
frame: "5 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "13_panda_green_player_spikes_volleyball_kling.mp4",
},
{
id: 33,
label: "K15",
poster: "k15",
title: "VGenST-Bench: cat crosses the billiard table",
prompt: "The camera remains stationary. Within the 5-second clip, the cat moves to the opposite side of the billiard table.",
frame: "2 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "15_vgenst_cat_opposite_side_of_billiard_table_kling.mp4",
},
{
id: 34,
label: "K16",
poster: "k16",
title: "VGenST-Bench: apples into and out of a box",
prompt: "The camera remains stationary. Within the 5-second clip, the person places the two apples into the box one after the other, then removes the first apple from the box.",
frame: "1 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "16_vgenst_two_apples_into_box_then_first_out_kling.mp4",
},
{
id: 35,
label: "K17",
poster: "k17",
title: "VGenST-Bench: dog crosses in front of e-bike",
prompt: "The camera follows the electric scooter. Within the 5-second clip, a dog emerges from behind the blue Tourist Information Kiosk and crosses the road, forcing the electric scooter to slow down and yield.",
frame: "0 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "17_vgenst_dog_crosses_and_ebike_yields_kling.mp4",
},
{
id: 36,
label: "K18",
poster: "k18",
title: "VGenST-Bench: book opposite cup on mantel",
prompt: "The camera remains stationary. Within the 5-second clip, the person moves the book onto the fireplace mantel and places it directly opposite the cup from the camera's perspective.",
frame: "1 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "18_vgenst_book_opposite_cup_on_mantel_kling.mp4",
},
{
id: 37,
label: "K19",
poster: "k19",
title: "VGenST-Bench: reveal three container contents",
prompt: "From left to right from the camera's perspective, the containers hold Black Ink, Gold Coins, and Rolled Parchment, respectively. Within the 5-second clip, the camera changes its viewing angle to clearly reveal the items inside all three containers.",
frame: "0 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "19_vgenst_reveal_contents_of_three_containers_kling.mp4",
},
{
id: 38,
label: "K20",
poster: "k20",
title: "VGenST-Bench: loop along the left wall",
prompt: "Within the 5-second clip, the camera travels along the left wall, completes a full loop, returns to its starting position, and finishes facing the same direction as at the beginning.",
frame: "0 s",
model: "Kling O3 Standard comparison",
family: "kling",
file: "20_vgenst_loop_along_left_wall_return_to_start_kling.mp4",
},
];
const gallery = document.querySelector("#gallery");
const search = document.querySelector("#search");
const filterButtons = [...document.querySelectorAll("[data-filter]")];
const emptyState = document.querySelector("#empty-state");
const viewer = document.querySelector("#viewer");
const player = document.querySelector("#video-player");
const viewerIndex = document.querySelector("#viewer-index");
const viewerTitle = document.querySelector("#viewer-title");
const viewerPrompt = document.querySelector("#viewer-prompt");
const viewerModel = document.querySelector("#viewer-model");
const viewerFrame = document.querySelector("#viewer-frame");
const closeViewer = document.querySelector("#close-viewer");
const previousVideo = document.querySelector("#previous-video");
const nextVideo = document.querySelector("#next-video");
let activeFilter = "all";
let visibleVideos = [...videos];
let currentIndex = 0;
function numberLabel(id) {
return String(id).padStart(2, "0");
}
function displayLabel(video) {
return video.label || numberLabel(video.id);
}
function posterKey(video) {
return video.poster || numberLabel(video.id);
}
function renderGallery() {
const query = search.value.trim().toLowerCase();
visibleVideos = videos.filter((video) => {
const modelMatch = activeFilter === "all" || video.family === activeFilter;
const text = `${video.title} ${video.prompt} ${video.model}`.toLowerCase();
return modelMatch && (!query || text.includes(query));
});
gallery.innerHTML = visibleVideos
.map(
(video, index) => `
<article class="video-card">
<button class="media-launch" type="button" data-video-index="${index}" aria-label="Play ${video.title} - ${video.model}">
<img src="posters/${posterKey(video)}.png" alt="" width="640" height="360" loading="lazy" />
<span class="card-number">${displayLabel(video)}</span>
<span class="play-mark" aria-hidden="true">▶</span>
</button>
<div class="card-content">
<div class="card-heading">
<h2>${video.title}</h2>
<span class="model-badge ${video.family}">${video.family === "seedance" ? "Seedance" : "Kling"}</span>
</div>
<p class="card-prompt">${video.prompt}</p>
<div class="card-meta">
<span>Frame ${video.frame}</span>
<span>5.04 s</span>
</div>
</div>
</article>
`,
)
.join("");
emptyState.hidden = visibleVideos.length !== 0;
}
function showVideo(index) {
if (!visibleVideos.length) return;
currentIndex = (index + visibleVideos.length) % visibleVideos.length;
const video = visibleVideos[currentIndex];
viewerIndex.textContent = `Output ${displayLabel(video)} of ${videos.length}`;
viewerTitle.textContent = video.title;
viewerPrompt.textContent = video.prompt;
viewerModel.textContent = video.model;
viewerFrame.textContent = video.frame;
player.poster = `posters/${posterKey(video)}.png`;
player.src = `videos/${video.file}`;
if (!viewer.open) viewer.showModal();
player.play().catch(() => {});
}
function hideViewer() {
player.pause();
player.removeAttribute("src");
player.load();
viewer.close();
}
gallery.addEventListener("click", (event) => {
const button = event.target.closest("[data-video-index]");
if (button) showVideo(Number(button.dataset.videoIndex));
});
search.addEventListener("input", renderGallery);
filterButtons.forEach((button) => {
button.addEventListener("click", () => {
activeFilter = button.dataset.filter;
filterButtons.forEach((candidate) => candidate.classList.toggle("active", candidate === button));
renderGallery();
});
});
closeViewer.addEventListener("click", hideViewer);
previousVideo.addEventListener("click", () => showVideo(currentIndex - 1));
nextVideo.addEventListener("click", () => showVideo(currentIndex + 1));
viewer.addEventListener("click", (event) => {
if (event.target === viewer) hideViewer();
});
viewer.addEventListener("cancel", (event) => {
event.preventDefault();
hideViewer();
});
document.addEventListener("keydown", (event) => {
if (!viewer.open) return;
if (event.key === "ArrowLeft") showVideo(currentIndex - 1);
if (event.key === "ArrowRight") showVideo(currentIndex + 1);
});
renderGallery();
|