improved L&F
[radio.git] / html / index.html
1 <!DOCTYPE html>
2 <html>
3
4 <head>
5         <meta charset="UTF-8" />
6
7         <link rel="stylesheet" type="text/css" media="all" href="style.css" />
8
9         <script type="text/javascript"
10                 language="javascript"
11                 src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js">
12         </script>
13
14         <link href="skin/blue.monday/css/jplayer.blue.monday.min.css" rel="stylesheet" type="text/css" />
15         <script type="text/javascript" src="js/jquery.jplayer.min.js"></script>
16
17         <script>
18
19         function radioTitle() {
20                 console.log("radioTitle");
21                 var url = 'http://radio.wpitchoune.net:8080/current.xsl';
22                 var mountpoint = '/mp3';
23
24                 $.ajax({  type: 'GET',
25                 url: url,
26                 async: true,
27                 jsonpCallback: 'parseMusic',
28                 contentType: "application/json",
29                 dataType: 'jsonp',
30                 success: function (json) {
31                         $('#track-title').text(json[mountpoint].title);
32                 }, error: function (e) {    console.log(e.message);
33                 }
34                 });
35         }
36
37 $(document).ready(function(){
38         setTimeout(function () {radioTitle();}, 2000);
39         setInterval(function () {radioTitle();}, 10000);
40
41         var stream = {
42                 title: "Radio Proxy",
43                 mp3: "http://radio.wpitchoune.net:8080/mp3"
44         };
45
46         $("#jquery_jplayer_1").jPlayer({
47                 ready: function (event) {
48                         ready = true;
49                         $(this).jPlayer("setMedia", stream);
50                 },
51                 pause: function() {
52                         $(this).jPlayer("clearMedia");
53                 },
54                 error: function(event) {
55                         if(ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) {
56                                 $(this).jPlayer("setMedia", stream).jPlayer("play");
57                         }
58                 },
59                 swfPath: "js",
60                 supplied: "mp3",
61                 preload: "none",
62                 wmode: "window",
63                 useStateClassSkin: true,
64                 autoBlur: false,
65                 keyEnabled: true
66         });
67
68 });
69         </script>
70
71         <title>Proxy Radio</title>
72 </head>
73
74 <body>
75         <nav>
76                 <ul>
77                         <li class="selected">Proxy Radio</li>
78                         <li><a href="last_songs.html">Played songs</a></li>
79                         <li><a href="songs.html">All songs</a></li>
80                 </ul>
81         </nav>
82
83         <section>
84
85
86 <div id="jquery_jplayer_1" class="jp-jplayer"></div>
87 <div id="jp_container_1" class="jp-audio" role="application" aria-label="media player">
88         <div class="jp-type-single">
89                 <div class="jp-gui jp-interface">
90                         <div class="jp-controls">
91                                 <button class="jp-play" role="button" tabindex="0">play</button>
92                                 <button class="jp-stop" role="button" tabindex="0">stop</button>
93                         </div>
94                         <div class="jp-progress">
95                                 <div class="jp-seek-bar">
96                                         <div class="jp-play-bar"></div>
97                                 </div>
98                         </div>
99                         <div class="jp-volume-controls">
100                                 <button class="jp-mute" role="button" tabindex="0">mute</button>
101                                 <button class="jp-volume-max" role="button" tabindex="0">max volume</button>
102                                 <div class="jp-volume-bar">
103                                         <div class="jp-volume-bar-value"></div>
104                                 </div>
105                         </div>
106                         <div class="jp-time-holder">
107                                 <div class="jp-current-time" role="timer" aria-label="time">&nbsp;</div>
108                                 <div class="jp-duration" role="timer" aria-label="duration">&nbsp;</div>
109                                 <div class="jp-toggles">
110                                         <button class="jp-repeat" role="button" tabindex="0">repeat</button>
111                                 </div>
112                         </div>
113                 </div>
114                 <div class="jp-details">
115                         <div id="track-title" class="jp-title" aria-label="title">&nbsp;</div>
116                 </div>
117                 <div class="jp-no-solution">
118                         <span>Update Required</span>
119                         To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
120                 </div>
121         </div>
122 </div>
123
124                 <p>All songs have been downloaded from the <a href="http://freemusicarchive.org/">Free Music Archive</a> and as far as I know can be shared on this stream. Feel free to send me an email to <a href="mailto:proxyradio@wpitchoune.net">proxyradio@wpitchoune.net</a>                        if you have a concern about a song. Read the list of
125                         <a href="songs.html">songs</a> with credits and licensing information. No changes have been made to the songs.
126                 </p>
127         </section>
128
129         <footer>
130                 <ul>
131                         <li><a href="mailto:proxyradio@wpitchoune.net">Contact</a></li>
132                 </ul>
133         </footer>
134 </body>
135
136 </html>