-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
116 lines (92 loc) · 3.15 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>New York Kids Coding Dojo</title>
<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
<link rel="stylesheet" href="index.css">
<link rel="icon" type="favicon/x-icon" href="images/favicon.ico">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
</head>
<body>
<h1>New York Kids Coding Dojo</h1>
<div class="container">
<div class="section-holder">
<section id="scratch">
<a id="scratch-img" href="./scratch"><img class="img-responsive large-img" src="./images/2018scratch.png" alt="Scratch"></a>
</section>
<section id="web">
<a id="web-img" href="./web"><img class="img-responsive large-img" src="./images/2018web.png" alt="Web"></a>
</section>
</div>
</div>
<div id="learn-col">
<div id="start" class="info-modal" style="margin-right: 7px">Where do I start?</div>
<a href="./about.html"><div class="info-modal" id="about">About this site</div></a>
</div>
<div class="holder" style="min-height: 0px">
<div id="start-box" class="black-opaque">
<p class="info-para">We recommend starting with a Level 1 Scratch project, like
<a href="./scratch/ghost-busters.html" target="_blank">Ghost Busters
</a>
</p>
<p class="info-para">If you’re a experienced coder, browse the levels to find a project that's challenging for you.
</p>
</div>
</div>
<div class="bottom-holder">
<h4 id="tcs-text">Contact Us: <a href="mailto:[email protected]">[email protected]</a></h4>
</div>
<script>
function isMobileDevice() {
return (typeof window.orientation !== "undefined") || (navigator.userAgent.indexOf('IEMobile') !== -1);
};
$(document).ready(function () {
// scratch info hide/show
$("#scratch-img").mouseenter(function () {
$("#scratch-box").fadeIn(250);
})
$("#scratch-img").mouseleave(function () {
$("#scratch-box").fadeOut(400);
})
// woof info hide/show
$("#woof-img").mouseenter(function () {
$("#woof-box").fadeIn(250);
})
$("#woof-img").mouseleave(function () {
$("#woof-box").fadeOut(400);
})
// web info hide/show
$("#web-img").mouseenter(function () {
$("#web-box").fadeIn(250);
})
$("#web-img").mouseleave(function () {
$("#web-box").fadeOut(400);
})
// learn more hide/show
// tappable on mobile
if (isMobileDevice()) {
$("#start").mousedown(function () {
$("#start-box").toggle();
})
}
// hoverable not on mobile
else {
$("#start").mouseenter(function () {
// make the box stay showing for a longer period of time so you can click the Ghost Busters link
// only fade in if it's hidden -- prevents it from queuing up too many fade-ins during the delay()
if ($('#start-box').is(':hidden')) {
$("#start-box").fadeIn(250).delay(5000);
}
})
$("#start").mouseleave(function () {
$("#start-box").fadeOut(600);
})
}
})
</script>
</body>
</html>