-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
51 lines (45 loc) · 1.91 KB
/
index.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
<!DOCTYPE HTML>
<html>
<head>
<title>jQUery Mobile</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.ajax({
url: "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=" + encodeURIComponent("http://mejorando.la/feed"),
dataType: 'json',
success: function(data) {
var data_as_json = data.responseData.feed;
$("#_title").html(data_as_json.title);
$("#_desc").html(data_as_json.description);
var entries = data_as_json.entries;
$.each(entries, function(index, value) {
$("#_list").append("<li><a href=\"" + value.link + "\">" + value.title + "</a></li>");
});
$("#_loading").hide();
$("#_list").show();
$("#_list").listview("refresh");
}
});
});
</script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1 id="_title"></h1>
</div>
<div data-role="content">
<img src="loading.gif" id="_loading" />
<p id="_desc"></p>
<ul data-role="listview" data-inset="true" data-filter="true" id="_list"></ul>
</div>
<div data-role="footer">
<h4><a href="http://mejorando.la"><img src="http://mejorando.la/static/images/logos/mejorandola.png"/></a></h4>
</div>
</div>
</body>
</html>