-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.html
71 lines (48 loc) · 1.77 KB
/
feed.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
<!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>
<script type="text/javascript" src="./jfeed/jquery.js"></script>
<script type="text/javascript" src="./jfeed/dist/jquery.jfeed.js"></script>
<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 < 5; i++) {
var item = feed.items[i];
html += '<h2>'
+ '<a href="'
+ item.link
+ '">'
+ item.title
+ '</a>'
+ '</h2>';
html += '<div class="updated">'
+ item.updated
+ '</div>';
html += '<div class="description">'
+ item.description
+ '</div>';
html += '<div id="audio-container"><audio controls="" preload="none" width="640" height="30" src="'
+ item.enclosure
+ '" type="audio/mpeg"></audio></div>';
html += '<div class="enclosurelink" ><a href="'
+ item.enclosure
+ '">'
+ "Télécharger l'épisode"
+ '</a></div>';
}
jQuery('#result').append(html);
}
});
});
</script>
</head>
<body>
<div id="result" />
</body>
</html>