-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
216 lines (188 loc) · 8.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0" />
<title>World Migration</title>
<link rel="shortcut icon" type="image/x-icon" href="./globe.ico">
<!-- CSS -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="css/materialize.css" media="screen,projection" />
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen,projection" />
<link rel="stylesheet" type="text/css" href="css/map.css" media="screen,projection" />
<!-- Leaflet -->
<link rel="stylesheet" href="css/leaflet.css" />
<script src="js/utils/leaflet.js"></script>
</head>
<body>
<nav class="teal lighten-2" role="navigation">
<div class="nav-wrapper container"><a id="logo-container" href="./" class="brand-logo">World Migration</a>
<ul class="right hide-on-med-and-down">
<li><a href="#index-banner">World Map</a></li>
<li><a href="#migrationOverTheYears">Migration 1990-2015</a></li>
</ul>
<ul id="nav-mobile" class="side-nav">
<li><a href="#index-banner">World Map</a></li>
<li><a href="#migrationOverTheYears">Migration 1990-2015</a></li>
</ul>
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
</div>
</nav>
<div class="section no-pad-bot" id="index-banner">
<div class="container center">
<br><br>
<h1 class="header grey-text text-darken-2">World Migration</h1>
<br><br>
</div>
</div>
</div>
<div class="row center" id="actualMap">
<div class="col s12">
<form action="#">
<input class="with-gap" name="group1" type="radio" id="inflowBtn" onclick="updateToInflow()" />
<label for="inflowBtn">
<i class="material-icons">file_download</i>
<span class="vertical-center">arriving</span>
</label>
<input class="with-gap" name="group1" type="radio" id="outflowBtn" onclick="updateToOutflow()" />
<label for="outflowBtn">
<i class="material-icons">file_upload</i>
<span class="vertical-center">leaving</span>
</label>
</form>
</div>
</div>
<div id="mapid"></div>
<div class="section">
<div class="row" id="migrationOverTheYears">
<div class="col s1"></div>
<div class="col s10 center">
<h3>Migration 1990-2015</h3>
</div>
</div>
<div class="row">
<div class="col s12">
<div class="row center">
<form action="#">
<input class="with-gap" name="group1" type="radio" id="southAmericaBtn" onclick="updateContinentToSouthAmerica()" checked />
<label for="southAmericaBtn">
<span class="vertical-center">South America</span>
</label>
<input class="with-gap" name="group1" type="radio" id="northAmericaBtn" onclick="updateContinentToNorthAmerica()" />
<label for="northAmericaBtn">
<span class="vertical-center">North America</span>
</label>
<input class="with-gap" name="group1" type="radio" id="europeBtn" onclick="updateContinentToEurope()" />
<label for="europeBtn">
<span class="vertical-center">Europe</span>
</label>
<input class="with-gap" name="group1" type="radio" id="africaBtn" onclick="updateContinentToAfrica()" />
<label for="africaBtn">
<span class="vertical-center">Africa</span>
</label>
<input class="with-gap" name="group1" type="radio" id="asiaBtn" onclick="updateContinentToAsia()" />
<label for="asiaBtn">
<span class="vertical-center">Asia</span>
</label>
<input class="with-gap" name="group1" type="radio" id="oceaniaBtn" onclick="updateContinentToOceania()" />
<label for="oceaniaBtn">
<span class="vertical-center">Oceania</span>
</label>
</form>
</div>
</div>
</div>
</div>
<div class="container center">
<div class="row">
<div class="col l4 s12">
<h5 class="left">1990</h5>
<div class="small-map" id="map_1990"></div>
</div>
<div class="col l4 s12">
<h5 class="left">1995</h5>
<div class="small-map" id="map_1995"></div>
</div>
<div class="col l4 s12">
<h5 class="left">2000</h5>
<div class="small-map" id="map_2000"></div>
</div>
</div>
<div class="row">
<div class="col l4 s12">
<h5 class="left">2005</h5>
<div class="small-map" id="map_2005"></div>
</div>
<div class="col l4 s12">
<h5 class="left">2010</h5>
<div class="small-map" id="map_2010"></div>
</div>
<div class="col l4 s12">
<h5 class="left">2015</h5>
<div class="small-map" id="map_2015"></div>
</div>
</div>
</div>
<!-- <div class="row center">
<div class="col s6">
<h4>Total Inflow by Continent</h4>
<h5>(from 1990 to 2015)</h5>
<div class="lineChart" id="timeChart"></div>
</div>
<div class="col s6">
<h4>Top - Origin Country</h4>
<h5>(from 1990 to 2015)</h5>
<div class="barChart" id="topChart"></div>
</div>
</div> -->
<footer class="page-footer grey darken-2">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">About us</h5>
<p class="grey-text text-lighten-4">We are a team of undergraduate students from Federal University of Ceará and this is our final project for the Data Visualization course.</p>
</div>
<div class="col l3 s12">
<h5 class="white-text">Data sources</h5>
<ul>
<li><a class="white-text" href="http://www.un.org/en/development/desa/population/migration/publications/migrationreport/index.shtml">ONU Population Division</a></li>
<li><a class="white-text" href="https://esa.un.org/unpd/wpp/Download/Standard/Population/">ONU DSA</a></li>
</ul>
</div>
<div class="col l3 s12">
<h5 class="white-text">Tools</h5>
<ul>
<li><a class="white-text" href="http://square.github.io/crossfilter/" target="_blank">Crossfilter.js</a></li>
<li><a class="white-text" href="https://d3js.org/" target="_blank">D3.js</a></li>
<li><a class="white-text" href="https://dc-js.github.io/dc.js/" target="_blank">DC.js</a></li>
<li><a class="white-text" href="http://leafletjs.com" target="_blank">Leaflet.js</a></li>
<li><a class="white-text" href="http://materializecss.com/" target="_blank">Materialize</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
<small><b>Developed with ❤ by <a class="light-blue-text text-lighten-3" href="https://github.com/geovanimartins">Giovani</a>, <a class="light-blue-text text-lighten-3" href="https://github.com/reginaldomuniz">Reginaldo</a> & <a class="light-blue-text text-lighten-3" href="https://github.com/thasmarinho">Thaís</a></small>
</div>
</div>
</footer>
<!-- External Scripts -->
<script type="text/javascript" src="js/utils/d3.v3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="js/utils/crossfilter.js" charset="utf-8"></script>
<script type="text/javascript" src="js/utils/dc.js" charset="utf-8"></script>
<script type="text/javascript" src="js/utils/colorbrewer.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/utils/leaflet.zoomhome.min.js"></script>
<script type="text/javascript" src="js/materialize.js"></script>
<script type="text/javascript" src="js/init.js"></script>
<!-- Chart Scripts -->
<script type="text/javascript" src="js/scripts/defines.js"></script>
<script type="text/javascript" src="js/scripts/worldMapData.js"></script>
<script type="text/javascript" src="js/scripts/actualMap.js"></script>
<script type="text/javascript" src="js/scripts/miniMaps.js"></script>
<script type="text/javascript" src="js/scripts/worldMapFunctional.js"></script>
<script type="text/javascript" src="js/scripts/lineChart.js"></script>
</body>
</html>