-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
293 lines (268 loc) · 14.1 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
<!DOCTYPE html>
<!-- vim: set ts=2 sw=2: -->
<html>
<head>
<meta charset="utf-8" />
<meta name="description" content="Longcat is loooooooong!" />
<meta name="author" content="Thibault Jan Beyer and Lucas Beyer" />
<!-- http://davidbcalhoun.com/2010/viewport-metatag/ -->
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<!-- To add the image to the twitter share link -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@ThibaultBeyer">
<meta name="twitter:title" content="Who's got the longest??">
<meta name="twitter:description" content="See how long your longcat can go!">
<meta name="twitter:image" content="http://longcat.wtf/assets/img/logo.jpg">
<title>Longcat is looooooooooong!</title>
<!-- Critical CSS -->
<link href="https://fonts.googleapis.com/css?family=Bangers" rel="stylesheet">
<style>
.preloader {
background: #000;
color: #fff;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 9999999999999;
display: flex;
align-items: center;
justify-content: center;
transition: height 1s ease-in-out, background 1s ease-in-out;
text-align: center;
}
.preloader--loaded {
height: 40%;
background: transparent;
pointer-events: none;
}
.preloader__text {
font-family: 'Bangers', cursive;
color: lightgray;
letter-spacing: 1px;
animation: preload 1s infinite;
}
.preloader__text--loaded {
margin-top: 20%;
animation: none;
}
@keyframes preload {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
</style>
<!-- Bundle -->
<link href="assets/bundle.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- Naming follows BEM: http://getbem.com -->
<div class="preloader">
<span class="preloader__text">Loading... <br><br>Meanwhile, turn on your sound</span>
</div>
<section class="section section-underground"></section>
<section class="section section-earth">
<div class="fullsize section__element section-earth__earth"></div>
<div class="fullsize section__element section-earth__front"></div>
<div class="fullsize section__element section-earth__transparent"></div>
<div class="fullsize section__element section-earth__gulli"></div>
</section>
<section class="section section-earth-top">
<div class="fullsize section__element section-earth-top__wall"></div>
<div class="fullsize section-earth-top__floor"></div>
</section>
<section class="section section-buildings">
<div class="fullsize section__element section-buildings__pisa"></div>
<div class="fullsize section__element section-buildings__jesus"></div>
<div class="fullsize section__element section-buildings__bigben"></div>
<div class="fullsize section__element section-buildings__berlin"></div>
<div class="fullsize section__element section-buildings__colloseum"></div>
<div class="fullsize section__element section-buildings__eiffel"></div>
<div class="fullsize section__element section-buildings__atomium"></div>
<div class="fullsize section__element section-buildings__liberty"></div>
</section>
<section class="section section-sky">
<div class="fullsize section__element">
<div class="fullsize section__element section-sky__cloud--one"></div>
<div class="fullsize section__element section-sky__cloud--one"></div>
<div class="fullsize section__element section-sky__cloud--one"></div>
<div class="fullsize section__element section-sky__cloud--one"></div>
<div class="fullsize section__element section-sky__cloud--one"></div>
<div class="fullsize section__element section-sky__cloud--one"></div>
</div>
<div class="fullsize section__element">
<div class="fullsize section__element section-sky__cloud--two"></div>
<div class="fullsize section__element section-sky__cloud--two"></div>
<div class="fullsize section__element section-sky__cloud--two"></div>
<div class="fullsize section__element section-sky__cloud--two"></div>
<div class="fullsize section__element section-sky__cloud--two"></div>
<div class="fullsize section__element section-sky__cloud--two"></div>
</div>
<div class="fullsize section__element">
<div class="fullsize section__element section-sky__cloud--three"></div>
<div class="fullsize section__element section-sky__cloud--three"></div>
<div class="fullsize section__element section-sky__cloud--three"></div>
<div class="fullsize section__element section-sky__cloud--three"></div>
<div class="fullsize section__element section-sky__cloud--three"></div>
<div class="fullsize section__element section-sky__cloud--three"></div>
</div>
</section>
<section class="section section-airspace">
<div class="section__element section-airspace__satelite"></div>
<div class="fullsize section__element">
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--four"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--three"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--one"></div>
<div class="section__element section-airspace__asteroid section-airspace__asteroid--two"></div>
</div>
<div class="section__element section-airspace__astronaut"></div>
<div class="section__element section-airspace__iss"></div>
<div class="section__element section-airspace__show"></div>
<div class="section__element section-airspace__kak"></div>
<div class="section__element section-airspace__waldo"></div>
<div class="section__element section-airspace__hitler"></div>
</section>
<section class="section section-infinite-start">
<div class="section__element section-infinite-start__fin"></div>
<div class="section__element section-infinite-start__adsbygoogle">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Longcat.wtf -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7411822855484586"
data-ad-slot="1665344015"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="section__element section-infinite-start__adsbygoogle section-infinite-start__adsbygoogle--two">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Longcat.wtf -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7411822855484586"
data-ad-slot="1665344015"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="section__element section-infinite-start__adsbygoogle section-infinite-start__adsbygoogle--three">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Longcat.wtf -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7411822855484586"
data-ad-slot="1665344015"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="section__element section-infinite-start__adsbygoogle section-infinite-start__adsbygoogle--four">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Longcat.wtf -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7411822855484586"
data-ad-slot="1665344015"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</section>
<div class="longcat">
<div class="longcat__container">
<!-- Note: ordering reversed to avoid need of z-index -->
<img class="longcat__part longcat__hand-left" src="assets/img/cat/hand-left_.png">
<img class="longcat__part longcat__lower-body" src="assets/img/cat/lower-body_.png">
<img class="longcat__part longcat__infinite-repeat" src="assets/img/cat/infinite-repeat_.png">
<img class="longcat__part longcat__upper-body" src="assets/img/cat/upper-body_.png">
<img class="longcat__part longcat__head" src="assets/img/cat/head_.png">
<img class="longcat__part longcat__mouth" src="assets/img/cat/mouth_.png">
<img class="longcat__part longcat__hand-right" src="assets/img/cat/hand-right_.png">
</div>
</div>
<div class="score">
<div class="score__score">
Score: <span class="score__number">0</span>
</div>
<div class="score__high">
High: <span class="score__number score__number--high">0</span>
</div>
</div>
<div class="share">
Who haz the longest??
<img src="assets/img/social/Twitter.gif" class="tweet button share__img" alt="on Twitter" role="link">
<img src="assets/img/social/Facebook.gif" class="fb button share__img" alt="on Facebook" role="link">
</div>
<!-- Sounds to be played -->
<!-- Source: http://soundbible.com/1684-Cat-Meowing-2.html CC-BY -->
<audio id="meow1" preload="auto">
Your browser does not support the <code>audio</code> element.
<source src="assets/audio/meow1.ogg" type="audio/ogg">
<source src="assets/audio/meow1.mp3" type="audio/mp3">
</audio>
<audio id="slowmeow" preload="auto">
<source src="assets/audio/slowmeow.ogg" type="audio/ogg">
<source src="assets/audio/slowmeow.mp3" type="audio/mp3">
</audio>
<!-- Source: https://archive.org/download/nyannyannyan but re-encoded -->
<audio id="nyansong" preload="auto">
<source src="assets/audio/nyansong.ogg" type="audio/ogg">
<source src="assets/audio/nyansong.mp3" type="audio/mp3">
</audio>
<script src="lib/physics.js"></script>
<script src="lib/section.js"></script>
<script src="lib/longcat.js"></script>
<script src="lib/main.js"></script>
<script src="lib/message.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-91434502-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>