forked from nagix/nk-missile-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·436 lines (406 loc) · 18.2 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
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
<!doctype html>
<html lang="en">
<head>
<title>North Korea Missile Test Visualization</title>
<meta charset="utf-8">
<meta name="description" content="An interactive visualization of flight tests of all missiles launched by North Korea from 1984 to 2024. This data visualization was produced by Akihiko Kusanagi. The data for this visualization are sourced from the CNS North Korea Missile Test Database.">
<meta name="viewport" content="user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@nagix">
<meta property="og:title" content="North Korea Missile Test Visualization">
<meta property="og:description" content="An interactive visualization of flight tests of all missiles launched by North Korea from 1984 to 2024. This data visualization was produced by Akihiko Kusanagi. The data for this visualization are sourced from the CNS North Korea Missile Test Database.">
<meta property="og:url" content="https://nagix.github.io/nk-missile-tests/">
<meta property="og:image" content="https://nagix.github.io/nk-missile-tests/images/screenshot.jpg">
<link rel="stylesheet" type="text/css" href="css/OverlayScrollbars.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body onload="start()" id="dataviz" class="">
<div id="wrapper">
<div id="loading">
<h2>Loading North Korea Missile Test Data from 1984 to 2024. Please wait...</h2>
</div>
<div >
<table id="marker_template" class="marker" style="left:'0px';top:'0px'">
<tr><td><span id="testText" class="test"></span><div class="close"></div></td></tr>
<tr><td><span id="detailText" class="detail"></span></td></tr>
<tr><td><span id="descriptionText" class="description"></span></td></tr>
</table>
</div>
<div id="visualization" >
<!-- 2D overlay elements go in here -->
<div id="glContainer">
<!-- 3D webgl canvas here -->
</div>
</div>
<script src="js/Detector.js"></script>
<script src="js/three-r87.min.js"></script>
<script src="js/THREEx.KeyboardState.js"></script>
<script src="js/THREEx.WindowResize.js"></script>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/jquery-ui-1.12.1.custom.min.js"></script>
<script src="js/jquery.ui.touch-punch.min.js"></script>
<script src="js/RequestAnimationFrame.js"></script>
<script src="js/ShaderExtras.js"></script>
<script src="js/util.js"></script>
<script src="js/mousekeyboard.js"></script>
<script src="js/dataloading.js"></script>
<script src="js/geopins.js"></script>
<script src="js/visualize.js"></script>
<script src="js/visualize_lines.js"></script>
<script src="js/markers.js"></script>
<script src="js/orb-satellite.v2.js"></script>
<script src="js/satellites.js"></script>
<script src="js/d3-5.12.0.min.js"></script>
<script src="js/ui.controls.js"></script>
<script src="js/hammer-2.0.8.min.js"></script>
<script src="js/jquery.overlayScrollbars.min.js"></script>
<script type="x-shader/x-vertex" id="vertexshader">
uniform float amplitude;
attribute float size;
attribute vec3 customColor;
varying vec3 vColor;
void main() {
vColor = customColor;
vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
gl_PointSize = size;
gl_Position = projectionMatrix * mvPosition;
}
</script>
<script type="x-shader/x-fragment" id="fragmentshader">
uniform vec3 color;
uniform sampler2D texture;
varying vec3 vColor;
void main() {
gl_FragColor = vec4( color * vColor, 1.0 );
gl_FragColor = gl_FragColor * texture2D( texture, gl_PointCoord );
}
</script>
<!-- Custom Shader Code for atmospheric glow -->
<script type="x-shader/x-vertex" id="vertexShaderAtmosphere">
varying vec3 vNormal;
varying vec3 vPosition;
void main() {
vNormal = normalize( normalMatrix * normal );
vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
vPosition = normalize( vec3( mvPosition.x, mvPosition.y, mvPosition.z ) );
gl_Position = projectionMatrix * mvPosition;
}
</script>
<!-- fragment shader a.k.a. pixel shader -->
<script type="x-shader/x-vertex" id="fragmentShaderAtmosphere">
varying vec3 vNormal;
varying vec3 vPosition;
void main() {
float intensity = dot( vNormal, vPosition ) * 2.92 - 2.4;
gl_FragColor = vec4( 1.0, 1.0, 1.0, 1.0 ) * intensity;
}
</script>
<script src="js/main.js" type="text/javascript"></script>
<script type="text/javascript">
(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-39988758-2', 'auto');
ga('send', 'pageview');
</script>
<!-- All other hud can go here-->
<div id="hudHeader" class="overlayTests noPointer">
<h1 class="noPointer">
<div class="title">North Korea Missile Test Visualization</div>
<div class="subtitle">An interactive visualization of flight tests of all missiles launched by North Korea from 1984 to 2024</div>
</h1>
</div>
<div class="overlayTests noPointer" id="hudButtons">
<div class="hudButtonGroup">
<input type="button" value="SEARCH" class="searchBtn testsBtn pointer"><br />
<input type="button" value="ABOUT" class="aboutBtn testsBtn pointer">
</div>
<input type="text" name="test" class="testTextInput pointer noMapDrag">
<div class="hudButtonGroup">
<input type="button" class="tiltBtn topViewBtn testsBtn pointer noMapDrag"><br />
<input type="button" class="tiltBtn sideViewBtn testsBtn pointer noMapDrag">
</div>
<div class="hudButtonGroup">
<input type="button" value="+" class="zoomBtn zoomInBtn testsBtn pointer noMapDrag"><br />
<input type="button" value="—" class="zoomBtn zoomOutBtn testsBtn pointer noMapDrag">
</div>
<div id="hudButtonHandle" class="pointer noMapDrag"></div>
</div>
<div id="outcomeBtns" class="overlayTests">
<div class="success">
<div class="label">Success</div><br class="clear">
</div>
<div class="failure">
<div class="label">Failure</div><br class="clear">
</div>
<div class="unknown">
<div class="label">Unknown</div><br class="clear">
</div>
</div>
<div id="history" class="overlayTests noPointer">
<div class="graph">
<div class="close"></div>
<div class="labels">
<div class="outcome">TEST OUTCOME</div>
<div class="unknowns">UNKNOWN</div>
<div class="failures">FAILURE</div>
<div class="successes">SUCCESS</div><br class="clear" />
</div>
<div class="container noPointer"></div>
</div>
<ul class="timeline pointer">
<li class="first"><span>1984</span></li>
<li><span>86</span></li>
<li><span>90</span></li>
<li><span>91</span></li>
<li><span>92</span></li>
<li><span>93</span></li>
<li><span>98</span></li>
<li><span>06</span></li>
<li><span>09</span></li>
<li><span>12</span></li>
<li><span>13</span></li>
<li><span>14</span></li>
<li><span>15</span></li>
<li><span>16</span></li>
<li><span>17</span></li>
<li><span>19</span></li>
<li><span>20</span></li>
<li><span>21</span></li>
<li><span>22</span></li>
<li><span>23</span></li>
<li class="last"><span>2024</span></li>
<div id="handle" class="noMapDrag">
<div id="handle-image" class="noMapDrag noPointer"></div>
</div>
</ul>
</div>
<div id="graphIcon" class="overlayTests"></div>
<div id="missileTypeBtns" class="overlayTests">
<div class="missileTypeBtnGroup noMapDrag">
<div class="missileTypeBtn select-all">
<div class="box noMapDrag">
<svg class="check" height="16" width="16">
<defs>
<g id="partialbutton">
<circle r="8" cy="8" cx="8" style="stroke:none" />
<path d="M 3.6,8 L 12.4,8" style="fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round" />
</g>
<g id="checkbutton">
<circle r="8" cy="8" cx="8" style="stroke:none" />
<path d="M 3.6801386,8.536309 L 6.9552837,11.971756 L 12.41386,3.9557141" style="fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round" />
</g>
</defs>
<use xlink:href="#checkbutton" class="noMapDrag" />
</svg>
</div>
<div class="label noMapDrag">(Select All)</div><br class="clear">
</div>
<div class="missileTypeBtn chollima-1">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Chollima-1</div><br class="clear">
</div>
<div class="missileTypeBtn er-scud">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">ER Scud</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-8">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-8</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-8-marv">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-8 MaRV</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-11a">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-11A (KN-23)</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-11b">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-11B (KN-24)</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-11c">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-11C</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-11d">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-11D</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-11s">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-11S (Navalized KN-23)</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-12">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-12</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-14">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-14</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-15">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-15</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-17">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-17</div><br class="clear">
</div>
<div class="missileTypeBtn hwasong-18">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Hwasong-18</div><br class="clear">
</div>
<div class="missileTypeBtn kn-02">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">KN-02</div><br class="clear">
</div>
<div class="missileTypeBtn kn-25">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">KN-25</div><br class="clear">
</div>
<div class="missileTypeBtn musudan">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Musudan</div><br class="clear">
</div>
<div class="missileTypeBtn new-irbm-2022">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">New IRBM 2022</div><br class="clear">
</div>
<div class="missileTypeBtn nodong">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Nodong</div><br class="clear">
</div>
<div class="missileTypeBtn pukguksong-1">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Pukguksong-1</div><br class="clear">
</div>
<div class="missileTypeBtn pukguksong-2">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Pukguksong-2</div><br class="clear">
</div>
<div class="missileTypeBtn pukguksong-3">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Pukguksong-3</div><br class="clear">
</div>
<div class="missileTypeBtn rail-mobile-kn-23">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Rail-mobile KN-23</div><br class="clear">
</div>
<div class="missileTypeBtn scud-b">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Scud-B</div><br class="clear">
</div>
<div class="missileTypeBtn scud-b-marv">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Scud-B MaRV</div><br class="clear">
</div>
<div class="missileTypeBtn scud-c">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Scud-C</div><br class="clear">
</div>
<div class="missileTypeBtn scud-c-marv">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Scud-C MaRV</div><br class="clear">
</div>
<div class="missileTypeBtn silo-based-kn-23">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Silo-based KN-23</div><br class="clear">
</div>
<div class="missileTypeBtn taepodong-1">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Taepodong-1</div><br class="clear">
</div>
<div class="missileTypeBtn unha">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Unha</div><br class="clear">
</div>
<div class="missileTypeBtn unha-3">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Unha-3</div><br class="clear">
</div>
<div class="missileTypeBtn unknown">
<div class="box noMapDrag">
<svg class="check" height="16" width="16"><use xlink:href="#checkbutton" class="noMapDrag" /></svg>
</div>
<div class="label noMapDrag">Unknown</div><br class="clear">
</div>
</div>
<div id="missileTypeBtnHandle" class="pointer noMapDrag"></div>
</div>
<div id="aboutContainer" class="overlayTests">
<div class="arrowUp"></div>
<div id="aboutBox">
<div class="title">Information about the data</div>
<div class="text">
This data visualization was produced by <a href="https://nagix.github.io/" target="_blank">Akihiko Kusanagi</a>. The data for this visualization are sourced from <a href="http://www.nti.org/analysis/articles/cns-north-korea-missile-test-database/" target="_blank">the CNS North Korea Missile Test Database</a>, which is the first database to record flight tests of all missiles launched by North Korea capable of delivering a payload of at least 500 kilograms (1102.31 pounds) a distance of at least 300 kilometers (186.4 miles). The database captures advancements in North Korea's missile program by documenting all such tests since the first one occurred in April 1984, and will be routinely updated as events warrant.<br /><br />For more info and source code, please see the <a href="https://github.com/nagix/nk-missile-tests" target="_blank">GitHub repository</a>.
</div>
</div>
</div>
</div>
</body>
</html>