Chapter picker: tap the chapter badge to jump to any chapter

The CH badge by the scrubber is now a button opening a list of every chapter
(number, title, start time); the playing one is highlighted and scrolled into
view, a tap seeks there (and resumes if paused). Works with shared chapters and
YouTube's.
This commit is contained in:
Jonathan Sykes
2026-10-03 07:50:15 +08:00
parent ea9e11d054
commit 5d94acf3f0
4 changed files with 62 additions and 2 deletions

View File

@@ -193,7 +193,7 @@
</div>
</div>
<span id="durTime" class="time">0:00</span>
<span id="chBadge" class="ch-badge" hidden></span>
<button id="chBadge" type="button" class="ch-badge" hidden title="Chapters — tap to jump" aria-haspopup="dialog"></button>
<button id="fsMini" class="fs-mini" type="button" title="Fullscreen" aria-label="Fullscreen"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5"/></svg></button>
</div>
<button id="waveLoud" class="wave-loud hidden" type="button">⚡ Jump to the loudest part</button>