forked from mrzeta/cuteness.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
255 lines (232 loc) · 11.8 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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html>
<head>
<!-- App stuff -->
<link href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="app.css" />
<link rel="apple-touch-icon-precomposed" href="images/57.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/72.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/114.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/144.png" />
</head>
<body>
<div class="splash"></div>
<div id="drawer" data-role="drawer" data-views="['list', 'account', 'settings', 'notifications', 'feedback']">
<ul data-role="listview" data-style="inset" data-type="group" data-click="showAbout">
<li>
Narwhal Bacon
<ul>
<li><a href="#list">Home</a></li>
<li><a href="#account">My account</a></li>
</ul>
</li>
<li>
<ul>
<li><a href="#settings">Settings</a></li>
<li><a href="#notifications">Notifications</a></li>
</ul>
</li>
<li>
<ul>
<li><a href="#feedback">Feedback</a></li>
<li><a>About</a></li>
</ul>
</li>
</ul>
</div>
<div data-role="layout" data-id="default">
<header data-role="header">
<div data-role="navbar">
<a data-role="button" data-rel="drawer" href="#drawer" data-icon="drawer-button" data-align="left"></a>
<span data-role="view-title"></span>
</div>
</header>
</div>
<div data-role="view" data-title="Cuteness." id="list" data-show="showApp" data-layout="default">
<header data-role="header">
<div data-role="navbar">
<a data-role="button" data-rel="drawer" href="#drawer" data-icon="drawer-button" data-align="left"></a>
<span data-role="view-title"></span>
<a href="#canvas" data-role="button" data-icon="canvas" data-transition="slide" data-align="right"></a>
</div>
</header>
<ul data-role="listview" data-template="item-template" data-source="awwDataSource" data-load-more="true" id="aww" data-pull-to-refresh="true" data-click="showDetail">
</ul>
</div>
<div data-role="view" data-title="Narwhal" id="account" data-layout="default">
<ul data-role="listview" data-type="group" data-style="inset">
<li>
Overview
<ul>
<li>Username <span class="account-info">Narwhal</span></li>
<li>Account Age <span class="account-info">432 days</span></li>
</ul>
</li>
<li>
Karma
<ul>
<li>Link Karma <span class="account-info">54</span></li>
<li>Comment Karma <span class="account-info">123</span></li>
</ul>
</li>
</ul>
</div>
<div data-role="view" data-title="Notifications" id="notifications" data-layout="default">
<ul data-role="listview" data-type="group" data-style="inset">
<li>
Content
<ul>
<li>I receive a message <input type="checkbox" data-role="switch" checked="checked" /></li>
<li>New item is posted <input type="checkbox" data-role="switch" /></li>
<li>New comment is posted <input type="checkbox" data-role="switch" checked="checked" /></li>
</ul>
</li>
<li>
Karma
<ul>
<li>Someone upvotes me <input type="checkbox" data-role="switch" /></li>
<li>Someone downvotes me <input type="checkbox" checked="checked" data-role="switch" /></li>
</ul>
</li>
</ul>
</div>
<div data-role="view" data-title="Feedback" id="feedback" data-layout="default">
<ul data-role="listview" data-style="inset">
<li>
<textarea placeholder="I need help with cat browsing">
</textarea>
</li>
</ul>
<a data-role="button">Submit</a>
</div>
<div data-role="view" data-title="Notifications" id="notifications" data-layout="default">
<ul data-role="listview" data-type="group" data-style="inset">
<li>
Content
<ul>
<li>I receive a message <input type="checkbox" data-role="switch" checked="checked" /></li>
<li>New item is posted <input type="checkbox" data-role="switch" /></li>
<li>New comment is posted <input type="checkbox" data-role="switch" checked="checked" /></li>
</ul>
</li>
<li>
Karma
<ul>
<li>Someone upvotes me <input type="checkbox" data-role="switch" /></li>
<li>Someone downvotes me <input type="checkbox" checked="checked" data-role="switch" /></li>
</ul>
</li>
</ul>
</div>
<div data-role="view" data-title="Settings" id="settings" data-layout="default">
<ul data-role="listview" data-type="group" data-style="inset">
<li>
Behavior
<ul>
<li><label>Auto-load Posts While Scrolling <input type="checkbox" /></label></li>
<li><label>Enable Tilt Scrolling <input type="checkbox" checked="checked" /></label></li>
<li><label>Reverse Tilt-Scroll Direction <input type="checkbox" checked="checked" /></label></li>
<li><label>Allow rotation <input type="checkbox" /></label></li>
</ul>
</li>
<li>
Posts
<ul>
<li><label>Show Voting Arrows <input type="checkbox" /></label></li>
<li><label>Show Thumbnails <input type="checkbox" checked="checked" /></label></li>
<li><label>Blog post titles <input type="checkbox" checked="checked" /></label></li>
<li><label>Compact <input type="checkbox" /></label></li>
</ul>
</li>
<li>
Comments
<ul>
<li><label>Show Voting Arrows <input type="checkbox" /></label></li>
<li><label>Show Thumbnails <input type="checkbox" checked="checked" /></label></li>
<li><label>Blog post titles <input type="checkbox" checked="checked" /></label></li>
<li><label>Compact <input type="checkbox" /></label></li>
<li><label>Auto load image for image links <input type="checkbox" /></label></li>
</ul>
</li>
</ul>
</div>
<div data-role="view" id="about" class="splash" data-transition="fadeIn" data-stretch="true">
<div data-role="touch" data-tap="goBack" class="touchTarget">
<p> Cuteness is a proof of concept mobile web app.</p>
</div>
</div>
<div data-role="view" id="detail" data-transition="slide" data-after-show="renderDetail" data-title="" data-hide="resetDetail" data-stretch="true">
<header data-role="header">
<div data-role="navbar">
<a data-role="backbutton" data-align="left" href="#list">Back</a>
<span data-role="view-title"> </span>
</div>
</header>
<div class="detail-image" data-role="scroller" data-zoom="true"><img /></div>
<div class="detail-text"></div>
</div>
<div data-role="view" id="canvas" data-stretch="true" data-title="Canvas View" data-init="canvasInit" data-show="canvasShow">
<header data-role="header">
<div data-role="navbar">
<a data-role="backbutton" href="#list" data-transition="slide:left reverse" data-icon="list-icon" data-align="left"></a>
<span data-role="view-title"> </span>
</div>
</header>
<div id="canvas-scrollview"></div>
</div>
<div id="canvas-detail" data-role="view" data-transition="overlay:up" data-stretch="true" data-init="canvasDetailInit" data-show="canvasDetailShow">
<header data-role="header">
<div data-role="navbar">
<a data-role="button" data-click="goToCanvas" data-align="left">Canvas</a>
<span data-role="view-title"> </span>
</div>
</header>
<div id="detail-scrollview"></div>
<div class="title-bar">
<p><span></span></p>
</div>
</div>
<script type="text/x-kendo-template" id="item-template">
<div class="item">
<div class="item-thumb">
<img class='loading-thumb' src='#: createThumbnail(data.url) #' />
</div>
<div class="item-summary">
<h3>#: data.title #</h3>
<p> #: data.subreddit # | #: data.ups - data.downs # | #: kendo.toString(new Date(data.created_utc * 1000), 'HH:mm') # | <a data-rel="external" href="http://reddit.com/#: data.permalink #" target="_blank">#= data.num_comments # comments on Reddit</a></p>
</div>
</div>
</script>
<script type="text/x-kendo-template" id="canvas-template">
<div data-uid="#: data[0].uid #" data-offset="#: calculateOffset(data[0]) #" class="tile">
#= createImage(data[0].data) #
</div>
<div data-uid="#: data[1].uid #" data-offset="#: calculateOffset(data[1]) #" class="tile">
#= createImage(data[1].data) #
</div>
<div data-uid="#: data[2].uid #" data-offset="#: calculateOffset(data[2]) #" class="tile">
#= createImage(data[2].data) #
</div>
<div data-uid="#: data[3].uid #" data-offset="#: calculateOffset(data[3]) #" class="tile">
#= createImage(data[3].data) #
</div>
<div data-uid="#: data[4].uid #" data-offset="#: calculateOffset(data[4]) #" class="tile">
#= createImage(data[4].data) #
</div>
<div data-uid="#: data[5].uid #" data-offset="#: calculateOffset(data[5]) #" class="tile">
#= createImage(data[5].data) #
</div>
</script>
<script type="text/x-kendo-template" id="empty-template">
<div style="background-color: \\#FF0000;">empty</div>
</script>
<script id="canvas-detail-tmp" type="text/x-kendo-template">
<div data-uid='#:uid#' class='detailed-img'>
#= createTile(data) #
</div>
</script>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://cdn.kendostatic.com/2013.3.1119/js/kendo.all.min.js"></script>
<script src="app.js"></script>
</body>
</html>