-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathriver-meteor.html
More file actions
181 lines (163 loc) · 7.72 KB
/
Copy pathriver-meteor.html
File metadata and controls
181 lines (163 loc) · 7.72 KB
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<head>
<meta charset="utf-8">
<title>RIVER</title>
<link rel="icon" type="image/png" href="https://deny.io/river/river.png">
<link href='https://fonts.googleapis.com/css?family=PT+Sans|Oleo+Script:400,700|PT+Sans+Caption:400,700' rel='stylesheet' type='text/css'>
<script>
moment().format();
</script>
</head>
<body>
<div id="main">
<div id="river">
<input type="text" class="keyword-input" style="position:absolute; bottom: 0; left; 0; display:none;" value="#twitch">
<div class="keyword-button" style="position:absolute; top: 0; left: 0; border: 0; height: 10px; width: 10px; cursor: crosshair;" title="keyword"></div>
<div class="reset-button" style="position:absolute; top: 30px; left: 0; border: 0; height: 10px; width: 10px; cursor: crosshair;font-size:70%;" title="reset">reset</div>
<a href="https://github.com/warcode/river-meteor"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
{{> menubox}}
{{> msgbox}}
<div id="stream">
{{#unless currentUser}}
{{> welcome}}
{{/unless}}
{{#each tweets}}
{{#if isNotification}}
{{> notification}}
{{else}}
{{#if isRetweet}}
{{> retweet}}
{{else}}
{{> tweet}}
{{/if}}
{{/if}}
{{/each}}
</div>
</div>
</div>
</body>
<template name="menubox">
<div id="menubox">
<div id="control-container" class="control-box">
<div style="display:none">
{{#if currentUser}}
@{{currentUser.services.twitter.screenName}}
{{/if}}
</div>
<div id="write-control" class="write-button">
<a id="write-link" href="#">WRITE</a>
</div>
<div id="last-read-control" class="last-read-button">
<a href="#">LAST READ</a>
</div>
{{#unless currentUser}}
<div id="twitter_signin" class="river-login">
<input class="river-login-button" type="button" id="river-login-click" style="background:url(img/sign-in-with-twitter-gray.png) no-repeat; width: 100%; height: 100%; border: none;"/>
</div>
{{/unless}}
</div>
</div>
</template>
<template name="msgbox">
<div id="msgbox" class="hidden">
<div class="msgbox-username">{{currentUser.profile.name}} (@{{currentUser.services.twitter.screenName}})</div>
<fieldset>
<textarea name="status" id="status" rows="5" cols="40" class="" placeholder="Click here to write your message." autocomplete="off"></textarea>
<div class="characters">140</div>
</fieldset>
<div class="msgbox-sendbutton">
<a href="#" onclick="#">SEND</a>
</div>
</div>
</template>
<template name="debug">
<div>
{{asJSON}}
</div>
</template>
<template name="welcome">
<div id="welcome-123" class="tweet welcome">
<div id="content" class="content">
<img class="avatar" src="img/emi.png"/>
<div class="user">
EMI (<a href="https://twitter.com/EMIishuman" target="_blank">@EMIishuman</a>)
</div>
<div class="message">
<p>Hi!</p>
<p>I'm EMI and i'll tell you about River.</p>
<p>It's a Twitter client that utilizes the Streaming API. This means it gets and displays messages automatically when they are posted. No need to refresh.</p>
<p>River has existed since 2013, but was rewritten in meteor in June 2015 to simplify the development and easily allow for new features.</p>
<p>If you want to see the source code just click the banner in the top right corner.</p>
</div>
</div>
<div>
<abbr class="timeago" title="{{formatTwitterDate}}" data-livestamp="{{formatTwitterTimestamp}}"></abbr>
</div>
</div>
</template>
<template name="notification">
<div id="notification" class="tweet hidden">
<div id="content" class="content">
<img class="avatar" src="img/emi.png"/>
<div class="user">
EMI (<a href="https://twitter.com/EMIishuman" target="_blank">@EMIishuman</a>)
</div>
<div class="message">
{{Notification}}
</div>
</div>
<div>
<abbr class="timeago" title="{{formatTwitterDate}}" data-livestamp="{{formatTwitterTimestamp}}"></abbr>
</div>
</div>
</template>
<template name="tweet">
<div id="{{twitter_data.id_str}}" class="tweet {{#if embeddedImage}}embedded{{/if}} hidden">
<div id="content" class="content">
<img class="avatar" src="{{twitter_data.user.profile_image_url_https}}"/>
<div class="user">
{{twitter_data.user.name}} (<a href="https://twitter.com/{{twitter_data.user.screen_name}}" target="_blank">@{{twitter_data.user.screen_name}}</a>)
</div>
<div class="message {{#if isDeleted}}deleted{{/if}}">
{{{autolinkTwitterMessage}}}
</div>
</div>
<div>
<a href="https://twitter.com/{{twitter_data.user.screen_name}}/status/{{twitter_data.id_str}}" target="_blank" class="control open">open</a>
<a href="https://twitter.com/intent/tweet?in_reply_to={{twitter_data.id_str}}" class="control reply" target="_blank">reply</a>
<abbr class="timeago" title="{{formatTwitterDate}}" data-livestamp="{{formatTwitterTimestamp}}"></abbr>
</div>
{{#if embeddedImage}}
<div id="imageEmbedContainer" class="embedContainer">
<a target="_blank" href="{{embeddedImage}}">
<img src="{{embeddedImage}}" class="embedImage">
</a>
</div>
{{/if}}
</div>
</template>
<template name="retweet">
<div id="{{twitter_data.retweeted_status.id_str}}" class="tweet retweet {{#if embeddedImage}}embedded{{/if}} hidden">
<div id="content" class="content">
<img class="avatar" src="{{twitter_data.retweeted_status.user.profile_image_url_https}}"/>
<img class="retweeter" src="{{twitter_data.user.profile_image_url_https}}"/>
<div class="user-retweet">
<img src="img/retweet.png"> {{twitter_data.retweeted_status.user.name}} (<a href="https://twitter.com/{{twitter_data.retweeted_status.user.screen_name}}" target="_blank">@{{twitter_data.retweeted_status.user.screen_name}}</a>) by <a href="https://twitter.com/{{twitter_data.user.screen_name}}" target="_blank">@{{twitter_data.user.screen_name}}</a>
</div>
<div class="message {{#if isDeleted}}deleted{{/if}}">
{{{autolinkTwitterMessage}}}
</div>
</div>
<div>
<a href="https://twitter.com/{{twitter_data.user.screen_name}}/status/{{twitter_data.id_str}}" target="_blank" class="control open">open</a>
<a href="https://twitter.com/intent/tweet?in_reply_to={{twitter_data.id_str}}" class="control reply" target="_blank">reply</a>
<abbr class="timeago" title="{{formatTwitterDate}}" data-livestamp="{{formatTwitterTimestamp}}"></abbr>
</div>
{{#if embeddedImage}}
<div id="imageEmbedContainer" class="embedContainer">
<a target="_blank" href="{{embeddedImage}}">
<img src="{{embeddedImage}}" class="embedImage">
</a>
</div>
{{/if}}
</div>
</template>