Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Overly simple approach that adds a play indicator (▶) to page title when audio is playing. Doesn't work well if you've got multiple audio elements.
$('audio').on("pause ended", function(){document.title = document.title.replace("\u25B6","")});
$('audio').on("play", function(){document.title = "\u25B6" + document.title.replace("\u25B6","")});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.