Skip to content

Instantly share code, notes, and snippets.

@jongalloway jongalloway/DoesNotWork.js Secret
Created Aug 22, 2013

Embed
What would you like to do?
This just doesn't work because you can't select on properties, just attributes.
$('audio').on("play pause ended", function(event){
if($('audio[paused="false"]')[0]){
document.title = document.title.replace("\u25B6","");
}else{
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.