Mercurial > dottes
diff dottes.html.tune @ 369:e5f59f0e7dd5
Add audio player to tune web page.
Add an <audio> tag to the bottom centre of the tune web page. Give it options for MP3 and
OGG files. Most browsers will play MP3, and the ones that won't (Firefox) will play OGG.
Since we now have to generate OGGs, add a download link as well.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Wed, 28 Aug 2013 11:54:45 +0100 (2013-08-28) |
parents | b233893b4c51 |
children | 0e8f58e33270 |
line wrap: on
line diff
--- a/dottes.html.tune Wed Aug 21 14:21:38 2013 +0100 +++ b/dottes.html.tune Wed Aug 28 11:54:45 2013 +0100 @@ -51,10 +51,18 @@ href="../@MASTERBOOKE@/@TUNE@.mid">MIDI</a></li> <li><a class="dottes-link-tune dottes-mp3" href="../@MASTERBOOKE@/@TUNE@.mp3">MP3</a></li> + <li><a class="dottes-link-tune dottes-ogg" + href="../@MASTERBOOKE@/@TUNE@.ogg">OGG</a></li> <li><a class="dottes-link-tune dottes-abc" href="@TUNE@.abc">ABC</a></li> </ul> </div> + <div class="dottes-tune-footer-centre"> + <audio controls> + <source src="@TUNE@.mp3" type="audio/mpeg" /> + <source src="@TUNE@.ogg" type="audio/ogg" /> + </audio> + </div> <div class="dottes-tune-footer-right"> Last changed @LASTCHANGED@ </div>