forked from typpo/ancient-earth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
283 lines (257 loc) · 9.85 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ancient Earth globe</title>
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@iwebst">
<meta name="twitter:title" content="Ancient Earth - What the globe used to look like">
<meta name="twitter:description" content="Earth looked very different 600 million years ago">
<meta name="twitter:creator" content="@iwebst">
<meta name="twitter:image" content="http://i.imgur.com/Ya57O3tl.png">
<meta property="og:title" content="Ancient Earth - What the globe used to look like" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://dinosaurpictures.org/ancient-earth" />
<meta property="og:image" content="http://i.imgur.com/Ya57O3tl.png" />
<meta property="og:description" content="Earth looked very different 600 million years ago" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #000;
font-family: 'proxima-nova',Helvetica,sans-serif;
}
.tm { position: absolute; top: 10px; right: 10px; }
.webgl-error { font: 15px/30px monospace; text-align: center; color: #fff; margin: 50px; }
.webgl-error a { color: #fff; }
#webgl {
}
.top {
z-index: 999990;
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 40px;
background-color: black;
border-bottom: 1px solid #404040;
z-index: 999999;
color: white;
line-height: 2.5;
text-align: center;
}
a {
color: white;
}
.top-sub {
position: absolute;
top: 50px;
left: 0;
color: #aaa;
text-align: center;
width: 100%;
}
.title {
font-family: 'Open Sans', Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
position:absolute;
bottom:20px;
left: 20px ;
color: white;
}
#years-ago {
font-weight: bold;
}
#explanation {
font-size: 14px;
position:absolute;
bottom: 80px;
left: 20px ;
width: 300px;
line-height: 1.5;
color: #eee;
}
#instructions {
font-size: 12px;
position: absolute;
bottom: 20px;
right: 30px;
color: #eee;
}
#controls {
font-size: 12px;
position: absolute;
top: 50px;
right: 30px;
color: #eee;
text-align: right;
}
#controls .button {
background-color: #202020;
cursor: pointer;
padding: 5px;
border-radius: 5px;
line-height: 2.5;
}
#controls span:hover {
background-color: #303030;
}
.jump-to-container {
margin-bottom: 3px;
}
#jump-to {
color: #fff;
}
.social-container {
position: absolute;
top: 10px;
right: 15px;
font-size: 12px;
}
ul.share-buttons {
list-style: none;
padding: 0;
margin: 0;
}
ul.share-buttons li {
display: inline;
}
ul.share-buttons img {
width: 20px;
height: auto;
}
.links {
position: absolute;
top: 5px;
left: 20px;
font-size: 12px;
}
#loading {
font-size: 30px;
font-weight: bold;
text-align: center;
position: absolute;
top: 45%;
width: 100%;
color: #fff;
}
@media screen and (max-width: 1024px) {
.top, .top-sub, #explanation {
font-size: 12px;
}
#instructions, .social-container, .links {
display: none;
}
.main-heading {
line-height: 3.5;
}
}
</style>
</head>
<body>
<div class="top">
<div class="links">
<strong><a href="http://dinosaurpictures.org/" style="color:#B1B06B;">Check out our database of prehistoric creatures!</a></strong>
</div>
<strong class="main-heading">
What did Earth look like
<select id="years-ago">
<option>600 million</option>
<option>560 million</option>
<option>540 million</option>
<option>500 million</option>
<option>470 million</option>
<option>450 million</option>
<option>430 million</option>
<option>400 million</option>
<option>370 million</option>
<option>340 million</option>
<option>300 million</option>
<option>280 million</option>
<option>260 million</option>
<option>240 million</option>
<option>220 million</option>
<option>200 million</option>
<option>170 million</option>
<option>150 million</option>
<option>120 million</option>
<option>105 million</option>
<option>90 million</option>
<option>65 million</option>
<option>50 million</option>
<option>35 million</option>
<option>20 million</option>
<option>0</option>
</select>
years ago?
</strong>
<div class="social-container">
<ul class="share-buttons">
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdinosaurpictures.org%2F&t=" title="Share on Facebook" target="_blank" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL)); return false;"><img src="images/flat_web_icon_set/color/Facebook.png"></a></li>
<li><a href="https://twitter.com/intent/tweet?source=http%3A%2F%2Fdinosaurpictures.org%2F&text=:%20http%3A%2F%2Fdinosaurpictures.org%2F&via=iwebst" target="_blank" title="Tweet" onclick="window.open('https://twitter.com/intent/tweet?text=' + encodeURIComponent(document.title) + ':%20' + encodeURIComponent(document.URL)); return false;"><img src="images/flat_web_icon_set/color/Twitter.png"></a></li>
<li><a href="mailto:?subject=&body=:%20http%3A%2F%2Fdinosaurpictures.org%2F" target="_blank" title="Email" onclick="window.open('mailto:?subject=' + encodeURIComponent(document.title) + '&body=' + encodeURIComponent(document.URL)); return false;"><img src="images/flat_web_icon_set/color/Email.png"></a></li>
</ul>
</div>
</div>
<div id="controls">
<div class="jump-to-container">
<span>Jump to... </span>
<select id="jump-to" class="button">
<option value="600">first multicellular life</option>
<option value="540">first shells</option>
<option value="470">first coral reefs</option>
<option value="470">first vertebrates</option>
<option value="430">first land plants</option>
<option value="400">first land animals</option>
<option value="400">first insects</option>
<option value="300">first reptiles</option>
<option value="220">first dinosaurs</option>
<option value="120">first flowers</option>
<option value="35">first primates</option>
<option value="35">first grass</option>
<option value="20">first hominids</option>
<option value="600">Pannotia supercontinent</option>
<option value="280">Pangea supercontinent</option>
<option value="240">Triassic</option>
<option value="170">Jurassic</option>
<option value="105">Cretaceous</option>
<option value="65">dinosaur extinction</option>
</select>
</div>
<span id="remove-clouds" class="button">Remove clouds</span><br>
<span id="stop-rotation" class="button">Stop rotation</span>
</div>
<div id="explanation"></div>
<div id="instructions">
Use the ← and → keys to step through time.
</div>
<div class="title">Earth, <span id="how-long-ago">600 million</span> years ago</div>
<div id="loading">Loading...</div>
<div id="webgl"></div>
<script src="js/three.min.js"></script>
<script src="js/Detector.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/THREEx.WindowResize.js"></script>
<script src="js/countdown.min.js"></script>
<script src="js/explain.js"></script>
<script src="js/main.js"></script>
<!-- start Mixpanel --><script type="text/javascript">(function(f,b){if(!b.__SV){var a,e,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=f.createElement("script");a.type="text/javascript";a.async=!0;a.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";e=f.getElementsByTagName("script")[0];e.parentNode.insertBefore(a,e)}})(document,window.mixpanel||[]);
mixpanel.init("c46b3dfff827de823f35a442a22a1ab8");</script><!-- end Mixpanel -->
<script>if(window.location.href.indexOf('localhost') < 0) mixpanel.track('ancient-earth');</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','//www.google-analytics.com/analytics.js','ga');
if (window.location.href.indexOf('localhost') < 0) {
ga('create', 'UA-62588220-1', 'auto');
ga('send', 'pageview');
}
</script>
</body>
</html>