This repository was archived by the owner on Mar 31, 2023. It is now read-only.
forked from vsfsdatateam/vsfsdatateam.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsca.html
More file actions
150 lines (125 loc) · 5.91 KB
/
sca.html
File metadata and controls
150 lines (125 loc) · 5.91 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
150
<!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 By</a>
<ul class="collapse list-unstyled" id="homeSubmenu">
<li><a href="scaGRADIENT.html">Population</a></li>
<li><a href="scaGRADIENT.html">Fertility Rate</a></li>
<li><a href="scaGRADIENT.html">Health Expenses (%GDP)</a></li>
<li><a href="scaGRADIENT.html">Military Expenses (%GDP)</a></li>
<li><a href="scaGRADIENT.html">Education Expenses (%GDP)</a></li>
</ul>
</li>
<li class="active">
<a href="#index.html" style="text-align:center;">About This Tool</a>
</li>
</ul>
<ul class="list-unstyled CTAs">
<li><a href="https://raw.githubusercontent.com/iancoleman/cia_world_factbook_api/master/data/2018-01-29_factbook.json">View data source</a></li>
<li><a href="https://bootstrapious.com/p/bootstrap-sidebar" class="article">NEA/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="index.html">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([76.9, 28.1])
.rotate([4.4, 0])
.scale(550)
.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: {
//SCA
AFG: {fillKey: 'SCA' },
BGD: {fillKey: 'SCA' },
BTN: {fillKey: 'SCA' },
IND: {fillKey: 'SCA' },
KAz: {fillKey: 'SCA'},
KGZ: {fillKey: 'SCA' },
NPL: {fillKey: 'SCA' },
PAK: {fillKey: 'SCA' },
LKA: {fillKey: 'SCA' },
TJK: {fillKey: 'SCA' },
TKM: {fillKey: 'SCA' },
UZB: {fillKey: 'SCA' },
}
})
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>