-
Notifications
You must be signed in to change notification settings - Fork 0
/
playlist.html
195 lines (133 loc) · 5.23 KB
/
playlist.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<!-- Nécéssaire à l'interprétation du flux RSS -->
<script type="text/javascript" src="./jfeed/jquery.js"></script>
<script type="text/javascript" src="./jfeed/dist/jquery.jfeed.js"></script>
<!-- CHANGER L'ADRESSE DU FLUX CI-DESSOUS: -->
<!-- Changer i<5 avec una utre chiffre que 5 pour avoir + d'éléments mais ATTENTION, il faudra changer la hauteur de la playlist dans ./soundmanager2/bar-ui.css -->
<script type="text/javascript">
jQuery(function() {
jQuery.getFeed({
url: 'jfeed/proxy.php?url=http://p2p.podcloud.fr/rss',
success: function(feed) {
var html = '';
for(var i = 0; i < feed.items.length && i < 15; i++) {
var item = feed.items[i];
html += '<li><div class="sm2-row"><div class="sm2-col sm2-wide"> <a href="'
+ item.enclosure
+ '">';
html += item.title
+ '</a></div>'
html += '<div class="sm2-col"><a href="'
+ item.link
+ '" target="_blank" title="Voir l\'article" ><img src="./image/info.png" style="width:13px;height:13px;padding-right:4px;"></a></div>';
html += '<div class="sm2-col"><a href="'
+ item.enclosure
+ '" target="_blank" title="Télécharger" ><img src="./image/download.png" style="width:13px;height:13px;padding-right:4px;"></a></div></div></li>';
}
jQuery('#result').append(html);
}
});
});
</script>
<!-- Nécéssaire à la lecture audio -->
<script src="./soundmanager2/soundmanager2.js"></script>
<script src="./soundmanager2/bar-ui.js"></script>
<link rel="stylesheet" href="./soundmanager2/bar-ui.css" />
<script>
soundManager.setup({
// where to find flash audio SWFs, as needed
url: './soundmanager2/swf/',
onready: function() {
// SM2 is ready to play audio!
}
});
</script>
</head>
<body>
<!-- player -->
<div class="sm2-bar-ui playlist-open">
<div class="bd sm2-main-controls">
<div class="sm2-inline-texture"></div>
<div class="sm2-inline-gradient"></div>
<div class="sm2-inline-element sm2-button-element">
<div class="sm2-button-bd">
<a href="#play" class="sm2-inline-button play-pause">Play / pause</a>
</div>
</div>
<div class="sm2-inline-element sm2-inline-status">
<div class="sm2-playlist">
<div class="sm2-playlist-target">
<!-- playlist <ul> + <li> markup will be injected here -->
<!-- if you want default / non-JS content, you can put that here. -->
<noscript><p>JavaScript is required.</p></noscript>
</div>
</div>
<div class="sm2-progress">
<div class="sm2-row">
<div class="sm2-inline-time">0:00</div>
<div class="sm2-progress-bd">
<div class="sm2-progress-track">
<div class="sm2-progress-bar"></div>
<div class="sm2-progress-ball"><div class="icon-overlay"></div></div>
</div>
</div>
<div class="sm2-inline-duration">0:00</div>
</div>
</div>
</div>
<div class="sm2-inline-element sm2-button-element sm2-volume">
<div class="sm2-button-bd">
<span class="sm2-inline-button sm2-volume-control volume-shade"></span>
<a href="#volume" class="sm2-inline-button sm2-volume-control">volume</a>
</div>
</div>
<!--BOUTON OUVERTURE/FERMETURE-->
<div class="sm2-inline-element sm2-button-element sm2-menu">
<div class="sm2-button-bd">
<a href="#menu" class="sm2-inline-button menu">menu</a>
</div>
</div>
</div>
<!--tiroir de la playlist-->
<div class="bd sm2-playlist-drawer sm2-element">
<div class="sm2-inline-texture">
<div class="sm2-box-shadow"></div>
</div>
<!-- playlist -->
<div class="sm2-playlist-wrapper">
<ul class="sm2-playlist-bd">
<!-- arrivée ci-dessous du flux RSS traité par le JS -->
<div id="result" />
<!-- arrivée ci-dessus du flux RSS traité par le JS -->
</ul>
</div>
<div class="sm2-extra-controls">
<div class="bd">
<div class="sm2-inline-element sm2-button-element">
<a href="#prev" title="Previous" class="sm2-inline-button previous">< previous</a>
</div>
<div class="sm2-inline-element sm2-button-element">
<a href="#next" title="Next" class="sm2-inline-button next">> next</a>
</div>
<!-- controles supplémentaires -->
<!--
<div class="sm2-inline-element sm2-button-element disabled">
<div class="sm2-button-bd">
<a href="#repeat" title="Repeat playlist" class="sm2-inline-button repeat">∞ repeat</a>
</div>
</div>
<div class="sm2-inline-element sm2-button-element disabled">
<a href="#shuffle" title="Shuffle" class="sm2-inline-button shuffle">shuffle</a>
</div>
-->
</div>
</div>
</div>
</div>
</body>
</html>