website
website copied to clipboard
feat: Convert show notes timestamps to audio player time links
Context
Bumped a couple of times in a situation where having the timestamps clickable would be really useful, so I decided to have a go at it.
What is done
All show notes word matching the format 1:00 or 01:00 are replaced by buttons.
A timestamp button, when clicked, sends its timestamp in seconds to the Player component, which will update the current time on the audio player.
What it looks like

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/wesbos/syntax/5sl2a0f7d ✅ Preview: https://syntax-git-fork-reobin-feat-timestamp-links.wesbos.vercel.app