-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
145 lines (145 loc) · 6.64 KB
/
Copy pathindex.html
File metadata and controls
145 lines (145 loc) · 6.64 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
<!DOCTYPE html>
<meta http-equiv="pragma" content="no-cache" />
<html>
<head>
<title>Child Mortality Map</title>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-geo.v1.min.js"></script>
<script src="https://d3js.org/d3-geo-projection.v1.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script src="https://d3js.org/colorbrewer.v1.min.js"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div class="container">
<div class="legend-container">
<div id="legends">
<div class = "legend-title">TOTAL</div>
<div class="map-legends">
<div class="map-legend wax-legend">
<ul>
<li>
<span class="swatch" style="background: #cfedfB;"></span>
<span class="range"></span>
</li>
<li>
<span class="swatch" style="background: #cfedfB;"></span>
<span class="range"></span>
</li>
<li>
<span class="swatch" style="background: #9cd2ed;"></span>
<span class="range"></span>
</li>
<li>
<span class="swatch" style="background: #70bdff;"></span>
<span class="range"></span>
</li>
<li>
<span class="swatch" style="background: #4d739e;"></span>
<span class="range"></span>
</li>
<li>
<span class="swatch-undefined" style="background: #f4e542;"></span>
<span class="range-undefined">Undefined</span>
</li>
</ul>
</div>
</div>
<div class="note-container">
<span class="note">(*) Unit: per 1,000 live births</span>
</div>
</div>
<div class="legend-causes">
<span class="title">Under-five mortality rate</span>
<ul>
<li id="Total" class="selection">
<span class="color-block" style="background-color: #cb181d"></span>
<span class="cause-text">TOTAL</span>
</li>
</ul>
<span class="title">Under-five deaths by cause</span>
<ul id = "separate-disease">
<li id="sub_1" class="selection">
<span class="color-block" style="background-color: #41ab5d"></span>
<span class="cause-text">HIV/AIDS </span>
</li>
<li id="sub_2" class="selection">
<span class="color-block" style="background-color: #525252"></span>
<span class="cause-text">DIARRHOEA</span>
</li>
<li id="sub_3" class="selection selected">
<span class="color-block" style="background-color: #d94801"></span>
<span class="cause-text">MALARIA </span>
</li>
<li id="sub_4" class="selection">
<span class="color-block" style="background-color: #6a51a3"></span>
<span class="cause-text">MEASLES</span>
</li>
<li id="sub_5" class="selection">
<span class="color-block" style="background-color: #2171b5"></span>
<span class="cause-text">INJURIES </span>
</li>
</ul>
</div>
</div>
<div class="map-container">
<div class=world-map>
<h2>UNDER-FIVE MORTALITY RATE IN EACH COUNTRY</h2>
<div id="chart">
<div class="dropdown-container">
<div class="dropdown">
<select id="map-type-selected">
<option value="regular-map">Regular Thermatic Map</option>
<option value="surprise-map">Surprise Map</option>
</select>
</div>
</div>
<div id="slider">
<p id="yearLabel">2000</p>
<span class="icon-play-stop icon-play"></span>
<input type="range" id="year" value="2000" min="2000" max="2015" step = "1" oninput="update()" />
</div>
<svg id="surprise-legends">
<text x="155" y="25">Surprise</text>
<g>
<rect stroke="#fff" fill="#053061" y="35" x="105" width="10" height="10"></rect>
<rect stroke="#fff" fill="#2166ac" y="35" x="115" width="10" height="10"></rect>
<rect stroke="#fff" fill="#4393c3" y="35" x="125" width="10" height="10"></rect>
<rect stroke="#fff" fill="#92c5de" y="35" x="135" width="10" height="10"></rect>
<rect stroke="#fff" fill="#d1e5f0" y="35" x="145" width="10" height="10"></rect>
<rect stroke="#fff" fill="#f7f7f7" y="35" x="155" width="10" height="10"></rect>
<rect stroke="#fff" fill="#fddbc7" y="35" x="165" width="10" height="10"></rect>
<rect stroke="#fff" fill="#f4a582" y="35" x="175" width="10" height="10"></rect>
<rect stroke="#fff" fill="#d6604d" y="35" x="185" width="10" height="10"></rect>
<rect stroke="#fff" fill="#b2182b" y="35" x="195" width="10" height="10"></rect>
<rect stroke="#fff" fill="#67001f" y="35" x="205" width="10" height="10"></rect>
</g>
</svg>
</div>
</div>
<div class="indicator-container">
<h2>TRENDS IN UNDER-FIVE MORTALITY RATE AND CAUSES OF UNDER-FIVE DEATHS</h2>
<div class="tab-view">
<h3></h3>
<ul class="nav nav-tabs">
<li class="active"><a>Bar Chart</a></li>
<li><a>Line Chart</a></li>
</ul>
</div>
</div>
</div>
</div>
<footer>
<h1>Child Mortality Rate (<span class="year">1960</span>)</h1>
<p>With data from <a href="https://data.unicef.org/topic/child-survival/under-five-mortality/">UNICEF</a>.</p>
<p class="hint"><em>Use arrow keys to cycle through years or <a id="autoplay" href="#">autoplay</a>.</em></p>
</footer>
<script src="js/handler.js" type="text/javascript"></script>
</body>
</html>