Widget:SoundTest: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
var audioElement = document.createElement('audio'); | var audioElement = document.createElement('audio'); | ||
audioElement.setAttribute('src', 'http://static.wikidoc.org/6/62/01_Apex,_Normal_S1_S2,_Supine,_Bell.mp3'); | audioElement.setAttribute('src', 'http://static.wikidoc.org/6/62/01_Apex,_Normal_S1_S2,_Supine,_Bell.mp3'); | ||
audioElement.setAttribute('autoplay', 'autoplay'); | //audioElement.setAttribute('autoplay', 'autoplay'); | ||
//audioElement.load() | //audioElement.load() | ||
Line 14: | Line 14: | ||
$('.play').click(function() { | $('.play').click(function() { | ||
audioElement.play(); | |||
audioElement. | |||
}); | }); | ||