This repository has been archived by the owner on Aug 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
375 lines (346 loc) · 21.4 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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hack Club Shipit!</title>
<link rel="stylesheet" href="asset/dist/shipit.min.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="icons/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="icons/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="icons/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="icons/apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="icons/apple-touch-icon-60x60.png" />
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="icons/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="icons/apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="icons/apple-touch-icon-152x152.png" />
<link rel="icon" type="image/png" href="icons/favicon-196x196.png" sizes="196x196" />
<link rel="icon" type="image/png" href="icons/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/png" href="icons/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="icons/favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="icons/favicon-128.png" sizes="128x128" />
<meta name="application-name" content=" " />
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content="icons/mstile-144x144.png" />
<meta name="msapplication-square70x70logo" content="icons/mstile-70x70.png" />
<meta name="msapplication-square150x150logo" content="icons/mstile-150x150.png" />
<meta name="msapplication-wide310x150logo" content="icons/mstile-310x150.png" />
<meta name="msapplication-square310x310logo" content="icons/mstile-310x310.png" />
<script>
//Google Analytics Code
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-103577028-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<main>
<nav class="navbar">
<div class="is-pulled-left navbar-brand">
<a id="nav-name" class="navbar-item" href="https://shipit.hackclub.com">
<img src="https://cdn.rawgit.com/hackclub/hackclub/1a1b9a06/internals/logos/hack_club_full_white.svg" width="112" height="28">  
<span class="is-size-4">Shipit</span>
</a>
</div>
<div class="is-pulled-right" id="account-button">
<div id="logged-out-user" class="navbar-item">
<a class="button is-light is-outlined" onclick="githubSignin()">
<i class="fa fa-sign-in"></i> Not Logged In</a>
</div>
<div id="logged-in-user" class="navbar-item" style="display: none">
<a class="button is-light is-outlined">
<img id="useravatar">
<span id="userName">Undefined</span>
</a>
<div class="navbar-dropdown" id="account-menu">
<a class="navbar-item" onclick="showShippedPage()">
<i class="fa fa-user"></i> My Projects</a>
<a class="navbar-item" onclick="showUpvotedPage()">
<i class="fa fa-heart"></i> My Upvotes</a>
<a class="navbar-item" id="gh-logout" onclick="githubSignout()">
<i class="fa fa-sign-out"></i> Sign out</a>
</div>
</div>
</div>
</nav>
<div id="main">
<section class="hero is-danger is-small has-text-centered">
<div class="hero-body">
<div class="container">
<h1 class="title">
<span id="fname-header">S</span>ee what other hackers like you are building.
</h1>
<h2 class="subtitle">
Hack Club members learn through the process of making. Join the maker's squad!
</h2>
</div>
<br>
<a class="button is-large is-light wabble" id="launch">
<i class="fa fa-rocket"></i> Ship My Project</a>
</div>
</section>
<div class="modal" id="login-modal">
<div class="modal-background"></div>
<div class="modal-content">
<div class="card">
<header class="card-header">
<p class="card-header-title">
Please log in to continue
</p>
<a class="button is-link card-header-icon unlaunch">
<i class="fa fa-close"></i>
</a>
</header>
<div class="card-content">
<div class="content">
<p>Please log in with your GitHub account! We will create your unique user identity once you
are logged into GitHub. Your posted projects will also be associated with your own account.
Don't worry, we won't hack into your GitHub account.
<i>Right?</i>
</p>
<div class="has-text-centered">
<a class="button is-dark wabble" id="gh-login-forced" href="#" onclick="githubSignin()">
<span class="icon">
<i class="fa fa-github"></i>
</span>
<span>Sign In</span>
</a>
</div>
<br />
<p>If you do not have a GitHub account yet, which we will then blame your club leader, please
<a href="https://github.com/join" target="_blank">create one now</a>!</p>
</div>
</div>
</div>
</div>
</div>
<section class="shipped">
<div class="container" id="shipped-placeholder">
<div class="content has-text-centered" style="padding: 81px;">
<div class="spinner"></div>
</div>
</div>
<!-- Featured Project -->
<div class="container" id="featured">
<script id="featured-templ" type="text/x-handlebars-template">
<div class="container featured-project">
<div class="card" id="featured-project{{uid}}">
<header class="card-header gradient">
<p class="card-header-title">
@{{author}}
<small> - {{timestamp}}</small>
</p>
</header>
<div class="card-content shipment">
<div class="content">
<h3 class="title is-4">{{name}}
<span class="tag gradient is-pulled-right">Featured</span>
</h3>
<br> {{desc}}
<br>
<br>
<article class="message is-info">
<div class="message-body">
<strong>Editor's Note:</strong> {{ednote}}
</div>
</article>
<p>
<a href="{{link}}?ref=hackclub-shipit">{{link}}</a>
</p>
</div>
</div>
<footer class="card-footer">
<a class="card-footer-item" href="{{link}}?ref=hackclub-shipit">
<i class="fa fa-eye"></i>
<span class="is-hidden-mobile"> Visit</span>
</a>
<a class="card-footer-item" href="{{code}}?ref=hackclub-shipit">
<i class="fa fa-code"></i>
<span class="is-hidden-mobile"> Code</span>
</a>
<a class="card-footer-item" id='{{uid}}' onclick="startUpVote('{{uid}}')">
<i class="fa fa-thumbs-up"></i>
<span class="is-hidden-mobile"> Upvote</span>
<span id='num{{uid}}' class="tag is-light">{{upvote}}</span>
</a>
<a class="card-footer-item" onclick="shareShipment('{{uid}}')">
<i class="fa fa-share-alt"></i>
<span class="is-hidden-mobile"> Share</span>
</a>
</footer>
</div>
<br />
<div class="modal" id="share-modal{{uid}}">
<div class="modal-background"></div>
<div class="modal-content">
<div class="card">
<header class="card-header">
<p class="card-header-title">
Share "{{name}}" by {{author}}
</p>
<a class="button is-link card-header-icon unlaunch">
<i class="fa fa-close"></i>
</a>
</header>
<div class="card-content">
<div class="content">
<p>Share this project with your friends on social media!</p>
<p>The share link is...</p>
<div class="columns">
<div class="column is-12">
<input class="input" onClick="this.select();" id="share-id{{uid}}" type="text" value="">
</div>
</div>
<div class="has-text-centered">
<a href="#1" onclick="shareTwitter('{{uid}}')" id="share-twitter{{uid}}">
<i class="fa fa-2x fa-twitter"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</script>
</div>
<div class="container" id="shipped">
<!-- Start Shipped UI -->
<script id="shipment-templ" type="text/x-handlebars-template">
<div class="card" id="project{{uid}}">
<header class="card-header">
<p class="card-header-title">
@{{author}} <small style="color:grey; font-weight:normal"> - {{timestamp}}</small>
</p>
<a class="card-header-icon" onclick="startFlag('{{uid}}')" title="Flag this project">
<span class="icon" id="flag-{{uid}}">
<i class="fa fa-flag-o"></i>
</span>
</a>
</header>
<div class="card-content shipment">
<div class="content">
<h3 class="title is-4">{{name}}<span class="tag gradient is-pulled-right" style="display: {{featuredShow}}">{{featured}}</span></h3>
<br> {{desc}}
<br><br>
<p> <a href="{{link}}?ref=hackclub-shipit">{{link}}</a></p>
</div>
</div>
<footer class="card-footer">
<a class="card-footer-item" href="{{link}}?ref=hackclub-shipit"><i class="fa fa-eye"></i><span class="is-hidden-mobile"> Visit</span></a>
<a class="card-footer-item" href="{{code}}?ref=hackclub-shipit"><i class="fa fa-code"></i><span class="is-hidden-mobile"> Code</span></a>
<a class="card-footer-item" id='{{uid}}' onclick="startUpVote('{{uid}}')"><i class="fa fa-thumbs-up"></i><span class="is-hidden-mobile"> Upvote</span> <span id='num{{uid}}' class="tag is-light">{{upvote}}</span></a>
<a class="card-footer-item" onclick="shareShipment('{{uid}}')"><i class="fa fa-share-alt"></i><span class="is-hidden-mobile"> Share</span></a>
</footer>
</div>
<br />
<div class="modal" id="flag-modal{{uid}}">
<div class="modal-background"></div>
<div class="modal-content">
<div class="card">
<header class="card-header">
<p class="card-header-title">
Flag project "{{name}}"?
</p>
<a class="button is-link card-header-icon unlaunch"><i class="fa fa-close"></i></a>
</header>
<div class="card-content">
<div class="content">
<p>You are about to flag the project "{{name}}". Are you sure? A flagged project will be hidden from your account.<strong>You cannot unflag a project.</strong> Only flag a project when you feel like you actually
should... If you flag too many projects, your account might get banned!</p>
<p>A project flagged by multiple hackers will be subject to review, and if applicable, removal.
</p>
<div class="has-text-centered">
<a class="button is-danger is-loading" id="confirm-flag-{{uid}}" href="#" onclick="flagProj('{{uid}}')" disabled><i class="fa fa-flag"> </i>Confirm and Flag</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal" id="share-modal{{uid}}">
<div class="modal-background"></div>
<div class="modal-content">
<div class="card">
<header class="card-header">
<p class="card-header-title">
Share "{{name}}" by {{author}}
</p>
<a class="button is-link card-header-icon unlaunch"><i class="fa fa-close"></i></a>
</header>
<div class="card-content">
<div class="content">
<p>Share this project with your friends on social media!</p>
<p>The share link is...</p>
<div class="columns">
<div class="column is-12">
<input class="input" onClick="this.select();" id="share-id{{uid}}" type="text" value="">
</div>
<!--
<div class="column is-2">
<button id="copy-share-link{{uid}}" class="button" data-clipboard-target="#share-id{{uid}}"><i class="fa fa-clipboard"></i> Copy</button>
</div>-->
</div>
<div class="has-text-centered">
<a href="#1" onclick="shareTwitter('{{uid}}')" id="share-twitter{{uid}}">
<i class="fa fa-2x fa-twitter"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</script>
</div>
<div class="has-text-centered">
<a class="button is-danger wabble" id="loadButton" onClick="loadMoreProjects()">••• Load More</a>  
<a class="button is-danger wabble" id="top" onclick="toTop()">
<i class="fa fa-arrow-up"></i> Back to top</a>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="content has-text-centered">
<p>
A
<a href="https://hackclub.com">Hack Club</a> Project by
<a href="https://mingjie.info">Mingjie Jiang</a> and
<a href="http://seankim.tech">Sean Kim</a>
</p>
<p>
<a href="about/">About</a> <a class="icon" href="https://github.com/mj66/shipit">
<i class="fa fa-github"></i>
 
<small>
<a class="tag" id="commit-id"></a>
</small>
</a>
</p>
</div>
</div>
</footer>
</div>
</main>
<!-- Include JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://use.fontawesome.com/41132a62d5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.10/handlebars.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.1.3/firebase.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
<script src="asset/js/config.prod.js"></script>
<!-- Firebase Setup -->
<script src="asset/js/app.js"></script>
<!-- Keep this script last! -->
<script src="asset/js/render.js"></script>
</body>
</html>