This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
141 lines (133 loc) · 4.57 KB
/
example.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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Gusher example</title>
<link rel="stylesheet" href="styles/standard.css" />
<link rel="stylesheet" href="styles/example.css" />
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/ICanHaz.min.js"></script>
<script type="text/javascript" src="js/gusher.js"></script>
<script type="text/javascript" src="js/feeds.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// Render templates
DeliciousBookmarks.render();
DisqusComments.render();
FlickrPhotos.render();
GithubActivity.render();
GithubCommits.render();
GithubGists.render();
GoogleCalendarUpcoming.render();
GooglePlusActivity.render();
GoogleReaderStarred.render();
InstapaperStarred.render();
LastfmFavs.render();
StackOverflowAnswers.render();
TumblrPosts.render();
TwitterPosts.render(20);
VimeoActivity.render();
YouTubeFavorites.render();
});
</script>
</head>
<body>
<div id="container">
<div id="content"></div>
<div id="sidebar">
<h3 class="headlinec">Upcoming Events</h3>
<div id="events"></div>
<h3 class="headlinec">Feeds</h3>
<ul id="services" class="cleanlist"></ul>
</div>
</div>
</body>
</html>
<!-- TEMPLATES -->
<!-- These templates can also be in a separate file, see the bottom of
feeds.js for an example of how it works -->
<script id="blogTemplate" type="text/html">
<div class="article {{ type }}" timestamp="{{ timestamp }}">
<h4 class="title">{{{ title }}}</h4>
<div class="info">
<ul class="shy extra cleanlist">
<div class="triangle"></div>
<li><a href="{{ post_url }}">{{ type }}</a></li>
<li>Service: <img class="favicon" src="{{ icon }}" /> <a href="{{ service_url }}">{{ service }}</a></li>
<li>Replies: {{ replies }}</li>
<li>Likes: {{ likes }}</li>
</ul>
</div>
{{{ body }}}
{{{ comments }}}
</div>
</script>
<script id="eventTemplate" type="text/html">
<div class="article {{ type }}" timestamp="{{ timestamp }}">
<h4 class="title"><a href="{{ post_url }}">{{{ title }}}</a></h4>
<div class="info" style="background: url('{{ post_icon }}')">
<ul class="shy extra cleanlist">
<div class="triangle"></div>
<li><a href="{{ post_url }}">{{ type }}</a></li>
<li>Service: <img class="favicon" src="{{ icon }}" /> <a href="{{ service_url }}">{{ service }}</a></li>
<li>{{{ body }}}</li>
<li>{{{ comments }}}</li>
</ul>
</div>
</div>
</script>
<script id="quoteTemplate" type="text/html">
<div class="article {{ type }}" timestamp="{{ timestamp }}">
<h4 class="title"> <a href="{{ post_url }}">{{{ title }}}</a></h4>
<div class="info">
<ul class="shy extra cleanlist">
<div class="triangle"></div>
<li><a href="{{ post_url }}">{{ type }}</a></li>
<li>Service: <img class="favicon" title="{{ service }}" src="{{ icon }}" /> {{ service }}</li>
<li>Replies: {{ replies }}</li>
<li>Likes: {{ likes }}</li>
</ul>
</div>
<blockquote>{{{ body }}}</blockquote>
{{{ comments }}}
</div>
</script>
<script id="photoTemplate" type="text/html">
<div class="article {{ type }}" timestamp="{{ timestamp }}">
<h4 class="title">{{ title }}</h4>
<div class="info">
<ul class="shy extra cleanlist">
<div class="triangle"></div>
<li><a href="{{ post_url }}">{{ type }}</a></li>
<li>Service: <img class="favicon" title="{{ service }}" src="{{ icon }}" /> <a href="{{ user_url }}">{{ service }}</a></li>
<li>Replies: {{ replies }}</li>
<li>Likes: {{ likes }}</li>
</ul>
</div>
<a href="{{ post_url }}">
{{{ body }}}
</a>
{{{ comments }}}
</div>
</script>
<script id="linkTemplate" type="text/html">
<dl class="article {{ type }}" timestamp="{{ timestamp }}">
<dt class="title">
<a href="{{ post_url }}">{{ title }}</a>
</dt>
<dd>
{{{ body }}}
</dd>
<div class="info">
<ul class="shy extra cleanlist">
<div class="triangle"></div>
<li><a href="{{ post_url }}">{{ type }}</a></li>
<li>Service: <img class="favicon" src="{{ icon }}" /> <a href="{{ user_url }}">{{ service }}</a></li>
<li>Replies: {{ replies }}</li>
<li>Likes: {{ likes }}</li>
<li>{{{ comments }}}</li>
</ul>
</div>
</dl>
</script>
<!-- /TEMPLATES -->