/
index.html
205 lines (175 loc) · 7.86 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
<html>
<head>
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="stylesheet.css">
<link href="styles/fonts.css" rel="stylesheet">
<script src="plugins/d3.v5.min.js" charset="utf-8"></script>
<script src="plugins/jquery.3.3.1.min.js" charset="utf-8"></script>
<script src="plugins/topojson.v1.min.js"></script>
<script src="plugins/d3-array.min.js"></script>
<script src="plugins/d3-collection.min.js"></script>
<script src="plugins/d3-path.min.js"></script>
<script src="plugins/d3-shape.min.js"></script>
<script src="plugins/d3-sankey.min.js"></script>
<script src="scripts/global.js"></script>
<script src="scripts/choropleth.js"></script>
<script src="scripts/barchart.js"></script>
<script src="scripts/slider.js"></script>
<script src="scripts/linechart.js"></script>
<script src="scripts/sankey.js"></script>
<script src="scripts/scripts.js"></script>
<script src="scripts/syriaChrolopleth.js"></script>
<link rel="stylesheet" href="styles/syriaMapTooltips.css">
</head>
<body>
<!-- HIDDEN - syria map tooltips -->
<div id="tooltip" class="hidden">
<div id="syriaTooltip" class="hidden">
<span class="deaths"></span> people killed in province of <span id="province"></span> <span class="datetype"></span>
<span class="date"></span>
</div>
<div id="euroTooltip" class="hidden">
In total <span id="refugees"></span> refugees arrived to <span id="country"></span> by <span class="date"></span>
</div>
<div id="barChartTooltip" class="hidden">
<span class="deaths"></span> people killed by <span id="actorData"></span> <span class="datetype"></span>
<span class="date"></span>
</div>
<div id="sankeyLinkTooltip" class="hidden">
<span class="deaths"></span> -> <span id="linkTo"></span> [<span class="date"></span>]
</div>
</div>
<div class='main-container'>
<!-- Total numbers -->
<!-- <div class='info-box'>
<table style="width:100%">
<tr>
<th>Total deaths</th>
<th id='total'>1235</th>
</tr>
<tr>
<td>Total refugees</td>
<th id='total' class='blue'>555</th>
</tr>
</table>
</div> -->
<!-- Slider + title -->
<div class='slider-container'>
<div class='title'>
<p>
<!-- What is the impact of the Syrian civil war on its population? -->
Syrian Civil War
</p>
<span class="button" id="play">Play</span>
<!-- help button modal-->
<span class="button" id="help">Help</span>
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<h2>Welcome to this visualization on the Syrian civil war</h2>
</div>
<div class="modal-body">.
<p class="modal-title">Instruction: </p>
</br>
<p>You can click play to automatically move the timeline.</p>
</br>
</br>
</br>
<p class="modal-title">This visualization answers the following research questions:</p>
</br>
<ul>
<li>Which countries are destinations for Syrian refugees?</li>
<li>Which political actors are responsible for the destruction in Syria?</li>
<li>Which regions have the highest deathtolls?</li>
<li>How have prices of commodities changed during the war? </li>
</ul>
</div>
<div class="modal-footer">
<h3>This visualization was created by Jakub Syrek, Aleksi O'Connor, and Carlijn Quik for
the Information Visualization course at Técnico Lisboa (2018)</h3>
</div>
</div>
</div>
</div>
<div id='slider'></div>
</div>
<!-- Main content -->
<div class='flex-container'>
<div class='visualisation'>
<div class='visualisation-title'>
<div class='visualisation-title-text'>
Amount of Syrian refugees in Europe
</div>
</div>
<div id='map' class='vis'></div>
</div>
<div class='visualisation'>
<div class='visualisation-title'>
<div class='visualisation-title-text'>
Deaths per district in Syria
</div>
<span class="button" id="syria">Select all</span>
</div>
<div id="syriaMap" class='vis'></div>
</div>
<div class='visualisation'>
<div class='visualisation-title'>
<div class='visualisation-title-text'>
<div>Casualties in <span id='sankey-year'></span></div>
</div>
</div>
<div id='sankey' class='vis'></div>
</div>
<div class='visualisation'>
<div class='visualisation-title'>
<div class='visualisation-title-text'>
Prices of commodities
</div>
</div>
<div class='linechart-buttons'>
<span class="button darkblue bread" id="bread">Bread</span>
<span id='bread-value' class='syp'>139.94 £S</span>
<span class="button sugar" id="sugar">Sugar</span>
<span id='sugar-value' class='syp'>72.19 £S</span>
<span class="button rice" id="rice">Rice</span>
<span id='rice-value' class='syp'>74.02 £S</span>
<span class="button fuel" id="fuel">Fuel</span>
<span id='fuel-value' class='syp'>88.75 £S</span>
</div>
<div id='linechart' class='vis'>
</div>
</div>
<select id="line-chart-dropdown">
<option value="sugar">Sugar</option>
<option value="bread">Bread</option>
<option value="fuel">Fuel</option>
<option value="rice">Rice</option>
<option value="tea">Tea</option>
</select>
<div class='visualisation'>
<div class='visualisation-title'>
<div class='visualisation-title-text'>
Number of deaths caused by the war
</div>
</div>
<div class='barchart-buttons'>
<span class="button barsblue" id="province-button">Province</span>
<span class="button" id="actor">Actor</span>
<span class="button" id="cause">Cause</span>
<br />
<br />
<br />
<br />
<!-- <span class="button barsblue" id="sort">Sorted</span> -->
</div>
<div id='bar_chart' class='vis'>
</div>
</div>
</div>
<div class='flex-container'>
</div>
</div>
</body>
</html>