-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (63 loc) · 2 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
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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>FEED ME!</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="scripts/feeds.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function($) {
var flickr = "1447107@N23";
var twitter = "verdensskove"
feeds.get('flickr', flickr, function(data) {
$.each(data.data.items, function(key, value) {
if(key === 4) {
return false;
}
var tpl = template.render(template.flickr, value);
$(tpl).appendTo('#flickr .content');
});
}, 'group');
feeds.get('twitter', 'ranza', function(data) {
$.each(data.data, function(key, value) {
if(key === 4) {
return false;
}
var tpl = template.render(template.twitter, value);
$(tpl).appendTo('#twitter .content');
});
});
});
</script>
<style type="text/css" media="screen">
body {
background-color: #ffffff;
}
h1 {
color: #FFFBA3;
}
#flickr {
background-color: #FF8383;
}
#twitter {
background-color: #00DEEF;
}
#twitter .tweet {
padding: 10px;
}
</style>
</head>
<body>
<div id="container">
<div id="flickr">
<h1>Flickr</h1>
<div class="content"></div>
</div>
<div id="twitter">
<h1>Twitter</h1>
<div class="content"></div>
</div>
</div>
<div class="loader">A loader placeholder</div>
</body>
</html>