Created
September 22, 2016 02:02
-
-
Save AlexWheeler/2e30e272bc2dfacb63711ffed3626111 to your computer and use it in GitHub Desktop.
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
<div id="player">Click ME FRITZ</div> | |
<script> | |
$(document).ready(function() { | |
player = new Audio("img/songs/test.mp3"); | |
$('#player').click(function(){ | |
player.play(); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment