Skip to content

Instantly share code, notes, and snippets.

@Xjs
Created April 21, 2011 15:24
Show Gist options
  • Save Xjs/934766 to your computer and use it in GitHub Desktop.
Save Xjs/934766 to your computer and use it in GitHub Desktop.
volumeDown
currentVolume = 50;
function volumeDown() {
currentVolume = currentVolume + 15
if (currentVolume >= 150) {
soundManager.setVolume('loop',200);
setSiteOnFire = setInterval( blowUpBackground, 150);
$("#volume").hide();
} else {
soundManager.setVolume('loop',currentVolume);
}
}
$("#volume").click(function() {
if (currentVolume == 95) {
$(this).text("OMG!!!!")
} else if (currentVolume == 110) {
$(this).text("OMG!!!!!!!!!!!!")
} else if (currentVolume == 125) {
$(this).text("OMG!!!!!!!!!!!!!!!!!!!!!!")
}
volumeDown();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment