-
Notifications
You must be signed in to change notification settings - Fork 307
/
index.html
274 lines (270 loc) · 11.5 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Grid Garden - A game for learning CSS grid layout</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:url" content="https://cssgridgarden.com">
<meta property="og:type" content="website">
<meta property="og:title" content="Grid Garden">
<meta property="og:description" content="A game for learning CSS grid layout">
<meta property="og:image" content="https://cssgridgarden.com/images/screenshot.png">
<meta name="twitter:url" content="https://cssgridgarden.com">
<meta name="twitter:title" content="Grid Garden">
<meta name="twitter:description" content="A game for learning CSS grid layout">
<meta name="twitter:image" content="https://cssgridgarden.com/images/screenshot.png">
<link rel="stylesheet" href="node_modules/animate.css/animate.min.css">
<link href='https://fonts.googleapis.com/css?family=PT+Sans|Autour+One|Source+Code+Pro' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<section id="sidebar">
<div class="header">
<div>
<h1 class="title">Grid Garden</h1>
</div>
<div id="level-counter">
<span class="arrow left">
<span class="triangle"></span>
</span>
<span id="level-indicator">
<span id="labelLevel" class="translate">Level</span>
<span class="current">1</span>
<span id="labelOf" class="translate">of</span>
<span class="total">1</span>
<span class="caret">▾</span>
</span>
<span class="arrow right">
<span class="triangle"></span>
</span>
<div id="levelsWrapper" class="tooltip">
<div id="levels"></div>
<div id="labelReset" class="translate">Reset</div>
</div>
</div>
</div>
<p id="instructions"></p>
<div id="editor">
<div id="css">
<div class="line-numbers">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14</div>
<pre id="before"></pre>
<textarea id="code" autofocus autocapitalize="none" spellcheck="false"></textarea>
<pre id="after"></pre>
</div>
<button id="next" class="translate">Next</button>
</div>
<div id="share">
<div class="games">
<a target="_blank" data-title="Flexbox Froggy" href="https://codepip.com/games/flexbox-froggy/">
<img src="images/games/flexbox-froggy.png" alt="Flexbox Froggy">
</a>
<a target="_blank" data-title="Anchoreum" href="https://codepip.com/games/anchoreum/">
<img src="images/games/anchoreum.png" alt="Anchoreum">
</a>
<a target="_blank" data-title="Disarray" href="https://codepip.com/games/disarray/">
<img src="images/games/disarray.png" alt="Disarray">
</a>
<a target="_blank" data-title="CSS Scoops" href="https://codepip.com/games/css-scoops/">
<img src="images/games/css-scoops.png" alt="CSS Scoops">
</a>
</div>
<p class="social">
<span id="tweet">
<a href="https://twitter.com/share" class="twitter-share-button"{count} data-url="https://cssgridgarden.com" data-via="playcodepip" data-text="I just beat Grid Garden, a game for learning CSS grid layout!">Tweet</a>
<a href="https://twitter.com/playcodepip" class="twitter-follow-button" data-show-count="false">Follow @playcodepip</a>
</span>
<span class="fb-like" data-href="https://cssgridgarden.com" data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"></span>
</p>
</div>
<div id="custom-inline"></div>
<div class="credits">
<span id="labelFooter" class="translate">Grid Garden is created by</span>
<a href="https://codepip.com">Codepip</a> •
<a href="https://youtube.com/codepip">YouTube</a> •
<a href="https://twitter.com/playcodepip">Twitter</a> •
<a href="https://github.com/thomaspark/gridgarden/">GitHub</a> •
<span id="language">
<span id="languageActive" class="toggle translate">English</span>
<span class="tooltip">
<a href="#en">English</a>
<a href="#es">Español</a>
<a href="#fr">Français</a>
<a href="#de">Deutsch</a>
<a href="#nl">Nederlands</a>
<a href="#it">Italiano</a>
<a href="#pt-br">Português(BR)</a>
<a href="#pt-pt">Português(PT)</a>
<a href="#ca">Català</a>
<a href="#sv">Svenska</a>
<a href="#no">Norsk</a>
<a href="#fi">Suomi</a>
<a href="#pl">Polski</a>
<a href="#sk">Slovenčina</a>
<a href="#hu">Magyar</a>
<a href="#ro">Română</a>
<a href="#al">Shqip</a>
<a href="#bg">Български</a>
<a href="#et">Eesti</a>
<a href="#lv">Latviešu</a>
<a href="#ru">Русский</a>
<a href="#ua">Українська</a>
<a href="#el">Ελληνικά</a>
<a href="#tr">Türkçe</a>
<a href="#az">Azərbaycanca</a>
<a href="#ar">العربية</a>
<a href="#fa">فارسی</a>
<a href="#ps">پښتو</a>
<a href="#ur">اردو</a>
<a href="#hi">हिंदी</a>
<a href="#bn">বাংলা</a>
<a href="#ta">தமிழ்</a>
<a href="#zh-cn">简体中文</a>
<a href="#zh-tw">繁體中文</a>
<a href="#ja">日本語</a>
<a href="#ko">한국어</a>
<a href="#vi">Tiếng Việt</a>
<a href="#th">ภาษาไทย</a>
<a href="#id">Bahasa Indonesia</a>
<a href="#tl">Tagalog</a>
<a href="#yo">Yorùbá</a>
</span>
</span>
</div>
<div class="credits">
<span id="flexboxFroggy" class="translate">Want to learn more CSS? Play</span> <a href="https://codepip.com/games/flexbox-froggy/">Flexbox Froggy</a> or <a href="https://codepip.com/games/anchoreum/">Anchoreum</a>.
</div>
</section>
<section id="view">
<div id="board">
<div id="overlay">
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
</div>
<div id="plants"></div>
<div id="garden"></div>
<div id="soil">
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
<span class="plot"></span>
</div>
</div>
</section>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="js/levels.js"></script>
<script src="js/docs.js"></script>
<script src="js/messages.js"></script>
<script src="js/game.js"></script>
<script>
(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-23019901-18', 'auto');
ga('send', 'pageview');
</script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=1820320434958041";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script src="//m.servedby-buysellads.com/monetization.custom.js"></script>
<script>
(function() {
if (typeof _bsa !== 'undefined' && _bsa) {
_bsa.init('custom', 'CESIC537', 'placement:cssgridgardencom',
{
target: '#custom-inline',
template: `
<a href="##link##" class="native-link" rel="sponsored noopener" target="_blank" title="##company## — ##tagline##">
<img src="##image##" style="background-color: ##backgroundColor##" class="native-img">
<div class="native-text"><span class="native-company">##company##</span> ##description##</div>
</a>
<a href="##ad_via_link##" class="native-ad">AD</a>
`
}
);
}
})();
</script>
</body>
</html>