]> id.pley.net Git - sound.git/commitdiff
Add a media picker.
authorJer Noble <jer.noble@apple.com>
Fri, 28 Mar 2014 15:59:33 +0000 (08:59 -0700)
committerJer Noble <jer.noble@apple.com>
Fri, 28 Mar 2014 15:59:33 +0000 (08:59 -0700)
sound.html

index 67b4059a7a4443e54a2dba2bd110d694558aae5e..1c133e57974fc348ac450bdc4f1f67722d89fcd8 100644 (file)
        </script>
 </head>
 <body onload="onload()">
-
+       <div>
+               <select onchange="audio.src = event.target.value">
+                       <option value="Coin.wav">Coin.wav</option>
+                       <option value="Overworld.mp3">Overworld.mp3</option>
+               </select>
+       </div>
        <div>
                <button onclick="audio.play()">play</button>
                <button onclick="audio.pause()">pause</button>