xiply

very simple js/html5 audio player
git clone https://git.ce9e.org/xiply.git

commit
34f4b2afbc9d6b14898b535dddfa1f4fbc8c0c85
parent
ef381d9899845863e38ad500f86d214c73b2b593
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2015-01-11 21:19
mv docs to README

Diffstat

A README 20 ++++++++++++++++++++
M xiply.js 19 -------------------

2 files changed, 20 insertions, 19 deletions


diff --git a/README b/README

@@ -0,0 +1,20 @@
   -1     1 xiply.js - very simple js/html5 audio player
   -1     2 
   -1     3 Example usage:
   -1     4 
   -1     5 	<div id="player">
   -1     6 		<p>This is a nice song: <a class="track" href="1.mp3">Track 1</a></p>
   -1     7 		<p>But this one is even nicer: <a class="track" href="2.mp3">Track 2</a></p>
   -1     8 	</div>
   -1     9 
   -1    10 	<script src="player.js"></script>
   -1    11 	<script>
   -1    12 		init_player(document.getElementById('player'));
   -1    13 	</script>
   -1    14 
   -1    15 xiply.js will add an audio element to the `player` div.
   -1    16 When you click a `track` it will start playing.
   -1    17 When it is finished playing it will automatically start the
   -1    18 next `track` from the same `player` div.
   -1    19 
   -1    20 xiply.js tries to be accessible and degrade gracefully

diff --git a/xiply.js b/xiply.js

@@ -2,25 +2,6 @@
    2     2  * xiply.js - very simple js/html5 audio player
    3     3  * (C) 2014 Tobias Bengfort <tobias.bengfort@posteo.de>
    4     4  * License: GPL-3+
    5    -1  *
    6    -1  * Example usage:
    7    -1  *
    8    -1  * <div id="player">
    9    -1  *   <p>This is a nice song: <a class="track" href="1.mp3">Track 1</a></p>
   10    -1  *   <p>But this one is even nicer: <a class="track" href="2.mp3">Track 2</a></p>
   11    -1  * </div>
   12    -1  *
   13    -1  * <script src="player.js"></script>
   14    -1  * <script>
   15    -1  *   init_player(document.getElementById('player'));
   16    -1  * </script>
   17    -1  *
   18    -1  * xiply.js will add an audio element to the `player` div.
   19    -1  * When you click a `track` it will start playing.
   20    -1  * When it is finished playing it will automatically start the
   21    -1  * next `track` from the same `player` div.
   22    -1  *
   23    -1  * xiply.js tries to be accessible and degrade gracefully
   24     5  */
   25     6 
   26     7 "use strict";