Created
August 22, 2013 21:19
-
-
Save jongalloway/5b97b130512315441f74 to your computer and use it in GitHub Desktop.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('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