tape deck

this is a script for easy playlist playback. i use it all over the site — you define a playlist and it populates an element with a play button, a skip button, and a song select. it's on my blog for example

instructions

here's the script. make a copy for yourself

first, change the dir field to the location tapedecks should fetch audio files from. (by default, it's set to my filegarden cause that's where i store mine.)

second, add a tapedeck to your page:


<script src="tapedeck.js"></script>
<tape-deck shuffle list="
	track 1
	track 2
	track 3
"><tape-deck>

here's all valid attributes:

the skip button is omitted if there's only one track

ok have fun