-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·195 lines (80 loc) · 5.11 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
<!doctype html>
<html>
<head>
<meta charset = "utf-8">
<meta name = "viewport" content = "width = device-width, initial-scale = 1, maximum-scale = 1, minimum-scale = 1, user-scalable = no">
<meta name = "description" content = "a 3D bar graph of the world">
<meta name = "keywords" content = "gidungjido, 3D, bar graph, world, WebGl, three.js, GDP, population, visualization">
<link rel = "stylesheet" href = "css/gidungjido.css">
<title>기둥地圖</title>
<link id = "country shapes" href = "data/ne_10m_admin_0_sovereignty_moderate.json"> <!-- relative url to the shape data file–will be used in gidungjido.js -->
<link id = "assets" href = "assets/"/> <!-- relative url to the flags directory -->
<script src = "english.js" type = "text/javascript"></script> <!-- javacript CONSTANTS that are language specific; every localized index.html will have one of these -->
<script src = "libraries/three.min.js" type = "text/javascript"></script>
<script src = "libraries/Tween.js" type = "text/javascript"></script>
</head>
<body>
<div id = "menu" class = "overlay crt">
<div id = "initialization" class = "loading">
loading... <br>
(the loading bar is broken, please check the console for loading information)
<!--
<div id = "loadingbar">
</div>
-->
</div>
<div id = "loaded" style = "display: none">
<h1 lang = "ko">기둥<ruby><rb>地</rb><rt>지</rt><rb>圖</rb><rt>도</rt></ruby></h1>
source data: <select id = "source" onchange = "sourcechange()">
<!--javascript will add stuff here-->
</select>
<h2>controls</h2>
<p>
move around with the <span class = "roundedborder">w</span> <span class = "roundedborder">a</span> <span class = "roundedborder">s</span> <span class = "roundedborder">d</span> keys, <span class = "roundedborder">shift</span> to go up, <span class = "roundedborder">space</span> to go down.<br>
move the mouse to look around, and scroll to zoom in and out.<br>
press <span class = "roundedborder">p</span> to take a screenshot. you will be redirected to a seperate page with the screenshot. right click on it and select "Save Image As..."<br>
press <span class = "roundedborder">i</span> to hide/show country information.<br>
<span class = "roundedborder">l</span>: lock camera movement (drag to look around)<br>
you can select what statistics to show from the "source data" menu at the top.<br>
please remember to adjust the "overall height" and "height contrast" sliders below and maybe change the theme for each dataset for maximum visibility.<br>
finally, press <span class = "roundedborder">esc</span> to toggle this menu.<br>
</p>
<h2>settings</h2>
<p>
overall height: <input type = "range" id = "maximumheight" min = "10" value = "40" max = "100" oninput = "maximumheightinput()"><br>
height contrast: <input type = "range" id = "contrast" min = "50" value = "30" max = "10" oninput = "contrastinput()"><br>
<input type = "checkbox" id = "countryinfocheckbox" checked = "checked" onclick = "countryinfocheckboxclicked()"> show country information (keyboard shortcut <span class = "roundedborder">i</span>)<br>
<input type = "checkbox" id = "cameralockcheckbox" checked = "checked" onclick = "lockcameracheckboxclicked()"> lock camera movement (drag to look around) (keyboard shortcut <span class = "roundedborder">l</span>)<br>
theme: <select id = "material" onchange = "materialchange()">
<!--javascript will add stuff here-->
</select><br>
<!-- temporary option -->
<!-- <input type = "checkbox" id = "prettier country sides" onclick = "PRETTIER_COUNTRY_SIDES_ON_HOVER = document.getElementById('prettier country sides').checked; "> prettier countries when you mouse over it (applies when you choose another dataset)<br> -->
<!--<input type = "checkbox" id = "shadowcheckbox" checked = "checked" onclick = "shadowcheckboxclicked()"> cast shadows (requires more computing power)<br>-->
<br>
<button type = "button" onclick = "defaultsettings()">default settings</button><br>
</p>
<br>
<p>
note: this website uses <a href = "https://en.wikipedia.org/wiki/WebGL">WebGL</a>, which seems to work best on <a href = "https://www.google.com/chrome/">Google Chrome</a>.<br>
you also need a keyboard, sorry mobile users
</p>
<p>
<a href = "한국어/">한국어</a><br>
</p>
</div>
<div id = "datasetloading" class = "loading" style = "display: none">
<span id = "datasetloadingtext">loading...</span><br>
<div id = "datasetloadingbar" class = "loadingbar">
</div>
</div>
</div>
<div id = "countryinfo" class = "crt" style = "display: none"> <!-- initially hidden -->
<!-- javascript will add stuff here -->
</div>
<script src = "js/Dataset.js" type = "text/javascript"></script>
<script src = "js/Country.js" type = "text/javascript"></script>
<script src = "js/gidungjido.js" type = "text/javascript"></script>
<script src = "js/DOM.js" type = "text/javascript"></script>
</body>
</html>