Created
September 22, 2016 01:27
-
-
Save AlexWheeler/e65088e50f50cd9866ee8addd21fe1cf 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> | |
var player = new Audio("/img/songs/test.mp3"); // or wherever this is being served from | |
$(document).ready(function() { | |
$('#player').click(function(){ | |
player.play(); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment