Skip to content

Commit 5e66639

Browse files
xjxu21claude
andcommitted
Scrubber: drop the time readout, make switch marks obvious
Ticks go from 2px grey to 3px amber at 22px tall with a SWITCH label, so the command-change moments are easy to aim at. Removing the timecode lets the track span the full width. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6646db1 commit 5e66639

1 file changed

Lines changed: 8 additions & 21 deletions

File tree

docs/index.html

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,16 @@
296296
.ex-marks { position: absolute; inset: 0; pointer-events: none; }
297297
.ex-marks i {
298298
position: absolute; top: 50%; transform: translate(-50%, -50%);
299-
width: 2px; height: 14px; background: var(--ink-faint); border-radius: 1px; opacity: .75;
299+
width: 3px; height: 22px; background: #d97706; border-radius: 2px;
300+
box-shadow: 0 0 0 2px #fff;
300301
}
301-
.ex-time {
302-
flex: 0 0 auto; font-family: var(--mono); font-size: 12px; font-weight: 600;
303-
color: var(--ink-faint); min-width: 92px; text-align: right;
302+
.ex-marks i::after {
303+
content: "switch"; position: absolute; left: 50%; top: 100%;
304+
transform: translateX(-50%); margin-top: 3px;
305+
font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
306+
text-transform: uppercase; color: #d97706; white-space: nowrap;
304307
}
308+
.ex-ctrl { padding-bottom: 12px; }
305309

306310
/* ── Findings ────────────────────────────── */
307311
.findings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
@@ -462,7 +466,6 @@ <h3 class="ex-h" id="ex-action">Action Dynamics <span>Does the world go where it
462466
<div class="ex-ctrl">
463467
<button class="ex-play" type="button" aria-label="Pause"></button>
464468
<div class="ex-track"><input class="ex-seek" type="range" min="0" max="1000" value="0" step="1" aria-label="Seek"><div class="ex-marks"></div></div>
465-
<span class="ex-time">0:00 / 0:00</span>
466469
</div>
467470
</div>
468471
<div class="ex-panel" data-group="action" data-ex="2" data-switches="20">
@@ -476,7 +479,6 @@ <h3 class="ex-h" id="ex-action">Action Dynamics <span>Does the world go where it
476479
<div class="ex-ctrl">
477480
<button class="ex-play" type="button" aria-label="Pause"></button>
478481
<div class="ex-track"><input class="ex-seek" type="range" min="0" max="1000" value="0" step="1" aria-label="Seek"><div class="ex-marks"></div></div>
479-
<span class="ex-time">0:00 / 0:00</span>
480482
</div>
481483
</div>
482484
<div class="ex-panel" data-group="action" data-ex="3" data-switches="">
@@ -490,7 +492,6 @@ <h3 class="ex-h" id="ex-action">Action Dynamics <span>Does the world go where it
490492
<div class="ex-ctrl">
491493
<button class="ex-play" type="button" aria-label="Pause"></button>
492494
<div class="ex-track"><input class="ex-seek" type="range" min="0" max="1000" value="0" step="1" aria-label="Seek"><div class="ex-marks"></div></div>
493-
<span class="ex-time">0:00 / 0:00</span>
494495
</div>
495496
</div>
496497
<div class="ex-panel" data-group="action" data-ex="4" data-switches="20">
@@ -504,7 +505,6 @@ <h3 class="ex-h" id="ex-action">Action Dynamics <span>Does the world go where it
504505
<div class="ex-ctrl">
505506
<button class="ex-play" type="button" aria-label="Pause"></button>
506507
<div class="ex-track"><input class="ex-seek" type="range" min="0" max="1000" value="0" step="1" aria-label="Seek"><div class="ex-marks"></div></div>
507-
<span class="ex-time">0:00 / 0:00</span>
508508
</div>
509509
</div>
510510

@@ -525,7 +525,6 @@ <h3 class="ex-h" id="ex-memory">World Memory <span>Does the world it generated s
525525
<div class="ex-ctrl">
526526
<button class="ex-play" type="button" aria-label="Pause"></button>
527527
<div class="ex-track"><input class="ex-seek" type="range" min="0" max="1000" value="0" step="1" aria-label="Seek"><div class="ex-marks"></div></div>
528-
<span class="ex-time">0:00 / 0:00</span>
529528
</div>
530529
</div>
531530
<div class="ex-panel" data-group="memory" data-ex="6" data-switches="20">
@@ -539,7 +538,6 @@ <h3 class="ex-h" id="ex-memory">World Memory <span>Does the world it generated s
539538
<div class="ex-ctrl">
540539
<button class="ex-play" type="button" aria-label="Pause"></button>
541540
<div class="ex-track"><input class="ex-seek" type="range" min="0" max="1000" value="0" step="1" aria-label="Seek"><div class="ex-marks"></div></div>
542-
<span class="ex-time">0:00 / 0:00</span>
543541
</div>
544542
</div>
545543
<div class="ex-panel" data-group="memory" data-ex="7" data-switches="20">
@@ -553,7 +551,6 @@ <h3 class="ex-h" id="ex-memory">World Memory <span>Does the world it generated s
553551
<div class="ex-ctrl">
554552
<button class="ex-play" type="button" aria-label="Pause"></button>
555553
<div class="ex-track"><input class="ex-seek" type="range" min="0" max="1000" value="0" step="1" aria-label="Seek"><div class="ex-marks"></div></div>
556-
<span class="ex-time">0:00 / 0:00</span>
557554
</div>
558555
</div>
559556

@@ -573,7 +570,6 @@ <h3 class="ex-h" id="ex-visual">Visual Quality <span>How does each frame look?</
573570
<div class="ex-ctrl">
574571
<button class="ex-play" type="button" aria-label="Pause"></button>
575572
<div class="ex-track"><input class="ex-seek" type="range" min="0" max="1000" value="0" step="1" aria-label="Seek"><div class="ex-marks"></div></div>
576-
<span class="ex-time">0:00 / 0:00</span>
577573
</div>
578574
</div>
579575
<div class="ex-panel" data-group="visual" data-ex="9" data-switches="20">
@@ -587,7 +583,6 @@ <h3 class="ex-h" id="ex-visual">Visual Quality <span>How does each frame look?</
587583
<div class="ex-ctrl">
588584
<button class="ex-play" type="button" aria-label="Pause"></button>
589585
<div class="ex-track"><input class="ex-seek" type="range" min="0" max="1000" value="0" step="1" aria-label="Seek"><div class="ex-marks"></div></div>
590-
<span class="ex-time">0:00 / 0:00</span>
591586
</div>
592587
</div>
593588

@@ -932,19 +927,12 @@ <h2>World Model Arena</h2>
932927
// Qualitative examples: each pair gets one shared scrubber, and only the
933928
// visible pair is ever loaded or played.
934929
(function () {
935-
function fmt(t) {
936-
if (!isFinite(t)) return '0:00';
937-
var m = Math.floor(t / 60), s = Math.floor(t % 60);
938-
return m + ':' + (s < 10 ? '0' : '') + s;
939-
}
940-
941930
// ---- one controller per panel ----------------------------------------
942931
function wire(panel) {
943932
var vids = Array.prototype.slice.call(panel.querySelectorAll('video'));
944933
var btn = panel.querySelector('.ex-play');
945934
var seek = panel.querySelector('.ex-seek');
946935
var marks = panel.querySelector('.ex-marks');
947-
var label = panel.querySelector('.ex-time');
948936
var span = 0; // longest clip in the pair
949937
var scrubbing = false;
950938
var wasPlaying = false;
@@ -972,7 +960,6 @@ <h2>World Model Arena</h2>
972960
var pct = (t / span) * 100;
973961
seek.style.background =
974962
'linear-gradient(90deg, var(--accent) ' + pct + '%, var(--line) ' + pct + '%)';
975-
label.textContent = fmt(t) + ' / ' + fmt(span);
976963
}
977964

978965
function seekTo(t) {

0 commit comments

Comments
 (0)