-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
189 lines (185 loc) · 10.6 KB
/
index.html
File metadata and controls
189 lines (185 loc) · 10.6 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
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
<!--
* index.html
*
* Eline Jacobse
* Programmeerproject
* Student: 11136235
*
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Depression Around the World</title>
<link rel="stylesheet" type="text/css" href="project/css/styles.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="shortcut icon" href="project/img/globe.ico" type="image/x-icon" />
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-queue/1.0.7/d3-queue.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/topojson/1.6.9/topojson.min.js"></script>
<script src="project/javascript/datamaps.world.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.7.1/d3-tip.js"></script>
<script src="project/javascript/countries.js" type="text/javascript"></script>
<script src="project/javascript/functions.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<!-- Introduction -->
<div class="container" id="page-intro" style="background-image: url(project/img/intro-bg.jpg);">
<div class="row header text-center">
<div class="col-md-12 padding-0">
<h1>A Look at Depression <br> Around the World</h1>
<p class="lead" id="main">Every 40 seconds someone dies of suicide.
According to the World Health Organization, depression will affect 1 out of 5 people during their lifetime. Explore the data below and find out what countries
have the highest rates of depression and suicide, how depression rates have changed over the past ten years, and which groups are most at risk.
</p>
<a href="#section1">
<span class="glyphicon glyphicon-menu-down" id="iconLight"></span>
</a>
</div>
</div>
<p class="bottom-paragraph text-center">(For an enhanced experience, press F11 to enter fullscreen mode)</p>
</div>
<!-- World map -->
<div class="container-fluid">
<div class="row text-center">
<div class="col-md-12 padding-0">
<a href="#page-intro">
<span class="glyphicon glyphicon-menu-up"></span>
</a>
</div>
</div>
<section id="section1">
<div class="btn-group-sm" style="z-index: 10;" id="mapbuttons">
<button type="button" class="btn btn-default" id="btnDepression" onclick="toggle(this);" value="depression">Depression</button>
<button type="button" class="btn btn-default" id="btnSuicide" onclick="toggle(this);" value="suicide">Suicide</button>
</div>
<div class="row">
<div class="col-md-8">
<div id="mapcontainer" style="width: 900px; height: 450px;"></div>
</div>
<div class="col-md-1"></div>
<div class="col-md-2">
<h5 class="title-left">Depression and Suicide Around the World</h5>
<p>
Countries with the highest rates of depression don't necessarily have the highest suicide rates. If you
hover over the map you can see the rate of depression in % of the population, as well as the rate of
suicide per 100,000 people in a country. Clicking on the map will take you to the next screen, where you can explore
trends and demographics of depression. <a href="#" rel="popover" data-popover-content="#infoPopover" data-placement="left">*</a>
<div id="infoPopover" class="hide">
<h6>A Note on the Data</h6>
<p>Data on suicides and depression may be deficient. People who live in countries
with easier access to mental health services, are naturally going to be diagnosed at a
higher rate. Taboos against mental health disorders may also lower diagnosis rates. The data made available by the World Health Organization (WHO)
therefore might be not be entirely accurate especially for lower-income countries.<br><br>
<small>(click to dismiss)</small></p>
</div>
</p>
</div>
<div class="col-md-1"></div>
</div>
<div class="row text-center">
<div class="col-md-12 padding-0">
<a href="#section2">
<span class="glyphicon glyphicon-menu-down"></span>
</a>
</div>
</div>
</section>
<section id="section2">
<div class="row linegraphWrapper">
<a href="#section1">
<span class="glyphicon glyphicon-menu-up text-center centered"></span>
</a>
<!-- Line Graph -->
<div class="col-md-12 col-md-5" id="lineWrapper">
<h4 id="linegraph_title">Prevalence of Depression from 1995-2015</h4>
<div class="btn-group-xs" id="region_buttons" style="padding-left: 50px;">
<button type="button" class="btn btn-default" onclick="lineSelect(this);" id="btnEurope" value="Europe">Europe and Central Asia</button>
<button type="button" class="btn btn-default" onclick="lineSelect(this);" id="btnEastAsia" value="EastAsia">East Asia and Pacific</button>
<button type="button" class="btn btn-default" onclick="lineSelect(this);" id="btnSouthAsia" value="SouthAsia">South Asia</button>
<button type="button" class="btn btn-default" onclick="lineSelect(this);" id="btnNorthAfrica" value="NorthAfrica">North Africa and Middle East</button>
<button type="button" class="btn btn-default" onclick="lineSelect(this);" id="btnSubSaharan" value="SubSaharan">Sub-Saharan Africa</button>
<button type="button" class="btn btn-default" onclick="lineSelect(this);" id="btnLatinAmerica" value="LatinAmerica">Latin America and Carribean</button>
<button type="button" class="btn btn-default" onclick="lineSelect(this);" id="btnNorthAmerica" value="NorthAmerica">North America</button>
</div>
<div id="linecontainer"></div>
</div>
<!-- Bar Chart -->
<div class="col-md-12 col-md-7">
<div class="row" id="barRow">
<div class="col-md-12 col-md-2"></div>
<div class="col-md-12 col-md-9 bg-info" id="textbox">
<h5>Trends and Demographics of Depression</h5>
<p class="text-justify">
Globally, about 4.5% of the world population is depressed. This rate can
vary greatly by country. Find out how depression rates in different regions
of the world compare by selecting buttons on the left. If you want to know
more about the demographics in a specific country, you can click on that
country's line in the line graph.
</p>
</div>
<div class="col-md-12 col-md-3"></div>
<div class="col-md-12 col-md-12">
<div id="barcontainer"></div>
</div>
</div>
</div>
</div>
</section>
<!-- References -->
<section id="section3">
<div class="row" id="netherlands_map">
<div class="col-md-12 text-center">
<h3 class="display-4">References</h3></div>
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-3">
<h5 class="title-left">Resources</h5>
<ul>
<li><a href="http://www.iasp.info/resources/Crisis_Centres/">Crisis centers</a></li>
<li><a href="http://www.suicidestop.com/call_a_hotline.html">Suicide Hotlines</a></li>
</ul>
</div>
<div class="col-sm-4">
<h5 class="title-left">Data Sources</h5>
<ul>
<li><a href="http://www.who.int/gho/mental_health/en/">World Health Organization - Mental Health</a></li>
<li><a href="http://www.who.int/mediacentre/factsheets/fs369/en/">World Health Organization - Depression Fact Sheet</a></li>
<li><a href="http://ghdx.healthdata.org/">Global Health Data Exchange</a></li>
</ul>
</div>
<div class="col-sm-3">
<h5 class="title-left">Image</h5>
<ul>
<li><a href="http://freeuse.io/">Freeuse.io</a></li>
</ul>
</div>
<div class="col-sm-1"></div>
</div>
</div>
</section>
</div>
<!-- Imports -->
<script src="project/javascript/worldmap.js" type="text/javascript"></script>
<script src="project/javascript/linegraph.js" type="text/javascript"></script>
<script src="project/javascript/barchart.js" type="text/javascript"></script>
<script src="project/javascript/main.js" type="text/javascript"></script>
</body>
<footer>
<div class="container">
<div class="row">
<hr>
<div class="col-lg-12">
<div class="col-md-8">
<a href="https://github.com/ElineJ/programmeerproject">GitHub</a> | <a href="https://projectf.mprog.nl/">Minor Programmeren</a>
</div>
<div class="col-md-4">
<p class="muted pull-right">© 2017 Eline Jacobse.</p>
</div>
</div>
</div>
</div>
</footer>
</html>