Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HTML5 Audio をタッチイベントで再生する
hoge.addEventListener('touchstart', function(){
var audio = new Audio ('foo.wav');
audio.play();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment