-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
247 lines (240 loc) · 12.6 KB
/
index.html
File metadata and controls
247 lines (240 loc) · 12.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
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>America's Mental Health During a Pandemic</title>
<link
rel="shortcut icon"
type="image/jpeg"
href="./images/wp_favicon.jpeg"
/>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.datatables.net/v/bs5/jq-3.6.0/dt-1.11.3/datatables.min.css"
/>
<link rel="stylesheet" href="./styles/main.css" />
</head>
<body>
<!--Navigation start-->
<div class="nav-bar display-flex space-between">
<div style="padding-top: 15px">
<a class="small-gray-btn desktop-btn" href="#"
><i class="fas fa-search"></i
></a>
<a class="gray-btn desktop-btn" href="#"
>Sections <i class="fas fa-bars"></i
></a>
<i class="fas fa-bars mobile-btn"></i>
</div>
<div style="padding-top: 8px">
<svg
id="TWP_logo_svg"
xmlns="http://www.w3.org/2000/svg"
width="180"
height="30"
viewBox="0 0 697.01 104.61"
aria-labelledby="TWP_logo_desc"
role="img"
>
<desc id="TWP_logo_desc">The Washington Post logo</desc>
<path
d="M39.2,32V68.6c4.7-2.8,7-6.8,8.7-12.1l1.2.6c-1.1,13.2-10.3,26-24.3,26S0,72.6,0,55.8C0,43,7.7,35.1,18.7,28.2a16.11,16.11,0,0,0-4.4-.6c-7.2,0-11.4,4.9-11.4,9.9H1.5a14.77,14.77,0,0,1-.1-2.1c0-9.3,5.5-19.7,16.9-19.7,7.3,0,12.9,6.7,21.4,6.7,4.3,0,6.7-1.6,8.4-5.3h1.2C49.2,23.6,47.3,29.9,39.2,32Zm-19-3.3C15.1,34,10.1,39.6,10.1,50.9c0,6.2,1.9,12.4,6.6,16.4l3.1-1.7V40.3L16.6,42l-1-1.6,15-8.4C26.8,31.2,23.7,29.7,20.2,28.7Zm17.1,3.7a17,17,0,0,1-2.3.1,17.52,17.52,0,0,1-4-.4V61.6l-12.8,7a15.57,15.57,0,0,0,9.9,3,22.58,22.58,0,0,0,9.2-2Zm44,9.2V75.9c0,9.6-8.51,16.11-18,18l-.6-1c4.7-2.3,7.8-6.41,7.8-11.41V45.7l-4.9-4.5L63,43.8V70.9l3,2.8v.4l-8.1,8.61L48.6,74.2v-.4L52.2,70V25.8L62.8,14.5l.2.1V41.2L71.7,32l8.7,7.9,2.7-2.6,1.31,1.3ZM97.91,62v4.5l9,7.1,7-7.3,1.3,1.3L101,82.8,88.21,72.6l-2.8,2.8-1.2-1.3,3.1-3.2V45.8L106.21,32l10.5,16.3Zm.2-22.6-.2.1V59.6l8.7-6.4Z"
fill="#fff"
></path>
<path
d="M180,82.71l-13.9-12-10.6,12L141.1,70.3V50.7h-2.8a3.89,3.89,0,0,0-4.1,3.5h-1a15.87,15.87,0,0,1-.5-3.8c0-2.6,1.1-9.4,8.4-9.4V25.8c0-5.9-3.9-6.2-3.9-11.3,0-5.7,5.4-11,15.3-14.5l.9.8c-3.3,1.6-6,3.6-6,7.9,0,6.6,6.4,4.9,6.4,15.3v4l11.7-12.3,12.3,12.1,11.6-12.1,11.2,11v37ZM165.4,32.8l-7-6.9-4.6,4.7V64.9l8.5,7.3,3.1-3.5ZM188,31.5l-5.6-5.6-4.3,4.3V64.8l9.8,8.6.1-.1Z"
fill="#fff"
></path>
<path
d="M232.8,82.71l-9.4-8.61h-.2l-8.3,8.61L204.8,73.8l-2.3,2.3-1.3-1.3,2.9-3V45.5l19-13.6,10.4,8.2,2.8-2.8,1.5,1.3L234.2,42V69.1l4.6,4.2,2.9-3,1.5,1.4ZM223.4,45.3l-8.3-6.5-.2.2V68.2l6.1,5.4,2.4-2.3ZM264,50.1h9.4V71.5L257.5,82.71a11.52,11.52,0,0,0-8.8-4.11c-3,0-5.4,1.4-7.8,4l-1.4-.5L253.3,62.3h-8.5V43.7L261.4,32c2,1.6,3.6,2.6,6.2,2.6a11.35,11.35,0,0,0,7.1-2.2l1,.7Zm-1.4,8.8h-4.7L246.8,74.8l.1.2a12.36,12.36,0,0,1,7.6-2.5,10.4,10.4,0,0,1,8,3.8l.1-.09ZM269,39.3a9.73,9.73,0,0,1-6.9,2.3,8.92,8.92,0,0,1-6.3-2.9l-.2.1V53.4h3.8l9.7-14Zm40,2.3V75.9c0,9.6-8.51,16.11-18,18l-.6-1c4.7-2.3,7.8-6.41,7.8-11.41V45.7l-4.9-4.5-2.6,2.6V70.9l3,2.8v.4l-8.1,8.61-9.3-8.51v-.4l3.6-3.8V25.8l10.6-11.3.2.1V41.2l8.7-9.2,8.71,7.9,2.7-2.6,1.3,1.3Zm19.6,41.11-8.3-7.61-2.8,2.8-1.3-1.3,3.3-3.4V44.7l-3.6-3.3-2.7,2.6-1.3-1.3L322,32l7.6,6.9,2.7-2.8,1.4,1.4-3.4,3.4V69.5l4.2,3.9,3-3.1,1.3,1.4Zm-2.9-51.61-8.2-7.5,7.5-8,8.2,7.5Z"
fill="#fff"
></path>
<path
d="M371.8,82.71l-8.7-7.91V45.6l-4.7-4.4L355,44.7V70.8l3.1,2.9v.4l-8.2,8.61-9.3-8.51v-.3l3.6-3.8V44.9l-4.1-3.7-3,3-1.4-1.3L345.9,32l9.1,8.1v2L364.5,32l8.7,7.8,2.9-2.9,1.3,1.4-3.5,3.5v28l3.9,3.7,3.3-3.4,1.2,1.3Zm43-41V75.6c0,5.2,2.9,5,2.9,8.9,0,4.51-6.5,8.71-16.5,16.21-3.3-3.6-5.6-5.1-8.7-5.1a19.85,19.85,0,0,0-10.7,3.6l-1-.8L394.5,82.3l-9-7.09-2.9,2.89-1.3-1.3,3.4-3.5V45.5l19-13.6,10.2,8,3-2.9,1.3,1.3Zm-7.7,41.71c-2.5-1.61-3.1-3.31-3.1-7.61V74.3L387.9,93l.1.1c3.2-1.9,5.6-3.1,10.3-3.1,4,0,6.9,1.7,9.5,4,1.9-1.6,3.3-3.2,3.3-5.7C411.1,86.31,409.6,85,407.1,83.41ZM404,45.3l-8.3-6.5-.2.2V69.7l5.9,4.6,2.6-3Zm31.5,37.41-8.8-6.91L424,78.5l-1.3-1.29L425.8,74V39.4H420l-.2-.2,3.5-5.2h2.5V27.3L436.4,16l.2.2V34h8l.2.2-3.5,5.2h-4.7V69.7l4.8,3.7,3.3-3.4,1.3,1.4ZM479.21,42.6V70.3l-16.9,12.5L450,73.5l-2.8,2.8L445.9,75l3.2-3.3v-27L466.81,32l11.4,8.9,2.9-2.9,1.3,1.4Zm-10.8,3L460,39l-.09.1V68.9l8.5,6.4Zm50.4,37-8.7-7.9V45.5l-4.7-4.4L502,44.6V70.7l3.1,2.9V74l-8.2,8.61-9.3-8.51v-.3l3.6-3.8V44.8l-4.1-3.7-3,3-1.4-1.3,10.2-10.9L502,40v2l9.5-10.1,8.7,7.8,2.9-2.9,1.3,1.4-3.5,3.5v28l3.9,3.7,3.3-3.4,1.2,1.3Z"
fill="#fff"
></path>
<path
d="M580.2,82.71a12.91,12.91,0,0,0-6.3-4.61V98.91l-.2.1-5.5-5.1-11.6,10.7-.2-.1V77.6a18.83,18.83,0,0,0-10.2,6.61l-.8-.5c.7-7.71,4.5-13.41,11-15.61V48.6h-2.1a5.25,5.25,0,0,0-5.3,4.2h-1.2a12.28,12.28,0,0,1-.7-4.6c0-4.9,3.3-8.6,8.7-8.6h.6V28.8l-3.6-3.2L550,28.4l-1.4-1.3,11.1-11.4,9.4,8.6v9.8L572,31V19.5h1.9V29l12.5-13.3L597.7,26V69.5ZM572,32.9l-2.9,3V92.21l2.9,2.7Zm13.1-2.3-5.9-5.4-5.3,5.6V67.1c4.7.6,8.2,2.2,11.1,5.3l.1-.1Zm48.7,12V70.3L616.9,82.8l-12.3-9.3-2.8,2.8L600.5,75l3.2-3.3v-27L621.4,32l11.4,8.9,2.9-2.9,1.3,1.4Zm-10.8,3L614.6,39l-.1.1V68.9l8.5,6.4Zm35.6,4.5H668V71.5L652.1,82.71a11.52,11.52,0,0,0-8.8-4.11c-3,0-5.4,1.4-7.8,4l-1.4-.5L647.9,62.3h-8.5V43.7L656,32c2,1.6,3.6,2.6,6.2,2.6a11.38,11.38,0,0,0,7.11-2.2l1,.7Zm-1.4,8.8h-4.7L641.4,74.8l.1.2a12.36,12.36,0,0,1,7.6-2.5,10.4,10.4,0,0,1,8,3.8l.1-.09Zm6.41-19.6a9.78,9.78,0,0,1-6.91,2.3,8.92,8.92,0,0,1-6.3-2.9l-.2.1V53.4H654l9.7-14Zm22.9,43.41-8.8-6.91L675,78.5l-1.3-1.29,3.1-3.21V39.4H671l-.2-.2,3.5-5.2h2.5V27.3L687.41,16l.2.2V34h8l.2.2-3.5,5.2h-4.7V69.7l4.8,3.7,3.3-3.4,1.3,1.4Z"
fill="#fff"
></path>
</svg>
<div id="header-tagline"><span>Democracy Dies in Darkness</span></div>
</div>
<div style="padding-top: 15px">
<a
class="gray-btn desktop-btn"
href="https://www.washingtonpost.com/subscribe/signin/?next_url=https%3A%2F%2Fwww.washingtonpost.com%2Fnation%2F2019%2F08%2F05%2Fmore-deadlier-mass-shooting-trends-america%2F&nid=top_pb_signin&tid=nav_sign_in&arcId=GBGNW4LTTBAWLMGZHPJ4YDY35M"
>Sign In <i class="fas fa-user"></i
></a>
<a
id="subscribe-btn"
class="desktop-btn"
href="https://subscribe.washingtonpost.com/acquisition/?nid=top_pb_subscribe&promo=o3&oscode=RPWH&p=ob_v&s_l=ONSITE_HEADER_ARTICLE&acqEntType=mktg_onsite_story&arcId=GBGNW4LTTBAWLMGZHPJ4YDY35M&destination=/nation/2019/08/05/more-deadlier-mass-shooting-trends-america/&tid=nav_subscribe_logged_out"
>Subscribe</a
>
<a
href="https://www.washingtonpost.com/subscribe/signin/?next_url=https%3A%2F%2Fwww.washingtonpost.com%2Fnation%2F2019%2F08%2F05%2Fmore-deadlier-mass-shooting-trends-america%2F&nid=top_pb_signin&tid=nav_sign_in&arcId=GBGNW4LTTBAWLMGZHPJ4YDY35M"
><i class="fas fa-user mobile-btn"></i
></a>
</div>
</div>
<!--Navigation end-->
<!--Intro-->
<div id="headings" style="text-align: center">
<h1>Dear America—how are you, really?</h1>
<h2>
A look into mental health in the United States of America during the
COVID-19 pandemic.
</h2>
<span style="color: rgb(64, 64, 64)">
By
<a
href="https://www.linkedin.com/in/semanurka/"
style="font-weight: 800; font-size: 16px"
>Semanur Karayaka</a
>
</span>
</div>
<!--Line Chart-->
<div id="line-chart">
<h3>
National Estimates of Mental Health Care in the U.S. Between August 2020
and October 2021
</h3>
<div id="line-container"></div>
</div>
<div>
<p class="informative-text">
Ever since it began gaining traction in the United States in March 2020,
the COVID-19 pandemic has resulted in many losses. Many Americans lost
jobs, freedom, and loved ones. Throughout these difficult times, it has
been difficult for Americans to protect not only their physical health
but also their mental health and the pandemic has definitely taken its
toll on America's mental health.
</p>
<p class="informative-text">
According to data from the
<a
href="https://catalog.data.gov/dataset/mental-health-care-in-the-last-4-weeks"
target="_blank"
>U.S. Census Bureau</a
>, the percentage of Americans who received counseling or therapy in
August 2020 was 8.7%. Most recent data from October 2021 shows that that
number has risen by almost two percent and is now 10.5%. Some Americans
expressed that they felt a need for counseling or therapy but could not
receive it. This number rose from 9.2% in August 2020 to 11% in October
2021.
</p>
<p class="informative-text">
Explore the charts and tables below to see how the pandemic reflected on
the mental health care of America by age groups, gender, race, and
states.
</p>
</div>
<!--Featured Tables-->
<div id="mini-tables">
<h3>Mental Health Care Averages by Group</h3>
<div class="row">
<div class="col-md-12 text-center">
<button type="button" id="age-btn" class="active">
Care by age group
</button>
<button type="button" id="gender-btn">Care by gender</button>
<button type="button" id="race-btn">Care by race</button>
</div>
</div>
<table id="featured-table" class="minitable table table-striped">
<thead class="table-secondary">
<tr>
<th>Indicator</th>
<th>Time Period</th>
<th>Group</th>
<th>Value (%)</th>
</tr>
</thead>
</table>
</div>
<!--Map-->
<div id="map-chart">
<h3>
State Averages for Mental Health Care Between August 2020 and October
2021
</h3>
<div class="row">
<div class="col-md-12 text-center">
<button type="button" id="received-btn-state" class="active">
Received care
</button>
<button type="button" id="notreceived-btn-state">
Couldn't receive care
</button>
</div>
</div>
<div id="map-container"></div>
</div>
<!--Data Table-->
<div id="data-table" style="padding-bottom: 60px">
<table id="table-container" class="table table-striped">
<thead id="table-headings" class="table-primary">
<tr>
<th>Indicator</th>
<th>Time Period</th>
<th>State</th>
<th>Value (%)</th>
<th>Confidence Interval (%)</th>
</tr>
</thead>
</table>
</div>
<hr style="width: 60%; margin: 0 auto; height: 2px" />
<footer id="footer">
<span>
Data from the U.S. Census Bureau's and five federal agencies' survey on
<a
href="https://catalog.data.gov/dataset/mental-health-care-in-the-last-4-weeks"
target="_blank"
>mental health during the COVID-19 pandemic.</a
>
</span>
</footer>
<!------Scripts------->
<!--JQuery-->
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"
></script>
<!--Bootstrap-->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"
></script>
<!--HighCharts-->
<script src="https://code.highcharts.com/maps/highmaps.js"></script>
<script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script>
<!--DataTables-->
<script
type="text/javascript"
src="https://cdn.datatables.net/v/bs5/jq-3.6.0/dt-1.11.3/datatables.min.js"
></script>
<!--Font Awesome-->
<script
src="https://kit.fontawesome.com/3941123ac2.js"
crossorigin="anonymous"
></script>
<!--My js-->
<script src="./scripts/statedata.js"></script>
<script src="./scripts/linechart.js"></script>
<script src="./scripts/minitables.js"></script>
</body>
</html>