-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabgt.html
30 lines (28 loc) · 1008 Bytes
/
abgt.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
<!doctype html>
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(function() {
$.get('http://pipes.yahoo.com/pipes/pipe.run?_id=a7d6b876ecda107e4939554ee897eb71&_render=json',function(data) {
$.each(data.value.items, function(){
var channel = this.channel;
var $div = $('<div></div>').appendTo('body');
$div.append('<h1>'+channel.title+'</h1>');
$.each(channel.item, function(){
$div.append('<a href="'+this.enclosure.url+'">'+this.title+' - '+this['itunes:subtitle']+' ('+this.description+')</a>');
});
});
});
});
</script>
<style type="text/css">
body { max-width: 200em; margin: 20px auto; }
a { font: .8em Arial,sans-serif; display: block; margin: 4px; text-decoration: none; }
a:hover { text-decoration: underline; }
body > div { height: 20em; overflow: auto; margin: 10px; padding: 10px; background: #f8f8f8; border: 1px solid #ccc; border-radius: 5px; }
</style>
</head>
<body>
</body>
</html>