-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnea.html
More file actions
149 lines (125 loc) · 5.88 KB
/
nea.html
File metadata and controls
149 lines (125 loc) · 5.88 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>NEA SCA Onboarding</title>
<!-- Bootstrap CSS CDN -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Our Custom CSS -->
<link rel="stylesheet" href="style.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<div class="wrapper">
<!-- Sidebar Holder -->
<nav id="sidebar">
<div class="sidebar-header">
<p style="text-align:center;"><img src = "stateheader.png" alt="div" width="100px" align="middle"/></p>
<h3 style="text-align:center;">Onboarding</h3>
</div>
<ul class="list-unstyled components">
<li class="active">
<a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false" style="text-align:center;">Compare Metrics</a>
<ul class="collapse list-unstyled" id="homeSubmenu">
<li><a href="https://nbviewer.jupyter.org/github/vsfsdatateam/vsfsdatateam.github.io/blob/master/NEA%20Tables.ipynb">NEA Countries</a></li>
<li><a href="https://nbviewer.jupyter.org/github/vsfsdatateam/vsfsdatateam.github.io/blob/master/SCA%20Tables.ipynb">SCA Countries</a></li>
</ul>
</li>
</ul>
<ul class="list-unstyled CTAs">
<li><a href="https://www.cia.gov/library/publications/the-world-factbook/">View data source</a></li>
<li><a href="https://www.state.gov/p/nea/" class="article">NEA Home</a></li>
<li><a href="https://www.state.gov/p/sca/" class="article">SCA Home</a></li>
</ul>
</nav>
<!-- Page Content Holder -->
<div id="content">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" id="sidebarCollapse" class="btn btn-info navbar-btn">
<i class="fa fa-align-justify"></i>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-left">
<li><a href="https://vsfsdatateam.github.io/">NEA/SCA</a></li>
<li><a href="nea.html">Near East Asia (NEA)</a></li>
<li><a href="sca.html">South Central Asia (SCA)</a></li>
</ul>
</div>
</div>
</nav>
<nav class="navbar navbar-default">
<h2>Near East Asia Region</h2>
<p>This tool uses data from the CIA World Factbook to compare different countries in your region.</p>
<!-- MAP CODE STARTS HERE -->
<div id="container1">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/1.6.9/topojson.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/datamaps/0.5.8/datamaps.all.js"></script>
<script>
//basic map config with custom fills, mercator projection
var map = new Datamap({
scope: 'world',
element: document.getElementById('container1'),
projection: 'mercator',
setProjection: function(element) {
var projection = d3.geo.equirectangular()
.center([29, 25.7])
.rotate([4.4, 0])
.scale(410)
.translate([element.offsetWidth / 2, element.offsetHeight / 2]);
var path = d3.geo.path()
.projection(projection);
return {path: path, projection: projection};
},
fills: {
defaultFill: '#CDBB79',
SCA: '#51A39D',
NEA: '#B7695C'
},
data: {
//NEA
DZA: {fillKey: 'NEA' },
EGY: {fillKey: 'NEA' },
IRN: {fillKey: 'NEA' },
IRQ: {fillKey: 'NEA' },
ISR: {fillKey: 'NEA'},
JOR: {fillKey: 'NEA' },
KWT: {fillKey: 'NEA' },
LBN: {fillKey: 'NEA' },
LBY: {fillKey: 'NEA' },
MAR: {fillKey: 'NEA' },
OMN: {fillKey: 'NEA' },
QAT: {fillKey: 'NEA' },
SAU: {fillKey: 'NEA' },
SYR: {fillKey: 'NEA' },
TUN: {fillKey: 'NEA' },
ARE: {fillKey: 'NEA' },
YEM: {fillKey: 'NEA' },
}
})
map.legend();
map.labels();
</script>
</nav>
</div>
<!--MAP CODE ENDS HERE -->
</div> <!--close content div-->
<!--<p style="text-align:center;"><img src = "dos_divider.png" alt="div" align = "middle"/><p> -->
</div> <!--close wrapper div> -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<!-- Bootstrap Js CDN -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
});
});
</script>
</body>
</html>