-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-codstyle.html
598 lines (575 loc) · 24.3 KB
/
index-codstyle.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
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
<!doctype html>
<html lang="en">
<head>
<title>Commodity Trade Flow CSE 591</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.5/nv.d3.css" />
<meta name="viewport" content="user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1">
<link rel="stylesheet" type="text/css" href="./assets/lib/bootstrap/dist/css/bootstrap.min.css" />
<link href="https://fonts.googleapis.com/css?family=Rajdhani" rel="stylesheet">
<!-- <link rel="stylesheet" type="text/css" href="../../assets/css/keen-dashboards.css" /> -->
<!-- <link rel="stylesheet" type="text/css" href="style.css"> -->
<!-- <link rel="stylesheet" type="text/css" href="geo-explorer.css" /> -->
</head>
<body onload="start()" id="dataviz" style="background:url('4.jpg'); overflow: hidden;position: fixed;">
<div id="app-toolbar" style="background: rgba(0,0,0,.75);
box-shadow: 0 1px 5px rgba(0,0,0,.5);
color: #fff;
padding-bottom: 3px;
border-bottom: 2px;
border-top-color:transparent;
border-right-color:transparent;
border-left-color:transparent;
border-style: solid;
border-bottom-color: rgb(0, 220, 224);
/*position: fixed;*/
top: 0px;
width: 100%;
z-index: 9999;">
<form name="myForm" action="" method="post">
Name:
<input type="text" name="fname">
<input type="button" value="ss" onclick="imade()">
</form>
<form action="" name="myForm2" onsubmit="return false;" method="post">
<div class="row tools">
<div class="col-sm-1">
<div class="tool radius" style="padding-left: 2rem;">
<div class=" noPointer" id="hudButtons">
<!-- <h5>Country</h5> -->
<input type="name" name="country" class="countryTextInput form-control pointer noMapDrag" style="background: black;color: #1da0e8;" value="UNITED STATES">
</div>
</div>
</div>
<div class="col-sm-1">
<div class="tool coordinates">
<!-- <h5>Country 2</h5> -->
<input type="name" step="any" style="background: black;color: #1da0e8;" id="coordinates-lng" name="country2" class="form-control" placeholder="Country2">
<!-- <input type="number" step="any" id="coordinates-lat" class="form-control" placeholder="Latitude"> -->
</div>
</div>
<div class="col-sm-1">
<div class="tool coordinates">
<!-- <h5>Commodity</h5> -->
<input type="name" step="any" style="background: black;color: #1da0e8;" id="coordinates-lng" class="form-control" placeholder="Commodity">
</div>
</div>
<div class="col-sm-1">
<div class="tool timeframe">
<!-- <h5>Start Time</h5> -->
<input type="date" id="timeframe-start" style="background: black;color: #1da0e8;" class="form-control" placeholder="mm/dd/yyyy">
</div>
</div>
<div class="col-sm-1">
<div class="tool timeframe">
<!-- <h5>End time</h5> -->
<span id="countryText" class="country"></span>
<input type="date" id="timeframe-end" style="background: black;color: #1da0e8;" class="form-control" placeholder="mm/dd/yyyy">
</div>
</div>
<div class="col-sm-1">
<div class="tool">
<!-- <h5>Commodity Trade Flow </h5> -->
<i type="button" id="refresh" class="btn fa fa-refresh fa-3"></i>
</div>
</div>
<i type="button" style="cursor: pointer; color: white;" class="fa fa-search-plus fa-3 zoomBtn zoomInBtn armsBtn pointer noMapDrag" aria-hidden="true"></i>
<i type="button" style="cursor: pointer; color: white;" class="fa fa-search-minus fa-3 zoomBtn zoomOutBtn armsBtn pointer noMapDrag" aria-hidden="true"></i>
</div>
</form>
</br>
</div>
<!-- <div style="margin-bottom: 5rem;"></div> -->
<div id="wrapper" class="row">
<div id="loading" class="col-md-12">
<!-- <h2>Loading...</h2>
-->
</div>
<div class="container">
<canvas class="col-md-3" style="max-height: 30rem;max-width: 30rem;margin-left: 0rem;z-index:9;margin-top:2rem; " id="m"></canvas>
<canvas class="col-md-1 pull-left" style="max-height: 20rem;max-width: 30rem;z-index:9;margin-left: -40rem;margin-top:20rem; " id="over"></canvas>
<canvas class="col-md-3 pull-right" style="max-height: 20rem;max-width: 20rem;z-index:9;margin-left: 10rem;margin-top:2rem; " id="doughnut"></canvas>
</div>
<!-- <div id="m" style="min-width: 310px; height: 400px; margin: 0 auto"></div> -->
<div class="col-lg-3 col-md-3 col-sm-12">
<div class="panel medium-panel col-sm-12 col-md-12 animated zoomIn" style="color:white;background-color: #ffffff10;
z-index: -3;
border: none;
margin-top: 10rem;
border-radius: 5px;
position: relative;
margin-bottom: 24px;
color: white;
margin-left: -1rem;
box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25);
height: 20rem;" zoom-in="">
<style>
#chart svg {
height: 400px;
}
</style>
<div id="chart">
<svg></svg>
</div>
</div>
</div>
<div id="visualization">
<!-- 2D overlay elements go in here -->
<div id="app-maparea" style="background-color: ;">
<div class="col-lg-6 col-md-12 col-sm-12">
<div id="glContainer" style="max-height: 12rem;">
<!-- 3D webgl canvas here -->
</div>
<!-- </canvas> -->
<img src="images/index.png" style="max-height: 52.8rem;margin-top:-43rem ; margin-left:10rem;pointer-events: none;"></img>
<img src="glow.png" style="max-height: 80rem;margin-top:-123rem ; margin-left:-6rem;pointer-events: none;z-index: -1"></img>
<div class="" style="margin-top: -40rem;">
<table id="marker_template" class="marker pull-right" style="left:60rem !important;top:-20rem;font-weight: 1px;color: white;z-index: -90;">
<tr>
<td><span id="countryText" class="country">
</span>
</td>
<td class="detail" id="detailText">
<span id="detailText" class="detail"></span>
</td>
</tr>
</table>
<div class="panel medium-panel animated zoomIn" style="color:white;background-color: #ffffff00;
z-index: -9;position: fixed;
border: none;
border-radius: 5px;
position: relative;
margin-bottom: 24px;
margin-top: -8rem;
margin-left: 6rem;
box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25);
height: 50rem;" zoom-in="">
<!-- <form class="pull-right" action="">
<input type="checkbox" name="Gold" value="Gold"><img style="max-height: 20px;" src="gold.png" alt="some img">
<br>
<input type="checkbox" name="vehicle" value="Car">I have a car
</form>
-->
<div id="importExportBtns" class="pull-right col-md-1">
<div class="typeLabels">
<!-- <input type="checkbox" name="Coffee">Coffee</input>
<input type="checkbox" name="Gold">Gold</input>
<input type="checkbox" name="Silver">Silver</input> -->
<div class="civ"></div>
<div class="ammo"></div>
<br class="clear">
</div>
<div class="imports imex">
<div class="mil">
<div class="check"></div>
</div>
<div class="civ">
<div class="check"></div>
</div>
<div class="ammo">
<div class="check"></div>
</div>
<div class="label"></div>
<br class="clear">
</div>
<div class="exports imex">
<div class="mil">
<div class="check"></div>
</div>
<div class="civ">
<div class="check"></div>
</div>
<div class="ammo">
<div class="check"></div>
</div>
<div class="label"></div>
<br class="clear">
</div>
<br class="clear" />
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-2 col-md-2 col-sm-12">
<div class="panel medium-panel col-sm-12 col-md-12 animated zoomIn" style="color:white;background-color: #ffffff10;
z-index: -3;
border: none;
margin-top: 20rem;
border-radius: 5px;
position: relative;
margin-bottom: 24px;
margin-left: -1rem;
box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25);
height: 10rem;" zoom-in="">
<style>
#chart svg {
height: 200px;
}
</style>
<div id="chart">
<svg></svg>
</div>
</div>
</div>
<div id="app-sidebar" class=" pull-right">
</div>
</div>
<script src="https://use.fontawesome.com/d1ef69c3f4.js"></script>
<script type="text/javascript" src="./assets/lib/keen-js/dist/keen.min.js"></script>
<script type="text/javascript" src="./assets/lib/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="./assets/js/meta.js"></script>
<script src="js/Detector.js"></script>
<script src="js/Tween.js"></script>
<script src="js/dat.gui.min.js"></script>
<script src="js/Three.js"></script>
<script src="three.js"></script>
<script src="js/THREEx.KeyboardState.js"></script>
<script src="js/THREEx.WindowResize.js"></script>
<script src="js/Stats.js"></script>
<script src="js/jquery-1.7.1.min.js"></script>
<script src="js/jquery-ui-1.8.21.custom.min.js"></script>
<script src="js/RequestAnimationFrame.js"></script>
<script src="js/ShaderExtras.js"></script>
<script src="js/canvg.js"></script>
<script src="js/rgbcolor.js"></script>
<script src="js/innersvg.js"></script>
<script type="text/javascript" src="js/StereoEffect.js"></script>>
<script src="js/util.js"></script>
<script src="js/mousekeyboard.js"></script>
<script src="js/datguicontrol.js"></script>
<script src="js/dataloading.js"></script>
<script src="js/camerastates.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/svgtoy.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js"></script>
<!-- <script src="js/d3.v2.min.js"></script> -->
<script src="js/ui.controls.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.5/nv.d3.js"></script>
<script type="text/javascript" src=" https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.bundle.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script type="text/javascript" src="nvd3ex.js"></script>
<div class="globe" style="max-height: 10rem; max-width: 10rem;">
<script src="js/main.js" type="text/javascript"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-7963116-1']);
_gaq.push(['_setDomainName', 'chromeexperiments.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript" src="geo-explorer.js"></script>
<script type="text/javascript">
var ctx = document.getElementById('m').getContext('2d');
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['10', '11', '12', '13', '14', '15', '16'],
datasets: [{
label: 'oil',
data: [12, 19, 3, 17, 6, 3, 7],
backgroundColor: "rgba(4, 207, 194,0.6)"
}, {
label: 'coffee',
data: [2, 29, 5, 5, 2, 3, 10],
backgroundColor: "rgba(18, 56, 89,0.6)"
}]
}
});
var ctx2 = document.getElementById("doughnut").getContext('2d');
var myChart2 = new Chart(ctx2, {
type: 'doughnut',
data: {
labels: ["Imports", "Exports"],
datasets: [{
backgroundColor: [
"rgba(4, 207, 194,0.6)",
"rgba(18, 56, 89,0.6)"
],
data: [12, 19],
borderWidth: [0, 0]
}]
},
options: {
cutoutPercentage: 50
}
});
</script>
<script>
var barChartData = {
labels: ["2012", "2013", "2014", "2015"],
datasets: [{
type: 'bar',
label: "Imports",
data: [200, 185, 590, 621],
fill: false,
backgroundColor: '#71B37C',
borderColor: '#71B37C',
hoverBackgroundColor: '#71B37C',
hoverBorderColor: '#71B37C',
yAxisID: 'y-axis-1'
}, {
label: "Value",
type: 'line',
data: [51, 65, 40, 49],
fill: false,
borderColor: '#EC932F',
backgroundColor: '#EC932F',
pointBorderColor: '#EC932F',
pointBackgroundColor: '#EC932F',
pointHoverBackgroundColor: '#EC932F',
pointHoverBorderColor: '#EC932F',
yAxisID: 'y-axis-2'
}]
};
var ctx = document.getElementById("over").getContext("2d");
window.myBar = new Chart(ctx, {
type: 'bar',
data: barChartData,
options: {
responsive: true,
tooltips: {
mode: 'label'
},
elements: {
line: {
fill: false
}
},
scales: {
xAxes: [{
display: true,
gridLines: {
display: false
},
labels: {
show: true,
}
}],
yAxes: [{
type: "linear",
display: true,
position: "left",
id: "y-axis-1",
gridLines: {
display: false
},
labels: {
show: true,
}
}, {
type: "linear",
display: true,
position: "right",
id: "y-axis-2",
gridLines: {
display: false
},
labels: {
show: true,
}
}]
}
}
});
</script>
</div>
<!-- All other hud can go here-->
<!-- <div id="hudHeader" class="over
layCountries noPointer">
<h1 class="noPointer">Small Arms and Ammunition — Imports & Exports
<div class="subtitle">An interactive visualization of government-authorized small arms and ammunition transfers from 1992 to 2010. </div>
</h1>
</div>
-->
<div id="history" class=" noPointer">
<!-- <div class="graph"> -->
<!-- <div class="close"></div>
<div class="labels">
<div class="change">RELATIVE PERCENT CHANGE</div>
<div class="exports">EXPORTS</div>
<div class="imports">IMPORTS</div>
<br class="clear" />
</div>
<div class="container noPointer"></div>
</div> -->
<ul class="timeline pointer">
<li>92</li>
<li>93</li>
<li>94</li>
<li>95</li>
<li>96</li>
<li>97</li>
<li>98</li>
<li>99</li>
<li>2000</li>
<li>01</li>
<li>02</li>
<li>03</li>
<li>04</li>
<li>05</li>
<li>06</li>
<li>07</li>
<li>08</li>
<li>09</li>
<li>2010</li>
<div id="handle" class="noMapDrag"></div>
</ul>
</div>
<!-- <div id="graphIcon" class=""></div>
-->
<div class="">
</div>
<div id="aboutContainer" class=''>
<div class="arrowUp"></div>
<div id="aboutBox">
<!-- <div class="title">Information about the data</div>
-->
<!-- <div class="text">
This data visualization was produced by Google as part of the <a href="http://www.google.com/ideas" target="_blank">Google Ideas</a> INFO (Illicit Networks, Forces in Opposition) Summit with support from the <a href="http://igarape.org.br/" target="_blank">Igarape Institute</a> and data provided by the <a href="http://www.prio.no/" target="_blank">Peace Research Institute Oslo (PRIO)</a> small arms database. The visualization includes >1 million individual import and export data points from annual custom reports and maps the transfer of small arms, light weapons and ammunition across 250 nation states and territories around the world between 1992 and 2010.
</div>bar
-->
<!-- <div class="links">
<br> For more info, please see the <a href="http://igarape.org.br/armsglobe" target="_blank">FAQs</a>.
</div>
-->
</div>
</div>
</div>
</body>
<style type="text/css">
.tool {
padding-top: 1rem;
font-family: 'Rajdhani', sans-serif;
background: black;
color: white;
min-height: 2rem;
max-width: 10rem;
}
canvas {
margin-left: -35rem;
margin-top: -36rem;
max-width: 1500rem;
/*margin-left: 0rem; max-width: 60rem; margin-top: 20rem;
*/
}
#history {
position: fixed;
bottom: 0;
left: 0px;
background-color: rgba(43, 43, 43, 0.9);
display: none;
}
#history ul {
list-style-type: none;
margin: 10px;
padding: 0;
/* padding-bottom: 15px; padding-top: 22px;
*/
color: white;
font-size: 12px;
font-family: 'Roboto';
width: 668px;
background: url('timelineBG.png') 8px 0 no-repeat;
/*to be resized!*/
}
#history ul li {
width: 35px;
float: left;
text-align: center;
margin-top: -30px;
padding-top: 30px;
cursor: pointer;
}
#history .timeline #handle {
cursor: pointer;
width: 36px;
height: 36px;
background: url('yearHandle.png') 0px 0 no-repeat;
position: absolute;
bottom: 20px;
left: 642px;
}
#history .graph {
display: none;
}
#history .close {
width: 8px;
height: 8px;
background: url('close.png') 0 0 no-repeat;
margin-right: 8px;
margin-top: 5px;
float: right;
cursor: pointer;
pointer-events: auto;
}
#history .labels {
margin-right: 35px;
}
#history .labels .change {
font-family: RopaSans;
font-size: 23px;
color: white;
margin-left: 31px;
float: left;
margin-top: 10px;
}
#history .labels .imports {
float: right;
font-family: Roboto;
font-size: 14px;
color: #70B4CB;
margin-top: 10px;
}
#history .labels .exports {
float: right;
font-family: Roboto;
font-size: 14px;
color: #FFA90B;
margin-top: 10px;
margin-left: 10px;
}
</style>
<style type="text/css">
.panel {
&.animated {
animation-duration: 0.5s;
}
&.small-panel {
height: 20rem;
}
&.xsmall-panel {
height: 10rem;
}
&.medium-panel {
height: 10rem;
}
/* &.xmedium-panel {
height: $extra-medium-panel-height;
}
&.large-panel {
height: $large-panel-height;
}*/
&.viewport100 {
height: calc(100vh - 218px);
}
&.with-scroll {
.panel-body {
height: calc(100% - #{$panel-title-height});
overflow-y: auto;
}
}
}
</style>
</html>