Create a gist now

Instantly share code, notes, and snippets.

// Slightly rewritten code from here:
// http://blog.mozilla.com/webdev/2009/08/06/html5-audio-soundboard/
$("audio").removeAttr("controls").each(function(i, audio) {
$('<button>')
.text( $(this).attr("title") )
.click(function() {
audio.play();
))
.appendTo("#doc");
});
@jlis

There's a small failure in line #8. You have to replace the first brace with a curly one :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment