Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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