-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpangea.html
538 lines (477 loc) · 36.8 KB
/
pangea.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
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
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
<html>
<head>
<title>Pangea Fossil Evidence Activity</title>
<script src="common_utils.js"></script>
<style>
* {
font-family: Arial, Helvetica, Tahoma, 'Roboto', sans-serif;
box-sizing: border-box;
}
body {
padding: 25px;
background: url('polyBkgBlue.svg');
background-size: cover;
}
.main-table {
padding: 20px;
background: #fff;
border-radius: 5px;
}
h1 {
margin: 0px 40px 0px 40px;
color: #ddd;
font-size: 1.8em;
text-align: center;
}
button {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 12px !important;
font-weight: 400;
line-height: 17px;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
color: #fff;
background-color: #337ab7;
border-color: #2e6da4;
}
button.download {
display: block;
position: absolute;
top: min(calc(calc(100vw - 100px) * 0.75 + 40px), 89vh);
right: 50px;
}
button:hover {
outline: none;
filter: brightness(0.85);
}
svg.map {
max-height: calc(99vh - 65px);
background-color: #fff;
border-radius: 10px;
}
/*
svg.map g {
transform-box: fill-box;
transform-origin: center;
}
*/
.instructions {
display: block;
position: absolute;
top: min(calc(calc(100vw - 100px) * 0.75 + 40px), 87vh);
left: 50px;
width: 350px;
font-size: 14px;
}
.instructions svg {
transform: translateY(4px);
}
.map-key {
display: block;
position: absolute;
top: min(calc(calc(100vw - 320px) * 0.75 + 40px), 65vh);
right: 50px;
}
p.feature {
margin: 3px;
border: 1px solid #000;
border-radius: 14px;
padding: 1px 10px;
font-size: 12px;
}
.cynognathus {
background-color: rgba(222, 172, 128, 0.8);
}
.glossopteris {
background-color: rgba(150, 222, 128, 0.8);
}
.flora {
background-color: rgba(217, 128, 222, 0.8);
}
.alpine {
background-color: rgba(222, 128, 128, 0.8);
}
.titanosaur {
background-color: rgba(128, 217, 222, 0.8);
}
.mesosaurus {
background-color: rgba(128, 139, 222, 0.8);
}
.lystrosaurus {
background-color: rgba(222, 216, 128, 0.8);
}
</style>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="25 25 443 356" class="map">
<g stroke="#000" fill-rule="evenodd" stroke-linejoin="round" stroke-linecap="round">
<g class="continent africa" transform="translate(0 0) rotate(0 264.9 204.5)">
<path fill="#afafaf" stroke-width="1.1"
d="M255.4 262c-12-2.7-3.5-9.6-5.8-14 .6-6.2-5.9-11.3-3.5-17.1a12.7 12.7 0 000-16.2c-5.1-4-1.2-9.5-1.6-14.2-2-2.1-8 .9-6.8-4-6.3-3.6-13.3 2.4-20 .1-6.5-2.2-8.5-9.6-11.8-14.6 0-5.4 3.3-10.2 2.7-15.7 1.8-4.7 7.4-7.3 9.2-12 6.3 2.7 6.2-5.9 12.1-6.5 5.5-1.5 11.3-1 16.8-.7 3.9-.8 8.8.9 7 5.7 3.5 1.8 7.1 6.4 11.3 5.6 2.7-6.3 11.1 3.8 16.4-.2 5.7-.3 10.4-3.9 16.1-5 5.9-2.6 7.9 4 8.9 8.3 2.6 2.3-.7 4.1 2.8 5.8 1.9 4.5 5.4 3.8 8.3 1.2 1.2 3.6 6.9 4.5 6.4 9.6-4.6.9-6.7 6.3-11.5 7.4-3.4 3.5-11 2.4-12.6 6.5 2.4 3.7 13.7-4.4 11.3 3.5-2.5 4.7-4.5 10.2-9.7 12.5-5.7 4-11.5 10.3-9.9 17.8.4 2.3-.9 2.9-3 6.8a86.4 86.4 0 00-4.3 11c-4.2 2.6-.2 5.4-6.7 6.6-2.6 4.7-6.5 9.7-12.2 11.4-3.3-.1-6.6.9-10 .4zm43.4-74.2c0-6.2-5.8-11-8.1-16.1-.7-2.2-5.6-9.8-4.7-3.9 3.3 4.7 4 10.4 7 15 .2 1.6 5.8 9 5.8 5z">
</path>
<path fill="#808bde" fill-opacity=".8" stroke-width=".3"
d="M248.6 257c4.5.7 16.9 2.6 19.7-2 3.9-6.1-10.5-8.2-18.1-6z"></path>
<path fill="#96de80" fill-opacity=".8" stroke-width=".3"
d="M249.3 244.6a48.7 48.7 0 0134.9-1c1.3-4.3 3.5-9.2 5-11.8a62.4 62.4 0 00-43.6 3c.4 3 3 6.9 3.7 9.8z">
</path>
<path fill="#ded880" fill-opacity=".8" stroke-width=".3"
d="M291 229.2c1.1-1.6.8-1.8.5-3.4-.8-2.2-.3-4.3.2-6.4-12.4-2.4-19.6-26-28.4-15.9-8.5 9.9 18.3 23 27.6 25.7z">
</path>
<path fill="#deac80" fill-opacity=".8" stroke-width=".3"
d="M244.4 212.9c-2.4-3.8.4-8.4 0-12.4-1.8-2.1-7.8.9-6.7-4a9.1 9.1 0 00-4.8-1.2c-1-9-7.5-18.4-24.3-29 1.8-4.7 7.4-7.3 9.2-12 25.7 19.1 32.5 33.6 26.6 58.6z">
</path>
<path fill="#80d9de" fill-opacity=".8" stroke-width=".3"
d="M312.4 185.5c-5.3-6.4-10.4-.6-13-7-2-5.2 16.4-9.7 24.5-.4-2.5.2-4.3 2.2-8 5.6 0 0-1.7 1.6-3.5 1.8z">
</path>
<g transform="translate(35.9 268.9)" class="move translate africa">
<circle cx="220.6" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M220.6-90.6l-.5 1-1 1.1v.5l1.4-1v3.1h-3.2c.4-.4.7-.8 1-1.4h-.4l-1.2 1c-.3.3-.7.4-1 .6v.2l1 .5 1.2 1h.4l-1-1.4h3.2v3.2l-1.4-1v.4l1 1.2.5 1h.2l.5-1 1-1.2v-.4c-.5.2-1 .6-1.4 1v-3.2h3.2l-1 1.4h.4l1.2-1 1-.5v-.2c-.3-.2-.7-.3-1-.6l-1.2-1h-.4c.3.6.6 1 1 1.4H221V-89c.4.5 1 .8 1.4 1v-.4l-1-1.1-.5-1z"
stroke-width=".3" aria-label="↔"></path>
</g>
<g transform="translate(35.9 268.9)" class="move rotate africa">
<circle cx="234.9" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M232.6-84.7q.1.8.8 1.3.6.6 1.5.5.8 0 1.4-.7l.3-.5h-.9l-.6-.5h2.4l.5 2.4-.7-.5-.1-1-.4.5q-.8.8-1.9 1-1.1 0-2-.7-.8-.6-1-1.7zM232.6-86.4q.1-.9.8-1.4.6-.5 1.5-.4.8 0 1.4.7l.3.4h-.9l-.6.5h2.4l.5-2.3-.7.5-.1 1-.4-.5q-.8-.9-1.9-1-1.1-.1-2 .6-.8.7-1 1.7z"
aria-label="⤻" stroke-width=".4"></path>
</g>
</g>
<g class="continent antarctia" transform="translate(0 0) rotate(0 175.8 311.2)">
<path fill="#afafaf" stroke-width="1.1"
d="M208.5 327c-4.5-.8-1.4 8-6.1 5.9-1.2 2.3-1 6-4.6 6.7-3 .5-1.2 4.4-4.5 3.3-3-.1-6 .7-8 1.8-2.7-2.7-6.7-1.3-10-2.8-5.2-1.6-1.6-6-.2-9 .3-3-1.3-1.9-2.2-1.1-1-2.1-5.2-3.4-7.6-4.8-2.5-.4-4.6 1.3-7 .3-4.4 1.2-6.2-4.5-9.6-6-1.9-3 .2-7.6-2-9.9-6.2-.1-2-7 .5-9.3.2-1.4-1.3-3.8.8-5-2.7.9-6-1-4.4-4.5 1.8-2.3-4.1-1.6-2-4.4a6.1 6.1 0 01.8-8.5c1 2-1.4 6.4 2.8 6.2 3.3 2.6 6.4 6.2 10 8 3.5-.5 9.1 0 10.2-4.4.6-4.5 3.5-8.5 7.4-10.7 4.4-2.3 9.4-.3 13.8 1 3.1 2.8 7.3 4 10.9 6 1 3.6 6.1 2.7 8.7 5.5 3.6 2.6.8 8.2 1.5 12-2.1 3-1.1 7.5 3 7.8.5 2.6-2.3 7.6.6 10.3.8 1-3 3-2 5.3-.2.2-.5.2-.8.2z">
</path>
<path fill="#96de80" fill-opacity=".8" stroke-width=".3"
d="M147.2 302.1c.2-1.4-1.3-3.8.8-5-2.7.9-6-1-4.4-4.5 1.8-2.3-4.1-1.6-2-4.4a6.1 6.1 0 01.8-8.5c1 2-1.4 6.4 2.8 6.2 3.3 2.6 6.4 6.2 10 8 3.5-.5 6.6-.1 8-2 10.4 11.1 19.7 14 44.5 11.3-2.1 3.1-1.1 7.6 3 8-28.1 9.9-43.2 3-63.5-9.1z">
</path>
<path fill="#ded880" fill-opacity=".8" stroke-width=".3"
d="M165.4 289.5c.5-3.5 2.3-6.7 5-9 11.6 10 25.9 15 35.8 10.8 2.3 1.6 2 4.5 1.7 7.3-25.1 4.3-35.8-4.5-42.5-9z">
</path>
<g transform="translate(-48.6 401.8)" class="move translate antarctia">
<circle cx="220.6" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M220.6-90.6l-.5 1-1 1.1v.5l1.4-1v3.1h-3.2c.4-.4.7-.8 1-1.4h-.4l-1.2 1c-.3.3-.7.4-1 .6v.2l1 .5 1.2 1h.4l-1-1.4h3.2v3.2l-1.4-1v.4l1 1.2.5 1h.2l.5-1 1-1.2v-.4c-.5.2-1 .6-1.4 1v-3.2h3.2l-1 1.4h.4l1.2-1 1-.5v-.2c-.3-.2-.7-.3-1-.6l-1.2-1h-.4c.3.6.6 1 1 1.4H221V-89c.4.5 1 .8 1.4 1v-.4l-1-1.1-.5-1z"
aria-label="↔" stroke-width=".3"></path>
</g>
<g transform="translate(-48.6 401.8)" class="move rotate antarctia">
<circle cx="234.9" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M232.6-84.7q.1.8.8 1.3.6.6 1.5.5.8 0 1.4-.7l.3-.5h-.9l-.6-.5h2.4l.5 2.4-.7-.5-.1-1-.4.5q-.8.8-1.9 1-1.1 0-2-.7-.8-.6-1-1.7zM232.6-86.4q.1-.9.8-1.4.6-.5 1.5-.4.8 0 1.4.7l.3.4h-.9l-.6.5h2.4l.5-2.3-.7.5-.1 1-.4-.5q-.8-.9-1.9-1-1.1-.1-2 .6-.8.7-1 1.7z"
stroke-width=".4" aria-label="⤻"></path>
</g>
</g>
<g class="continent austrailia" transform="translate(0 0) rotate(0 416.7 185.3)">
<path fill="#afafaf" stroke-width="1.1"
d="M437.6 213.8a13 13 0 01-8.5-5.8c-2.1 0-4.6 1.4-5.8-1.3-2.4-2.6-6.5-3.4-9.4-1.1-2.9 1.4-4.5 3.9-6.5 6.1-3 .9-4 4-6.9 5-3.6 1.4-2.2-4-4.9-5.4-1.8-2.9-5.5-3.7-7.1-6.6-.8-3-1.6-6.7 1.6-8.6 1.3-3 2.7-6.6 5.2-8.2a9 9 0 003.3-6.6c.5-4 5.6 0 6.2-4 .2-3.5 2.7-6.2 6.5-6.2 4.3-1.7 4.6 4.2 6.9 6.2 1.7.8 4.2-1.4 5-2-.3-3-.4-6-2.6-8-1.5-2.6-5.5 2.7-5.4-1-1.7-2-3.8-4.2-6.6-4.3-2.3 0-2.5-2.5-4.6-2.3-.7-.7-5.7-1-3.9-3.8 3.3-2.4 8.1-2.9 11.8-1 3 .3 6.2.4 9.2.6 3.6.7 7 2 10.5 3.2 1.8.6 3.6 4.7 2.8 5.3-3.3.3-6.5-1.1-9.6-1.8-3.3 2.5 1.1 4.6.5 7.5 1.4 2 5 2 4.9 5a8.8 8.8 0 007.6 5.1c2.8 1.2 5.2 3.4 6.6 6 .5 3.2 1.7 6.4 1 9.7.6 4-.8 7.5-2.5 10.8.6 3.8-1 7.4-5.3 7.5z">
</path>
<path fill="#ded880" fill-opacity=".8" stroke-width=".3"
d="M417.7 204.3c2-.2 4.1.7 5.6 2.4.2.5.6 1 1 1.1 4-10.6.3-33.6-10-23.6-5.9 5.9 5 9.4 3.4 20.1z">
</path>
<path fill="#80d9de" fill-opacity=".8" stroke-width=".3"
d="M390.1 196.1l-1.2.8c5.5 4.9 8.5 13.6 13.8 12 6.4-1.8 5-13.9-5-22.4-3.4 1.7-5.4 3.7-7.6 9.6z">
</path>
<path fill="#96de80" fill-opacity=".8" stroke-width=".3"
d="M429 208c4-10.4-1.5-23 7.6-20.8 9 2.1 1.8 11 .2 26.5-2.6-1-5.1-1.8-7.7-5.7z"></path>
<g transform="translate(190.6 270.5)" class="move translate austrailia">
<circle cx="220.6" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M220.6-90.6l-.5 1-1 1.1v.5l1.4-1v3.1h-3.2c.4-.4.7-.8 1-1.4h-.4l-1.2 1c-.3.3-.7.4-1 .6v.2l1 .5 1.2 1h.4l-1-1.4h3.2v3.2l-1.4-1v.4l1 1.2.5 1h.2l.5-1 1-1.2v-.4c-.5.2-1 .6-1.4 1v-3.2h3.2l-1 1.4h.4l1.2-1 1-.5v-.2c-.3-.2-.7-.3-1-.6l-1.2-1h-.4c.3.6.6 1 1 1.4H221V-89c.4.5 1 .8 1.4 1v-.4l-1-1.1-.5-1z"
stroke-width=".3" aria-label="↔"></path>
</g>
<g transform="translate(190.6 270.5)" class="move rotate austrailia">
<circle cx="234.9" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M232.6-84.7q.1.8.8 1.3.6.6 1.5.5.8 0 1.4-.7l.3-.5h-.9l-.6-.5h2.4l.5 2.4-.7-.5-.1-1-.4.5q-.8.8-1.9 1-1.1 0-2-.7-.8-.6-1-1.7zM232.6-86.4q.1-.9.8-1.4.6-.5 1.5-.4.8 0 1.4.7l.3.4h-.9l-.6.5h2.4l.5-2.3-.7.5-.1 1-.4-.5q-.8-.9-1.9-1-1.1-.1-2 .6-.8.7-1 1.7z"
aria-label="⤻" stroke-width=".4"></path>
</g>
</g>
<g class="continent asia" transform="translate(0 0) rotate(0 324.1 114.2)">
<path fill="#afafaf" stroke-width="1.1"
d="M417.5 81.3c-1.6-1.7-7.2-.1-7.7-4.6 1.5-4.3-5.4-2.8-7.3-5.3-1.6 1.5.2 9.9-3.9 6.3-3.9-1.4-9-3-12-4.6-.6 3-7.6 2.5-2.6 3.8 4.8-2.5 1.6 2.6-1.3 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2 2-1.1 5 .5 7.3-.6 4 3.3 0 5.1-.7.3-3.1-.1-6.6.3-9.7 1-.5 1.4-5.4 2.8-3.9 2.5 1-1.1 3.1-1 5.3-.9 4 3 3.4 5.5 2.3 1.2-2.5 3.8-5.7 2.8-8.6-.2-1-4.2-2.6 3.9-1.5 2 2-2.2 1.5-.6 2.7-2.2.6-1.8 4.2 1 2.8 0 .5-.4 3.3-1.2 4 1.4 1.1-.3 1.2-.8 3-2 1-1.6.3-.6-.6.5-1.9-1-1.5-2.3-1.5-1.4.7-4.5 2.4-6.8 2.6-2.2 1.8 3.7.8 1.7 3.2-.4-.5-1.6-1.1-2.1-.2-.4.7-.1 3-1 3.9-.7.9-3.5 0-3.4.6 30 12.3 29-11.6 19.3-29.8-3.1-.9-6.2 1.8-10.2 1.4z">
</path>
<g transform="translate(103.4 192.5)" class="move translate asia">
<circle cx="220.6" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M220.6-90.6l-.5 1-1 1.1v.5l1.4-1v3.1h-3.2c.4-.4.7-.8 1-1.4h-.4l-1.2 1c-.3.3-.7.4-1 .6v.2l1 .5 1.2 1h.4l-1-1.4h3.2v3.2l-1.4-1v.4l1 1.2.5 1h.2l.5-1 1-1.2v-.4c-.5.2-1 .6-1.4 1v-3.2h3.2l-1 1.4h.4l1.2-1 1-.5v-.2c-.3-.2-.7-.3-1-.6l-1.2-1h-.4c.3.6.6 1 1 1.4H221V-89c.4.5 1 .8 1.4 1v-.4l-1-1.1-.5-1z"
aria-label="↔" stroke-width=".3"></path>
</g>
<g transform="translate(103.4 192.5)" class="move rotate asia">
<circle cx="234.9" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M232.6-84.7q.1.8.8 1.3.6.6 1.5.5.8 0 1.4-.7l.3-.5h-.9l-.6-.5h2.4l.5 2.4-.7-.5-.1-1-.4.5q-.8.8-1.9 1-1.1 0-2-.7-.8-.6-1-1.7zM232.6-86.4q.1-.9.8-1.4.6-.5 1.5-.4.8 0 1.4.7l.3.4h-.9l-.6.5h2.4l.5-2.3-.7.5-.1 1-.4-.5q-.8-.9-1.9-1-1.1-.1-2 .6-.8.7-1 1.7z"
stroke-width=".4" aria-label="⤻"></path>
</g>
</g>
<g class="continent india" transform="translate(0 0) rotate(0 347.9 161.3)">
<path fill="#afafaf" stroke-width="1.1"
d="M352.4 180.7c-2.6-.1-2.6-3.8-4.8-4.9-1.3-2.2-3-4.1-4.3-6.3-1.3-1.7-1.3-5.1-4-5-2.3-.2-3.9-2-5.5-3.4-1.3-1.2-3.2-2.5-3.2-4.5 1.3-1 2.4-2.4 3.4-3.8 1.4-2 3.3-3.6 4.3-5.8 1-2 2.8-3.6 4.5-5 2-.6 4.1 1 5.8 2 1.3 2 3.9 2 5.5 3.3 1.6 1.7 3.8 2.7 5.6 4 1.2 1.8 3.8 1 5 2.7 1.2 1.7-.4 3.1-2.2 3-.8.8-.4 2.6-1.8 3.4-1.4 1.5-1.9 3.6-3.3 5.1-.6 2.1-4 3.2-2.4 5.7.9 2 0 4.2 1 6.2.7 1.8-1.5 2.3-2.7 3l-.9.3z">
</path>
<path fill="#96de80" fill-opacity=".8" stroke-width=".3"
d="M351 179.8a10 10 0 015-2.4c-1.2-1.6 0-4.4-1-6.2 0 0-.8-1-.5-1.5 1.7-2.4 3.3-4.4 4.1-6 .6-1 .4-1.8 1.6-2.9.5-.4 2-1.4 2.4-3.8 2.3.2 2.7-1.2 2.6-2 0-1.1-2.6-1.4-4.2-2.7l-4.1-2.8c-2.6 9-8.5 16.1-13.6 20z">
</path>
<path fill="#ded880" fill-opacity=".8" stroke-width=".3"
d="M342 166.7c-.6-1.2-1.2-2.3-2.7-2.3-2.3 0-3.9-1.9-5.5-3.3 5.3-6.5 9-10.3 11.4-19 1.2.4 2.4 1.3 3.4 1.9 1.3 2 3.9 2 5.5 3.3a44.7 44.7 0 01-12.1 19.4z">
</path>
<g transform="translate(118.8 246.6)" class="move translate india">
<circle cx="220.6" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M220.6-90.6l-.5 1-1 1.1v.5l1.4-1v3.1h-3.2c.4-.4.7-.8 1-1.4h-.4l-1.2 1c-.3.3-.7.4-1 .6v.2l1 .5 1.2 1h.4l-1-1.4h3.2v3.2l-1.4-1v.4l1 1.2.5 1h.2l.5-1 1-1.2v-.4c-.5.2-1 .6-1.4 1v-3.2h3.2l-1 1.4h.4l1.2-1 1-.5v-.2c-.3-.2-.7-.3-1-.6l-1.2-1h-.4c.3.6.6 1 1 1.4H221V-89c.4.5 1 .8 1.4 1v-.4l-1-1.1-.5-1z"
stroke-width=".3" aria-label="↔"></path>
</g>
<g transform="translate(118.8 246.6)" class="move rotate india">
<circle cx="234.9" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M232.6-84.7q.1.8.8 1.3.6.6 1.5.5.8 0 1.4-.7l.3-.5h-.9l-.6-.5h2.4l.5 2.4-.7-.5-.1-1-.4.5q-.8.8-1.9 1-1.1 0-2-.7-.8-.6-1-1.7zM232.6-86.4q.1-.9.8-1.4.6-.5 1.5-.4.8 0 1.4.7l.3.4h-.9l-.6.5h2.4l.5-2.3-.7.5-.1 1-.4-.5q-.8-.9-1.9-1-1.1-.1-2 .6-.8.7-1 1.7z"
aria-label="⤻" stroke-width=".4"></path>
</g>
</g>
<g class="continent north-america" transform="translate(0 0) rotate(0 104.4 107.4)">
<path fill="#afafaf" stroke-width="1.1"
d="M100.6 166.7c-3-3.5-8-3.5-10.9-7-4.5-1-6.5-4.7-10.3-7.5-3.2-3.3-6.7-6.6-4-10.8-1.3-4.1-2.6-7.5-3.2-11.5-2.4-2 1.6-6.7-1.8-7.2-.7 3.9 1 8.3 0 12.4 2.7 2.2-2 4.2-1.3.1-.6-2.8-.1-5.3-2-8.1 3.5 0-.4-5.4 1.4-7.7.4-4.2-3.2-7.7-.7-12.1 0-4.7 3.9-7.6 7-10.6 3-2 1.6-6.4 2.6-8 2-3.4 1.2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1.5.9 10.5-3.6 11.7-3.4-2.4-.2-9-5-8.6-2-2.7-5.6-1.3-6.1-.3-3.4-2-11.2-4.5-12 1.6-3.8 3.1-4.3 9.6-.3 12.7 4.5 1.8 6.5-3 10.6-2.4 6.1.6-4.3 5.5-1.8 7.9.8 3.6 9.6 3.1 2.5 7zm10-45.5c.5-1.9 2.4-7.8 4.7-4.3-1.2 3 2.3 3.6 2.7.8 3.5 1.2-1.6-4.4-2.8-2.2-3.6-4-7.6 5-4.7 5.7zm-3.4-9c2.5-.8 6.1 4.4 7.5.7-1-4.2-5-2.9-7.6-1.3-.5 0-.7 1.1.1.6z">
</path>
<path fill="#deac80" fill-opacity=".8" stroke-width=".3"
d="M131.8 119.2c-1.6 1-2.7 2.4-2.2 4.5-4.2 0-4.7 4-7.5 6.9-11.6-9.4-16.8-1.3-21.2-15.7-5.7-18.6 19.3-8.9 30.9 4.3z">
</path>
<path fill="#de8080" fill-opacity=".8" stroke-width=".3"
d="M133.2 89.4c.3 2-5 .2-6.5-2.3-2.4.1-3.4-1.3-2.2-3-.8 2.8-4.1-2.5-2.9 1.5 3 3.4-1.8.7-3.1 2.3-2.8-.7 1.4-4.5-2.2-2-4.2 1.8-8.9 7-3 10 2.6 3.3 7.2 5.7 7 10.1 2.8 2.5.6-3.4 1.9-4.2 4.6-2.3-.5-6.4 1.7-9.9-1.2-5.2 5.3-1.5 6.7.4-.5 4.5 3.4 4 3.6 0 2.8 3.8 4.2 8 8.4 10.2 1.7 1 1.7 2.2.9 3.4-10.2-2.1-18.3 3.7-22.1 2.3-8.1-3-13-11.2-15-18.4-1.6-9 7.4-13 23.5-2.2 1 .6 2.2 1.5 3.3 1.8z">
</path>
<path fill="#d880de" fill-opacity=".8" stroke-width=".3"
d="M100.1 66.4c.2.4 1.6.2 1 1.4 1.6-.5 4.1 2.3 3.2-.8-4.8-.6 3.2-9 4.3-2.7-1.4 4.9 7 1.4 3.5 5.8-2.2 3.6 2.8 2.4 0 5.2 5.4-.6-3.2-6.7 3.5-7.5-1.3-2.8-7.2-.6-6.9-5.6-3-4.2 11.4-2.8 4.5-.2-2.8 1 1.6 0 1.1 2.2.6-2.5 1.6-3 1.6-.2 4.8.9-3-2.1.8-4.3 3 2.4 2.1 2.5 1.8-.3 2.3-1 6-5 7 .3 2.3 2-1 4.9-.2 7.5-.4 1.9-1.8 3.4-3.6 3.4 4.3 1 8 4.8 10.6 8.3 1.4 1.6 4.8 5.4 1 6.3-3.3-2.6 2.2 4 1.2 3.4-4.5-2.8-9.2-7.1-15.5-9-10.8-3-23.8-4.2-18.9-13.2z">
</path>
<g transform="translate(-134.7 202)" class="move translate north-america">
<circle cx="222.7" cy="-90.5" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M222.7-95.5l-.5 1-1 1.1v.4c.5-.2 1-.6 1.4-1v3.2h-3.2l1-1.4h-.4l-1.2 1-1 .6v.2c.4 0 .7.3 1 .5l1.2 1h.4l-1-1.4h3.2v3.2c-.4-.4-.9-.8-1.4-1v.4c.4.5.8.8 1 1.2l.5 1h.2l.5-1 1-1.2v-.4c-.5.2-1 .6-1.4 1v-3.2h3.2l-1 1.4h.4l1.2-1 1-.5v-.2l-1-.6-1.2-1h-.4l1 1.4H223V-94l1.4 1v-.4l-1-1.2-.5-1z"
stroke-width=".3" aria-label="↔"></path>
</g>
<g transform="translate(-132.6 197.1)" class="move rotate north-america">
<circle cx="234.9" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M232.6-84.7q.1.8.8 1.3.6.6 1.5.5.8 0 1.4-.7l.3-.5h-.9l-.6-.5h2.4l.5 2.4-.7-.5-.1-1-.4.5q-.8.8-1.9 1-1.1 0-2-.7-.8-.6-1-1.7zM232.6-86.4q.1-.9.8-1.4.6-.5 1.5-.4.8 0 1.4.7l.3.4h-.9l-.6.5h2.4l.5-2.3-.7.5-.1 1-.4-.5q-.8-.9-1.9-1-1.1-.1-2 .6-.8.7-1 1.7z"
stroke-width=".4" aria-label="⤻"></path>
</g>
</g>
<g class="continent greenland" transform="translate(0 0) rotate(0 158.1 79.3)">
<path fill="#afafaf" stroke-width="1.1"
d="M165 97.6c-1-1.3-2.8 0-4-.9-1.5-1-2.9-2.3-3.8-4a8.5 8.5 0 01-2.4-4.5c-.7-1.3 2-2.3 0-2.9-1.4.9-2.2-.6-1.7-1.9.2-1.1-1.5-.8-1.3-2.2-.4-1.6-1.4-3-2.5-4.2-.5-1.5-2.1-1-3 0-1.5-1.1-2.6-2.8-2.3-4.7 0-1.4 2.7-1.7 1.5-2.9.5-1.4 1-3.2 2.4-4 1.7-1 1.7-3.5 3.8-4 1.6-1 2.9 1.4 4-.4 1.6-.6 1.7 2.2 2.9 2.8 1 1.4 2.7 2.2 3.8 3.5 1.1.6 2.3 1 2.1 2.7.3.8.7 1.1.5 2 1 1.2 3.2 1.8 3.7 3.5.1 2-.1 4.3-1.6 5.9-.7 1.7.2 3.9-1 5.5-1.6 1-.8 2.6-.7 4 0 1.7.4 3.3.7 4.9.2.8.1 2.2-1.1 1.8z">
</path>
<path fill="#de8080" fill-opacity=".8" stroke-width=".3"
d="M154.8 88.2c-.7-1.3 2-2.3 0-2.9-1.4.9-2.2-.6-1.7-1.9.2-1.1-1.5-.8-1.3-2.2-.4-1.6-1.4-3-2.5-4.2-.5-1.5-2.1-1-3 0-1.5-1.1-2.6-2.8-2.3-4.7 0-1.4.8-1.3.8-1.3 8.4 3.5 12.8 13.4 21.4 12.2-.7 1.7 1.1 2-.1 3.7-1.6 1-.8 2.6-.7 4 0 0-6.8-.7-10.6-2.7z">
</path>
<path fill="#d980de" fill-opacity=".8" stroke-width=".3"
d="M147.9 65.3c1.7-.9 1.7-3.4 3.8-4 1.6-1 2.9 1.5 4-.3 1.6-.6 1.7 2.2 2.9 2.8 1 1.4 2.7 2.2 3.8 3.5 1.1.6 2.3 1 2.1 2.7.3.8.7 1.1.5 2 1 1.2 3.2 1.8 3.7 3.5 0 1.4 0 2-.3 3.5-6.7.4-20.3-6.8-22.5-8.8-.3-.2 0 0-.3-1.2-.3-1.3 1.4-3.2 2.3-3.7z">
</path>
<g transform="translate(-68.5 163)" class="move translate greenland">
<circle cx="220.6" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M220.6-90.6l-.5 1-1 1.1v.5l1.4-1v3.1h-3.2c.4-.4.7-.8 1-1.4h-.4l-1.2 1c-.3.3-.7.4-1 .6v.2l1 .5 1.2 1h.4l-1-1.4h3.2v3.2l-1.4-1v.4l1 1.2.5 1h.2l.5-1 1-1.2v-.4c-.5.2-1 .6-1.4 1v-3.2h3.2l-1 1.4h.4l1.2-1 1-.5v-.2c-.3-.2-.7-.3-1-.6l-1.2-1h-.4c.3.6.6 1 1 1.4H221V-89c.4.5 1 .8 1.4 1v-.4l-1-1.1-.5-1z"
stroke-width=".3" aria-label="↔"></path>
</g>
<g transform="translate(-68.5 163)" class="move rotate greenland">
<circle cx="234.9" cy="-85.6" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M232.6-84.7q.1.8.8 1.3.6.6 1.5.5.8 0 1.4-.7l.3-.5h-.9l-.6-.5h2.4l.5 2.4-.7-.5-.1-1-.4.5q-.8.8-1.9 1-1.1 0-2-.7-.8-.6-1-1.7zM232.6-86.4q.1-.9.8-1.4.6-.5 1.5-.4.8 0 1.4.7l.3.4h-.9l-.6.5h2.4l.5-2.3-.7.5-.1 1-.4-.5q-.8-.9-1.9-1-1.1-.1-2 .6-.8.7-1 1.7z"
aria-label="⤻" stroke-width=".4"></path>
</g>
</g>
<g class="continent south-america" transform="translate(0 0) rotate(0 122.7 217.9)">
<path fill="#afafaf" stroke-width="1.1"
d="M102.8 271.9c-3.4-1.2-5-5-5.4-7.8-2.4-1.7 1-6 .1-8.8.8-4.2.1-8.5.7-12.7 2.8-4.1 1.1-9.2 2.5-13.6.3-5 2.8-10.7.4-15.5-3.5-3.5-8.5-5.5-9.6-11-.6-4.8-6.9-7.6-5.8-12.6.5-4.7 3.1-8.2 5.7-11.8 2.2-4.2 2.7-10.4 7.6-12.4 4.4-1.7 9.6-2.8 14-.3 5 .6 8.5 4.8 11.3 8.6 4.4 2 9.2 3.2 12.3 7.4 3 3.8 4.7 8 10 9.1a24 24 0 0111 7.1c5.5 3-.3 9.3-3.7 11.6-4.6 1.8-1.8 8-5.3 10.6-1.5 5.3-6.4 5.5-10.7 6-5.2 1.2-4.3 7.2-8.2 9.8-2.5 1.1-.5 4.5-3.2 4.3-.2.5-4 4.5-12.8 8-.8 1.3-2.5 2.9-5 2.6 4.5 3.5-6.2 5.7-1.5 9.2.4 2.7-5 4.4-2.4 8 1.5 2.9 4.3 4.3-2 4.2zm43.2-81.3c-.5-.9-.6.3 0 0zm-47.6 77.7c1-.3-.1.4 0 0zm2.4-103.7c-.3-1 .6.4 0 0z">
</path>
<path fill="#808bde" fill-opacity=".8" stroke-width=".3"
d="M115.7 247c-5.2-4-14.8-2.5-12.4-9.3 2.4-6.7 19.7 5.3 19.7 5.3-3.6 2-3.2 2.3-7.3 4z"></path>
<path fill="#96de80" fill-opacity=".8" stroke-width=".3"
d="M126.5 239.9c.1-.5-23.2-9.4-21.6-13 3.8-8.7 28 4.3 28 4.3a9 9 0 01-4.3 5c-1.4 1-.1 3.8-2.1 3.7z">
</path>
<path fill="#deac80" fill-opacity=".8" stroke-width=".3"
d="M120.3 211.2c-2.8-13.5 17.6-1.7 32.1-18 1.9 1.2 3.6 2.8 5.2 4.4 5.5 3-.3 9.3-3.7 11.6-8.3 7.8-30.9 14.9-33.6 2z">
</path>
<g transform="translate(-75.2 233)" class="move translate south-america">
<circle cx="182" cy="-41.3" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M182-46.3l-.6 1c-.2.3-.5.7-1 1.1v.4c.5-.2 1-.5 1.4-1v3.2h-3.2c.4-.4.8-.9 1-1.4h-.4l-1.2 1c-.3.3-.6.4-1 .6v.2c.4 0 .7.3 1 .5l1.2 1h.4c-.2-.5-.6-1-1-1.4h3.2v3.2c-.4-.4-.9-.8-1.4-1v.4c.5.5.8.8 1 1.2l.5 1h.2c.2-.4.3-.7.6-1 .2-.4.5-.7 1-1.2v-.4c-.6.2-1 .6-1.4 1v-3.2h3.2c-.5.4-.8.9-1 1.4h.4c.4-.5.8-.8 1.1-1l1-.5v-.2l-1-.6c-.3-.2-.7-.5-1.1-1h-.4c.2.5.5 1 1 1.4h-3.2v-3.2c.4.5.8.8 1.4 1v-.4c-.5-.4-.8-.8-1-1.2-.3-.3-.4-.6-.6-1z"
stroke-width=".3" aria-label="↔"></path>
</g>
<g transform="translate(-75.2 233)" class="move rotate south-america">
<circle cx="196.3" cy="-41.3" r="5.9" fill="#fff" stroke-width=".2"></circle>
<path
d="M194-40.4q0 .8.7 1.3.6.6 1.5.5.9-.1 1.4-.7l.4-.5h-1l-.5-.5h2.3l.5 2.4-.6-.5-.2-1-.4.5q-.7.8-1.9 1-1.1 0-2-.7-.7-.6-.9-1.7zM194-42.2q0-.8.7-1.3.6-.5 1.5-.5.9.1 1.4.8l.4.4h-1l-.5.5h2.3l.5-2.4-.6.6-.2 1-.4-.5q-.7-1-1.9-1-1.1-.1-2 .6-.7.7-.9 1.7z"
aria-label="⤻" stroke-width=".4"></path>
</g>
</g>
</g>
</svg>
<div class="instructions">
Click the
<svg height="20" viewBox="0 0 14 14">
<g stroke="#000" fill-rule="evenodd" stroke-linejoin="round" stroke-linecap="round">
<circle cx="7" cy="7" r="6" fill="#fff" stroke-width=".2"></circle>
<path
d="M7 2l-.6 1c-.2.3-.5.7-1 1.1v.4c.5-.2 1-.5 1.4-1v3.2h-3.2c.4-.4.8-.9 1-1.4h-.4l-1.2 1c-.3.3-.6.4-1 .6v.2c.4 0 .7.3 1 .5l1.2 1h.4c-.2-.5-.6-1-1-1.4h3.2v3.2c-.4-.4-.9-.8-1.4-1v.4c.5.5.8.8 1 1.2l.5 1h.2c.2-.4.3-.7.6-1 .2-.4.5-.7 1-1.2v-.4c-.6.2-1 .6-1.4 1v-3.2h3.2c-.5.4-.8.9-1 1.4h.4c.4-.5.8-.8 1.1-1l1-.5v-.2l-1-.6c-.3-.2-.7-.5-1.1-1h-.4c.2.5.5 1 1 1.4h-3.2v-3.2c.4.5.8.8 1.4 1v-.4c-.5-.4-.8-.8-1-1.2-.3-.3-.4-.6-.6-1z"
stroke-width=".3" aria-label="↔"></path>
</g>
</svg>
button to move the continent.<br>Click the
<svg height="20" viewBox="0 0 14 14">
<g stroke="#000" fill-rule="evenodd" stroke-linejoin="round" stroke-linecap="round">
<circle cx="7" cy="7" r="6" fill="#fff" stroke-width=".2"></circle>
<path
d="M5 8q0 .8.7 1.3.6.6 1.5.5.9-.1 1.4-.7l.4-.5h-1l-.5-.5h2.3l.5 2.4-.6-.5-.2-1-.4.5q-.7.8-1.9 1-1.1 0-2-.7-.7-.6-.9-1.7zM5 6q0-.8.7-1.3.6-.5 1.5-.5.9.1 1.4.8l.4.4h-1l-.5.5h2.3l.5-2.4-.6.6-.2 1-.4-.5q-.7-1-1.9-1-1.1-.1-2 .6-.7.7-.9 1.7z"
aria-label="⤻" stroke-width=".4"></path>
</g>
</svg>
button to rotate it.
</div>
<div class="map-key">
<p class="feature flora">European Flora</p>
<p class="feature alpine">Alpine Mountains</p>
<p class="feature cynognathus">Cynognathus</p>
<p class="feature lystrosaurus">Lystrosaurus</p>
<p class="feature glossopteris">Glossopteris</p>
<p class="feature titanosaur">Titanosaur</p>
<p class="feature mesosaurus">Mesosaurus</p>
</div>
<button class="download" onclick="makeImage();">Download as JPG</button>
<script>
var continents = $$('.continent');
var currentContinent = null;
var currentAction = null;
var coords = {
startX: 0,
startY: 0,
elementX: 0,
elementY: 0,
rotation: 0,
centerX: 0,
centerY: 0,
}
for (let i = 0; i < continents.length; i++) {
let continentName = continents[i].getAttribute('class').replace(/continent /g, '');
$('.move.translate.' + continentName).addEventListener('mousedown', (event) => {
currentAction = 'translate';
currentContinent = continentName;
coords.startX = event.screenX;
coords.startY = event.screenY;
let currentElement = $('.continent.' + currentContinent);
let currentElementTransform = currentElement.getAttribute('transform');
currentElementTransform = currentElementTransform.replace(
/translate\(([-.0-9]+) ([-.0-9]+)\) rotate\(([-.0-9]+) ([-.0-9]+) ([-.0-9]+)\)/g,
'$1,$2,$3,$4,$5'
).split(',');
coords.elementX = parseFloat(currentElementTransform[0]);
coords.elementY = parseFloat(currentElementTransform[1]);
coords.rotation = parseFloat(currentElementTransform[2]);
coords.centerX = parseFloat(currentElementTransform[3]);
coords.centerY = parseFloat(currentElementTransform[4]);
});
$('.move.rotate.' + continentName).addEventListener('mousedown', (event) => {
currentAction = 'rotate';
currentContinent = continentName;
let moveIcon = $('.move.translate.' + currentContinent).getBoundingClientRect();
coords.startX = moveIcon.x + moveIcon.width / 2;
coords.startY = moveIcon.y + moveIcon.height / 2;
let currentElement = $('.continent.' + currentContinent);
let currentElementTransform = currentElement.getAttribute('transform');
currentElementTransform = currentElementTransform.replace(
/translate\(([-.0-9]+) ([-.0-9]+)\) rotate\(([-.0-9]+) ([-.0-9]+) ([-.0-9]+)\)/g,
'$1,$2,$3,$4,$5'
).split(',');
coords.elementX = parseFloat(currentElementTransform[0]);
coords.elementY = parseFloat(currentElementTransform[1]);
coords.rotation = parseFloat(currentElementTransform[2]);
coords.centerX = parseFloat(currentElementTransform[3]);
coords.centerY = parseFloat(currentElementTransform[4]);
});
}
document.body.addEventListener('mousemove', (event) => {
if (currentContinent && currentAction === 'translate') {
var scaleRatio = (443 / $('svg.map').clientWidth);
var dx = coords.elementX + scaleRatio * (event.screenX - coords.startX);
var dy = coords.elementY + scaleRatio * (event.screenY - coords.startY);
$('.continent.' + currentContinent).setAttribute('transform', 'translate(' + dx + ' ' + dy + ') rotate(' + coords.rotation + ' ' + coords.centerX + ' ' + coords.centerY + ')');
} else if (currentContinent && currentAction === 'rotate') {
var dx = event.clientX - coords.startX;
var dy = event.clientY - coords.startY;
var rotation = -180 * Math.atan2(dx, dy) / Math.PI + 90;
rotation = rotation > 0 ? rotation : rotation + 360;
$('.continent.' + currentContinent).setAttribute('transform', 'translate(' + coords.elementX + ' ' + coords.elementY + ') rotate(' + rotation + ' ' + coords.centerX + ' ' + coords.centerY + ')');
}
});
document.body.addEventListener('mouseup', (event) => {
if (currentContinent && currentAction) {
currentContinent = null;
currentAction = null;
coords = {
startX: 0,
startY: 0,
elementX: 0,
elementY: 0,
rotation: 0,
}
}
});
function makeImage() {
var moveButtons = $$('.move');
for (let i = 0; i < moveButtons.length; i++) {
moveButtons[i].style.display = 'none';
}
var svgElement = $('svg.map');
let {
width,
height
} = svgElement.getBBox();
let clonedSvgElement = svgElement.cloneNode(true);
let outerHTML = clonedSvgElement.outerHTML;
outerHTML = outerHTML.replace();
let blob = new Blob([outerHTML], {
type: 'image/svg+xml;charset=utf-8'
});
let URL = window.URL || window.webkitURL || window;
let blobURL = URL.createObjectURL(blob);
let image = new Image();
image.onload = () => {
let canvas = document.createElement('canvas');
canvas.width = width * 5;
canvas.height = height * 5;
let context = canvas.getContext('2d');
// draw image in canvas starting left-0 , top - 0
context.drawImage(image, 0, 0, width * 5, height * 5);
// downloadImage(canvas); need to implement
let jpeg = canvas.toDataURL('image/jpg');
var download = function (href, name) {
var link = document.createElement('a');
link.download = name;
link.style.opacity = "0";
document.body.appendChild(link);
link.href = href;
link.click();
link.remove();
for (let i = 0; i < moveButtons.length; i++) {
moveButtons[i].style.display = 'unset';
}
}
download(jpeg, 'pangea.jpg');
};
image.src = blobURL;
}
</script>
</body>
</html>