-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (66 loc) · 2.83 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
<!DOCTYPE html>
<html>
<head>
<title>EarthMC Dynglobe</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap" rel="stylesheet">
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/",
"three/addons/sprite-text": "https://unpkg.com/[email protected]/dist/three-spritetext.mjs"
}
}
</script>
<script type="module"> import * as THREE from 'three'; window.THREE = { ...THREE }; </script>
<script src="//unpkg.com/three-conic-polygon-geometry" defer></script>
</head>
<body>
<!-- menu ... -->
<button id="menu-button" style="display: none">
<div class="menu-kebab" style="top: 12px"></div>
<div class="menu-kebab" style="top: 20px"></div>
<div class="menu-kebab" style="top: 28px"></div>
</button>
<div id="menu" style="display: none">
<div class="menu-element" style="font-size: larger; text-align: center; padding: 5px 5px 0 5px">
EarthMC Dynglobe 2.0 by 3meraldK
</div>
<div class="menu-element" style="font-size: smaller; color: #555; text-align: center; padding: 0">
Toggle menu button via G key
</div>
<hr>
<div class="menu-element" style="padding: 0 0 0 5px">
<input type="checkbox" id="surface-flight" name="surface-flight" checked>
<label for="surface-flight">Surface flight</label>
</div>
<div class="menu-element" style="padding: 5px 0 0 10px">
<label>View angle</label>
<input type="range" id="surface-flight-view-angle" min="0.02" max="0.12" value="0.07" step="any" style="width: 100px">
</div>
<hr>
<div class="menu-element" style="padding: 0 0 0 5px">
<input type="checkbox" id="players" name="players" checked>
<label for="players">Players</label>
</div>
<div class="menu-element">
<input type="checkbox" id="towns" name="towns" checked>
<label for="towns">Towns</label>
</div>
<div class="menu-element" style="padding-bottom: 5px">
<input type="checkbox" id="town-labels" name="town-labels" checked>
<label for="town-labels">Town labels</label>
</div>
</div>
<!-- ... menu -->
<div id="loading-prompt">
<div id="title">
<div id="subtitle">
</div>
<script src="main.js" type="module"></script>
</body>
</html>