Skip to content

Instantly share code, notes, and snippets.

@dandean
Forked from douglasZwick/mutebutton.js
Created April 8, 2011 22:51
Show Gist options
  • Save dandean/910892 to your computer and use it in GitHub Desktop.
Save dandean/910892 to your computer and use it in GitHub Desktop.
var TitleWrapper = function()
{
/* .
. Blah blah blah
. */
var onMute = function()
{
introMusicAudio.toggleMute();
loopMusicAudio.toggleMute();
cursor1Audio.toggleMute();
cursor2Audio.toggleMute();
selectionAudio.toggleMute();
$('mutebutton').toggleClass('muted');
soundManager.play('cursor2');
}
document.getElementById("mutebutton").onclick = onMute;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment