-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·504 lines (441 loc) · 24.1 KB
/
index.html
File metadata and controls
executable file
·504 lines (441 loc) · 24.1 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
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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<title>Hacking and Learning</title>
<!--Meta-->
<meta charset="utf-8">
<meta name="description"> <!--Fill this out-->
<meta name="author" content="Abhinav Suri"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!--end meta-->
<!--css-->
<link rel="stylesheet" href="css/styles.css"/>
<link rel="stylesheet" href="css/skeleton.css"/>
<link rel="stylesheet" href="css/normalize.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/sweetalert.css">
<link href='//fonts.googleapis.com/css?family=Roboto:500,900,100,300,700,400' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="images/favicon.ico">
</head>
<body>
<style>
</style>
<nav>
<ul id="nav">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#stats">Code Weekend</a></li>
<li><a href="#info">Why Program?</a></li>
<li><a href="#faq">Code Camps</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<style>
</style>
<section id="home">
<div id="parallax1">
</div>
<div class="container"><!--Se-slope-->
<div class="row">
<div class="twelve columns">
<h1 id="caption" style="padding-top: 150px">Hacking & Learning</h1>
<div class="row">
<div class="four columns offset-by-four">
<img src="img/favicon.png" id="logo" style="max-height: 400px; max-width:400px; margin: 0 auto"></div>
</div>
</div>
</div>
<br>
<h4 style="text-align: center" id="caption3"><a href="#about" id="n2" class="button button-primary" style="font-size: 15px">Learn More About Us</a></h4>
<div class="row">
<div class="row">
<div class="twelve columns">
<h5 style="text-align: center">Upcoming & Past events</h5>
</div>
</div>
<div class="row" >
<div id="containticker">
<style>
#containticker {
width: inherit;
height: 150px;
white-space: nowrap;
overflow-x: scroll;
overflow-y: hidden
}
#link {
width: 50px;
background: #33C3F0;
height: 55px;
position: absolute;
left: 0px;
top:0px;
cursor: pointer;
transition: .25s all ease;
}
#info-event {
width: 50px;
background: #f1c40f;
height: 55px;
position: absolute;
left: 0px;
top:55px;
cursor: pointer;
transition: .25s all ease;
}
#link:hover {
background: #1EAEDB
}
#info-event:hover {
background-color: #f39c12
}
#event {
color: #000;
padding:5px;
background: #FFF;
height: 100px;
width: 200px;
margin: 5px;
opacity: .6;
transition: all 0.5s ease;
display:inline-block;
white-space: normal;
position:relative;
font-size: 12px;
}
.eventtitle {
color:#000;
font-size: 16px;
font-weight: 400;
}
.eventdesc {
color: #000;
font-size: 12px;
position: absolute;
left: 60px;
width: 140px;
max-height: 10px;
}
.eventdate {
font-size: 12px;
}
.eventinfo{
width: 140px;
white-space:nowrap;overflow:hidden;
text-overflow: ellipsis
}
#event:hover {
opacity: 1
}
</style>
</div>
</div>
</div>
</div>
</section>
<section id="about">
<div class="slope1">
<div class="container">
<div class="row">
<div class="twelve columns">
<h1>What is Hacking & Learning?</h1>
<div id="t1"></div>
<h5>
The Hacking and Learning committee of the Dining Philosophers aims to bring about a culture of creation and innovation within the University of Pennsylvania community and beyond. By focusing on developing high quality educational initiatives and organizing several events throughout the year, we have introduced many to the world of programming and computer science. <br>
</h5>
</div>
</div>
<div class="row">
<div class="six columns">
<p id="infopara">
Ever had that app, website, or machine you wanted to build but didn't know where to start? Have you ever wanted to jump into the world of programming and show off an
awesome product to your friends? <b>Now is your chance.</b>
The Hacking and Learning committe organizes dozens of educational initiatives during the year to help you learn how to code and develop your projects.
You'll have tons of mentors and like-minded peers to help you through the process of making your dream into a reality.
</p>
</div>
<div class="six columns">
<img src="img/info.jpg" id="infopic">
</div>
</div>
</div>
</div>
</section>
<section id="stats">
<div id="parallax2">
</div>
<div class="container">
<div class="row">
<div class="twelve columns">
<h1>Code Weekend </h1>
<h4 style="text-align: center">A weekend long series of workshops where students teach you how to build a full webapp from scratch</h4>
<div style="margin: 0 auto; text-align: center">
<a href="http://dinphil.github.io/code-weekend" id="n2" class="button button-primary" style="font-size: 15px">Code Weekend Fall 2018</a>
<a href="http://dinphil.github.io/code-weekend/past/fall15/" id="n2" class="button button-primary" style="font-size: 15px">Code Weekend Fall 2015</a>
</div>
<div id="t2"></div>
</div>
<div class="row">
<div class="three columns count">
<h3 style="font-weight: 500" class="count1">500</h3>
<p class="center" id="cap1">Attendees</p>
</div>
<div class="three columns count">
<h3 style="font-weight: 500" id="count2">4</h3>
<p class="center" id="cap2">Workshops</p>
</div>
<div class="three columns count">
<h3 style="font-weight: 500" id="count3">50</h3>
<p class="center" id="cap3">Mentors</p>
</div>
<div class="three columns count">
<h3 style="font-weight: 500"><span id="count4">54</span>%</h3>
<p class="center" id="cap4">First Time Coders</p>
</div>
</div>
<div class="row" id="abouttext3">
<div class="twelve columns">
<div class="row">
<div class="eight columns offset-by-two" style="text-align:center">
The first ever Code Weekend was held September 6th and 7th, 2014. It attracted unprecedented interest with over 500 students signing up for the weekend's workshops. Split into 4 highly interactive and mentored workshops, Code Weekend teaches students to build a fully functioning Node.JS app that uses 3rd party APIs and a MongoDB database - all over the course of 2 days!<br>
This Spring, Code Weekend was back and we had a huge number of signups! Check out the topics we covered during the workshops online here and feel free to send us feedback about the event!
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="info">
<div class="slope2">
<div class="container">
<div class="row">
<div class="twelve columns">
<h1>Why Should I Program?</h1>
<div id="t3"></div>
</div>
</div>
<div class="row">
<div class="eight columns" id="specdiagram">
<div id="diagram"></div>
</div>
<div class="four columns">
<blockquote>
<p style="opacity: .8">I think everyone should learn how to program a computer, because it teaches you how to think.<br><span style="float: right">- Steve Jobs</span></p>
</blockquote>
<p>
The power of computer science in a growing, tech based job market is undeniable. Thousands of college students each year are chosing STEM and programming related degrees to help them make their own apps and products or join companies in profitable software engineering jobs. Why not start learning now?
</p>
</div>
</div>
</div>
</div>
</section>
<section id="faq">
<div class="slope3">
<div id="parallax3">
</div>
<div class="container">
<div class="row">
<div class="twelve columns">
<h1>Code Camps </h1>
<h4 style="text-align: center">Workshops to build fundamental coding skills </h4>
<div id="t3"></div>
</div>
<div class="row" id="abouttext3">
<div class="twelve columns">
<div class="row">
<div class="eight columns offset-by-two" style="text-align:center">
Code Camp is a workshop series designed to teach from scratch, basic tools and skills that all real-world programmers need. Mentors are around to help students get through the problems they face in these highly interactive workshops.
<br><br>
Code camps are held throughout the year, and we'd love to hear from you if there's something specific you'd like to learn!
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="contact">
<div class="slope5">
<div class="container">
<div class="row">
<div class="twelve columns">
<h1>Contact Us</h1>
<div id="t2"></div>
<h3>Email us at dinphil@gmail.com</h3>
<p style="text-align:center">We would be happy to respond to any requests or general queries. Don't hesitate to reach out!</p>
</div>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="row">
<div class="twelve columns">
<p style="text-align:center;margin-bottom: 0px;">Site made by Abhinav Suri (c) 2015</p>
</div>
</div>
</div>
</footer>
<div id="modal">
<div class="container">
<div class="row">
<div class="twelve columns">
<div id="content-modal">
<h2 id="modal-title">Title</h2>
<h4 style="text-align:center" id="modal-date">Title</h2>
<p style="text-align:center" id="modal-info">This is some sample content</p><a style="text-align:center" id="modal-link" href="#">Go to the event</a>
<br>
<a id="close-modal">
Close Window
</a>
</div>
</div>
</div>
</div>
</div>
<style>
#modal {
position: fixed;
top:0;
left:0;
height: 100%;
width: 100%;
background: rgba(0,0,0,.8);
z-index: 99999;
cursor: pointer;
display:none
}
#content-modal {
width: 80%;
background-color:#FFF;
margin-top: 15vh;
margin-left: auto;
margin-right: auto;
padding: 10px;
border-radius: 2px;
display:block;
cursor: auto;
z-index: 100000;
position:relative;
}
#close-modal {
cursor: pointer;
position: absolute;
right: 10px;
bottom:10px;
}
</style>
</body>
<!--js-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="js/raphael.js"></script>
<link rel="stylesheet" href="css/slicknav.css" />
<script src="js/jquery.slicknav.js"></script>
<script src="js/sweetalert.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.17.0/TweenMax.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.17.0/plugins/ScrollToPlugin.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/animation.gsap.min.js"></script>
<script src="//cdn.jsdelivr.net/jquery.scrollto/2.1.0/jquery.scrollTo.min.js"></script>
<script type="text/javascript" src="//flesler-plugins.googlecode.com/files/jquery.localscroll-1.2.7-min.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<script type="text/javascript" src="js/modernizer.custom.js"></script>
<!--end js-->
<div class="get">
<div class="arc">
<span class="text">Less than 4.9 percent of students graduate with a degree in computer science</span>
<input type="hidden" class="percent" value="4.9" />
<input type="hidden" class="color" value="#2c3e50" />
</div>
<div class="arc">
<span class="text">Only 28% of computing jobs are filled. By 2020 over 1 million jobs will be unmet.</span>
<input type="hidden" class="percent" value="28" />
<input type="hidden" class="color" value="#9b59b6" />
</div>
<div class="arc">
<span class="text">Only 50% of states give credit for computer science classes.</span>
<input type="hidden" class="percent" value="50" />
<input type="hidden" class="color" value="#3498db" />
</div>
<div class="arc">
<span class="text">Computer Science jobs account for 60% of the STEM job-industry</span>
<input type="hidden" class="percent" value="60" />
<input type="hidden" class="color" value="#2ecc71" />
</div>
<div class="arc">
<span class="text">90% of United States high schools do not have an introductory computer science curriculum</span>
<input type="hidden" class="percent" value="90" />
<input type="hidden" class="color" value="#e74c3c" />
</div>
<script>
$("#modal").click(function(e) {
if(e.target.id == 'close-modal') {
$("#modal").fadeOut("slow");
}
else if(e.target.id != 'content-modal' && !$('#content-modal').find(e.target).length) {
$("#modal").fadeOut("slow");
}
else {
}
});
function triggerInfoModal(title,desc,date,link) {
console.log("Triggered");
$("#modal").fadeIn("slow");
console.log(title);
$("#modal-title").text(title);
$("#modal-info").text(desc);
$("#modal-date").text(date);
$("#modal-link").attr("href", link);
}
function appendEvent(title,link,desc,date) {
var titlenew = title.toString();
var linknew = link.toString();
var descnew = desc.toString();
var datenew = date.toString()
return '<div id="event"><div class="row"><div class="four columns" id="link"><div id="link"><a style="display:block" href="'+linknew+'"><i class="fa fa-link fa-3x" style="color: #FFF; padding-top: 12px; padding-left: 8px"></i></a></div><div id="info-event"><a style="display:block" id="triggerInfoModal" onClick="triggerInfoModal(\''+titlenew+'\',\''+descnew+'\',\''+datenew+'\',\''+linknew+'\')"><i class="fa fa-info-circle fa-3x" style="color: #FFF; padding-top: 10px; padding-left: 10px"></i></a></div></div><div class="eight columns" id="eventinfo"><div class="eventdesc"><div class="eventtitle">'+titlenew+'</div> <div class="eventdate">'+datenew+'</div><div class="eventinfo">'+descnew+'</div></div></div></div></div>'
}
// if(Math.floor(Date.now()/1000) < 1453080264 ) {
// swal({
// title:"Code Weekend 2016",
// text: "The hugely popular Code Weekend is back! Interested in learning the basics of website design and code? Join us for a series of workshops that will guide you through the process of making a full web app!",
// html: true,
// showCancelButton: true,
// closeOnCancel: true,
// confirmButtonText: "Go to Signup",
// cancelButtonText: "Close"
// },
// function(isConfirm) {
// if(isConfirm) {
// location.href = 'https://docs.google.com/forms/d/1PzownC3wvz03TEvIxZz7H3MZEbvoz-Ml_cy03KO-zuk/viewform?c=0&w=1'
// }
// });
// }
$.get(
"https://spreadsheets.google.com/feeds/list/1_rMloOOAebLFDK6kYo7VD_0TU_glzoVq2hbpaHtYwXQ/od6/public/basic?alt=json", function(data) {
console.log(data);
for(var i = 0; i < data.feed.entry.length; i++) {
var separators = ['eventname: ',', facebookeventlinkputnaifnone: ', ', shortdescriptionputnaifnone: ', ", committee"];
var time = data.feed.entry[i].title.$t;
var preprocess = data.feed.entry[i].content.$t;
var final = preprocess.split(new RegExp(separators.join('|'),'g'));
var title = final[1];
if(final[2] != 'N/A') {
var link = final[2];
} else {
var link = "";
}
if(final[3] != 'N/A') {
var desc = final[3];
} else {
var desc = "";
}
$("#containticker").append(appendEvent(title,link,desc,time));
}
}, "json"
);
</script>
</html>