Instructions
- Have fun! It’s music ok? You can use any music that you want.
- To acquire 30 second samples and thumbnail images, you can search the Itunes library with this link below. .
- Include a HEAVY dose of Javascript
- The code below offers a starting point.
<button onclick="player('bb.m4a')">play song</button>
<div id="juke">
</div>
<script>
let juke = document.querySelector('#juke');
function player(tune){
juke.innerHTML = "<audio controls autoplay src="+tune+ " type='audio/m4a'></audio>";
}
</script>