-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
655 lines (593 loc) · 28.4 KB
/
index.html
File metadata and controls
655 lines (593 loc) · 28.4 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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Work in the USA</title>
<link rel="stylesheet" type="text/css" href="css/fullpage.css" />
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link href='https://fonts.googleapis.com/css?family=Lato:400,300,400italic,700' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="header">
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark" id="main_navbar">
<a class="navbar-brand" href="#section-header">Work in the USA</a>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#introduction">Introduction <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section2">Where Are People From? </a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section3">What is the History?</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section4">Who Are They?</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section5">Where Do People Go?</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section6">What Are the Time Trends?</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#section7">Authors</a>
</li>
</ul>
</div>
</nav>
</div>
<div id="fullpage">
<div class="section" data-anchor="section-header">
<div class="header_bg">
<div class="container-fluid h-100">
<div class="row row1 align-items-center" style="height:95%;">
<div class="col-md-1"></div>
<div class="col-md-10">
<h1 id="main_header">WORK IN THE USA <br>
<span id="main_subheader">The Past Decade of US Work Visas in Numbers </span></h1>
</div>
<div class="col-md-1"></div>
</div>
<div class="row row1 align-items-end" style="height:5%;">
<div class="col-md-7"></div>
<div class="col-md-5">
<p class="credits">
Photo credit: https://timedotcom.files.wordpress.com/2018/01/ellis.jpeg
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Area for the Intro text + photo -->
<div class="section" data-anchor="introduction">
<div class="intro_bg">
<div class="container-fluid h-100 ">
<div class="row row1 align-items-center" style="height:15%;"></div>
<div class="row row1 align-items-center" style="height:80%;">
<div class="col-md-1"></div>
<div class="col-md-10" id="intro_block">
<div id="quote">
<em>“Remember, remember always, that all of us, you and I especially, are descended from immigrants and revolutionists.” </em><br>
Franklin D. Roosevelt
</div>
<p class="intro_paragraph">
The history of America is a history of immigration. This visualization project explores trends in work visa immigration from a contemporary lens- 2007 to 2017. We look at H1B visas (for specialized work and people with graduate degrees), H2A visas (for temporary agricultural work), and H2B visas (temporary, nonagricultural work). We intersperse the data with the human stories of people who have migrated to the US in the past 10 years. <br> <br>
We hope this data art project can combat xenophobia and remind us of the beauty and living history of migration.
</p>
</div>
<div class="col-md-1"></div>
</div>
<div class="row row1 align-items-end" style="height:5%;">
<div class="col-md-7"></div>
<div class="col-md-5">
<p class="credits">
Photo by Nathan Adams. From Flickr Creative Commons. https://www.flickr.com/photos/nathan_adams/8720200308/sizes/l
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Area for the overview and explanation of work visas -->
<div class="section overview" data-anchor="section1">
<div class="overview_bg" >
<div class="container-fluid h-100" id="overview">
<div class="row align-items-center" style="height:20%;"></div>
<div class="row align-items-center" style="height:10%;" id="overview_header">
<div class="col-md-1"></div>
<div class="col-md-10">
<div id="header_bg"> Over the past 10 years, the US has issued</div>
</div>
<div class="col-md-1"></div>
</div>
<div class="row align-items-center overview_row" style="height:65%;" id="overview_text">
<div class="col-md-4">
<div class="overview_bubble">
<span class="count1">0</span><br>
<div class="visatooltip">H1-B Visas
<span class="visatooltiptext">H1-B Visas are given to people with specialized skills, usually with graduate-level degrees.</span>
</div>
</div>
</div>
<div class="col-md-4">
<div class="overview_bubble">
<span class="count2">0</span><br>
<div class="visatooltip">H2-A Visas
<span class="visatooltiptext">H2-A Visas are given to people on a temporary basis for agricultural work.</span>
</div>
</div>
</div>
<div class="col-md-4">
<div class="overview_bubble">
<span class="count3">0</span><br>
<div class="visatooltip">H2-B Visas
<span class="visatooltiptext">H2-B Visas are given to all other temporary forms of work that are not agricultural.</span>
</div>
</div>
</div>
</div>
<div class="row align-items-end" style="height:5%;">
<div class="col-md-7"></div>
<div class="col-md-5">
<p class="credits">
Information from US Citizen and Immigration Services https://www.uscis.gov/working-united-states/working-us
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Area for the first visualization, the world map of where people come from -->
<div class="section" data-anchor="section2">
<div class="container-fluid">
<h2>Where Are People From?</h2>
<div class="row align-items-center">
<div class="col-md-7">
<div class="col-md-12 d-flex">
<div class="col-md-8">
<form>
<div class="form-group">
<label for="world-map-selection" id="world-map-selection-label"></label>
<input type="range" class="custom-range" min="2007" max="2017" value="2007" id="world-map-selection" onchange="updateWorldMap()">
</div>
</form>
</div>
<div class="col-md-4 align-self-end">
<div class="btn-group btn-group-toggle" data-toggle="buttons" id="world-map-toggle-btns">
<label class="btn btn-secondary active">
<input type="radio" name="options" id="h1b-visa-btn" autocomplete="off" value="H-1B" checked> H-1B
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="h2a-visa-btn" autocomplete="off" value="H-2A"> H-2A
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="h2b-visa-btn" autocomplete="off" value="H-2B"> H-2B
</label>
</div>
</div>
</div>
<div id="world_map_area"></div>
</div>
<div class="col-md-5">
<p class="section_paragraph">
The vast majority of people migrating to the US on H1-B visas in the past 10 years are from <strong> India, </strong> while the majority of people migrating on H2-A and H2-B visas are from <strong> Mexico. </strong></strong><br><br>
Click on the interactive visualization to the left to learn more about each country over the years. Or toggle between visa types! Double click or use your scroll track to zoom in and out. Click and drag to pan around the map.
</p>
<div id="world_map_area_details"></div>
</div>
</div>
</div>
</div>
<!-- Area for the first story, about Yemen -->
<div class="section" data-anchor="story_yemen">
<div class="story1_bg">
<div class="container-fluid h-100">
<div class="row align-items-center" style="height:95%;">
<div class="col-md-1"></div>
<div class="col-md-10 story_text_block">
<p class="story_paragraph">
"After my family got a visa in Yemen, I was so glad that I would be going to the USA. All my family were happy for us but most of them were crying at the time we left. We left Yemen during the beginning of the revolution to change the president. Since then people are suffering from lack of food resources. Each year it gets worse. My father told us that we would not stay for a long time in NYC but since the war started in Yemen it’s not safe anymore. We couldn’t go back so we decided to stay."
<br>-Basam
</p>
</div>
<div class="col-md-1"></div>
</div>
<div class="row align-items-end" style="height:5%;">
<div class="col-md-7"></div>
<div class="col-md-5">
<p class="credits">
Story thanks to https://myimmigrationstory.com/. <br>
Photo thanks to https://www.aljazeera.com/indepth/features/2011/06/20116101015017996.html
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Area for the second visualization, the timeline -->
<div class="section" data-anchor="section3">
<div class="container-fluid">
<h2>What is the History?</h2>
<div class="row row2 align-items-center">
<div class="col-md-1"></div>
<div class="col-md-5">
<!-- <div class="form-group" id="timeline_selection_area">
<select class="form-control" id="timeline_selection" onchange="updateTimeline()">
<option value="default">All Legislation</option>
<option value="Congressional Legislation">Congressional Legislation</option>
<option value="Supreme Court">Supreme Court</option>
<option value="Executive Order">Executive Order </option>
</select>
</div> -->
<div class="btn-group btn-group-toggle" data-toggle="buttons" id="timeline_selection_area">
<label class="btn btn-secondary active">
<input type="radio" name="timeline" id="option1" value="default" autocomplete="off" checked> All Policy
</label>
<label class="btn btn-secondary">
<input type="radio" name="timeline" id="option2" value="Congressional Legislation" autocomplete="off" >Legislation
</label>
<label class="btn btn-secondary">
<input type="radio" name="timeline" id="option3" value="Supreme Court" autocomplete="off" > Supreme Court
</label>
<label class="btn btn-secondary">
<input type="radio" name="timeline" id="option4" value="Executive Order" autocomplete="off" > Executive Order
</label>
</div>
<div id="timeline_area"></div>
</div>
<div class="col-md-5">
<div class="row">
<p class="section_paragraph">
The US has a fraught history of policy relating to migration. At times, policies have been explicitly racist or <strong> discriminatory. </strong> At other times, policies have been used to <strong> encourage </strong> migration. <br><br>
Click on the interactive timeline to the left to learn more about each policy, or to sort between legislation, executive orders, or supreme court decisions.<br><br>
</p>
</div>
<div class="row">
<div id="timeline_details_area"></div>
</div>
</div>
<div class="col-md-1"></div>
</div>
</div>
</div>
<!-- Area for the second story, about eritrea-->
<div class="section" data-anchor="story_eritrea">
<div class="story2_bg">
<div class="container-fluid h-100">
<div class="row align-items-center" style="height:95%;">
<div class="col-md-1"></div>
<div class="col-md-10 story_text_block">
<p class="story_paragraph">
"In Eritrea, there are nine ethnic tribes. All of them use a special utensil for coffee in a creative way.
This special coffee maker is known as a jebena. Coffee made by a jebena is popular in Eritrea and surrounding countries. Serving coffee in the United States is different than the way you would do it using a jebena for Eritrean coffee. The jebena is made of clay and it has a circle base, a long cylindrical neck, and a curved handle... The jebena has a special place in my heart because of the fond memories it brings back...So, on Sundays after church or on holidays, my family and I can get together to laugh and eat our American food, but it is certain that we will pull out our jebena and start to make coffee. We are reminded of our home land and that it’s really not that far away. We miss the times we had there but with our smiles, happiness, and coffee we can make some new memories here."
<br>-Mussie
</p>
</div>
<div class="col-md-1"></div>
</div>
<div class="row align-items-end" style="height:5%;">
<div class="col-md-12">
<p class="credits">
Story thanks to http://immigrants.mndigital.org/exhibits/show/immigrantstories-exhibit/item/580 <br>
Photo thanks to http://emanbakry.blogspot.com/2014/12/</p>
</div>
</div>
</div>
</div>
</div>
<!-- Area for the work visas details -->
<div class="section" data-anchor="section4">
<div class="container-fluid">
<h2>Who Migrates to the US on Work Visas?</h2>
<div class="row no-gutters">
<div class="col-12 col-sm-6 col-md-6"></div>
<div class="col-6 col-md-6">
<!--<div class="form-group">
<label for="barChartArea">Select Bar Chart </label>
<select class="form-control" id="barChartArea" style="width:150px" onchange='userSelect()'>
<option value="None">Choose One</option>
<option value="Education">Education</option>
<option value="Salary">Salary</option>
<option value="Age">Age</option>
<option value="Occupation">Occupation</option>
<option value="Industry">Industry</option>
</select>
</div> -->
<div class="btn-group btn-group-toggle" data-toggle="buttons" id="barChartArea">
<label class="btn btn-secondary active">
<input type="radio" name="barChart" id="BCoption2" value="Education" autocomplete="off" checked >Education
</label>
<label class="btn btn-secondary">
<input type="radio" name="barChart" id="BCoption3" value="Salary" autocomplete="off" > Salary
</label>
<label class="btn btn-secondary">
<input type="radio" name="barChart" id="BCoption4" value="Age" autocomplete="off" > Age
</label>
<label class="btn btn-secondary">
<input type="radio" name="barChart" id="BCoption5" value="Occupation" autocomplete="off" > Occupation
</label>
<label class="btn btn-secondary">
<input type="radio" name="barChart" id="BCoption6" value="Industry" autocomplete="off" > Industry
</label>
</div>
</div>
</div>
<div class="row row2 align-items-center">
<div class="col-md-1"></div>
<!-- if not 4, brush doesn't work properly! -->
<div class="col-md-4">
<div id="work_map_area"></div>
</div>
<div class="col-md-7">
<div id="work_details_area1"></div>
</div>
</div>
<!-- Container for Industry; names are too long and will need a separate row -->
<div class="row justify-content-end">
<div class="col-md-1"></div>
<div class="col-md-10">
<p class="section_paragraph">
The area chart above shows total approved H1-B work visas from 2007 to 2017. Select a section of the area chart to view how the demographics of people awarded work visas changes over time! As you can see, the majority of migrants on H1-B work visas tend to be <strong> young, well educated, and in the computer science or tech sector. </strong>
</p>
</div>
<div class="col-md-1"></div>
</div>
</div>
</div>
<!-- Area for the third story, about agricultural work-->
<div class="section" data-anchor="story_mexico">
<div class="story3_bg">
<div class="container-fluid h-100">
<div class="row align-items-center" style="height:95%;">
<div class="col-md-1"></div>
<div class="col-md-10 story_text_block">
<p class="story_paragraph">
"I was born in Jalisco Mexico, where I lived with my parents and eleven siblings. At the age of 15, I started my remarkable journey coming to California in the United States. At one point I lived in the mountains. I then began working in the vegetable fields in California in order to bring, raise and help educate my siblings. I then got an opportunity to work as a dishwasher and night cleaner at a lodge in Pebble Beach. I worked hard and long hours on the graveyard shift so I could continue to go to school and learn English. I was quickly promoted to line cook and had the opportunity to cook for past President George H.W. Bush. I am currently a private chef, radio host, writer, journalist and TV and radio producer. I maintain a very busy life doing the things I love with a passion."
<br>-Pedro
</p>
</div>
<div class="col-md-1"></div>
</div>
<div class="row align-items-end" style="height:5%;">
<div class="col-md-12">
<p class="credits">
Story thanks to https://myimmigrationstory.com/. <br>
Photo thanks to https://www.cnn.com/videos/politics/2017/04/06/california-farmers-undocumented-workers-jones-pkg-ac.cnn
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Area for States people migrate to details -->
<div class="section" data-anchor="section5">
<p class="container-fluid">
<h2>Where do People Go? </h2>
<div class="row row2 align-items-center">
<div class="col-md-7" id="us-map-select-box">
<!--<select class="form-control col-md-2" id="us-map-selection" onchange="updateUsMap()">-->
<!--<option value="2016">2016</option>-->
<!--<option value="2017">2017</option>-->
<!--</select>-->
<form>
<div class="form-group">
<label for="us-map-selection" id="us-map-selection-label"></label>
<input type="range" class="custom-range" min="2016" max="2017" value="2016" id="us-map-selection" onchange="updateUsMap()">
</div>
</form>
<div id="states_map_area"></div>
</div>
<div class="col-md-4">
<p class="section_paragraph"> The following data looks at H-1B visas applications that were marked as "certified", meaning that the applicant is eligible to file an H-1B, though not necessarily approved.</p>
<div id="states_details_area"></div>
</div>
<div class="col-md-1"></div>
</div>
</div>
<!-- Area for the fourth story, about the Philippines-->
<div class="section" data-anchor="story_philippines">
<div class="story4_bg">
<div class="container-fluid h-100">
<div class="row align-items-center" style="height:95%;">
<div class="col-md-1"></div>
<div class="col-md-10 story_text_block">
<p class="story_paragraph">
"I was born in an outer city suburb in the Philippines called Quezon City. My family and I immigrated to the United States when I was almost 6 years old, and that was almost 12 years ago today. It was always a priority for my parents to provide a better life for us than the lives my siblings and I would have had to go through in the Philippines. They knew that living in the America would give us the opportunities to strive for a higher education and to pursue our dreams. So with hard work, dedication, and most importantly faith, my parents were able to move our family of 5 across the world, more than 10,000 miles away."
<br>-Faye
</p>
</div>
<div class="col-md-1"></div>
</div>
<div class="row align-items-end" style="height:5%;">
<div class="col-md-12">
<p class="credits">
Story thanks to http://immigrants.mndigital.org/exhibits/show/immigrantstories-exhibit/item/478 <br>
Photo thanks to https://en.wikipedia.org/wiki/Quezon_City
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Area for 2016 Election details -->
<div class="section" data-anchor="section6">
<div class="container-fluid">
<h2 id="trend_section">What Are the Time Trends?</h2>
<div class="row row2 align-items-center">
<div class="col-md-7" >
<div id="trump_country_trendlines_area"></div>
</div>
<div class="col-md-5">
<p class="section_paragraph">
<!-- The election of Donald Trump in 2016 has dramatic potential to alter American immigration. The first trendline to the right show <span class="applications" onmouseover="applicationsMouseOver()" onmouseout="trendlineTextMouseOut()"> applications</span> and <span class="approvals" onmouseover="approvalsMouseOver()" onmouseout="trendlineTextMouseOut()">approvals</span> for work visas over the past 10 years. <br> <br>
There's a sharp dip in approvals after 2016, even though applications continue upwards, although more years' data will be needed to see how the trendline continues. <br><br> -->
The trendline to the right shows
<br>
<br> <span class="H1B" onmouseover="H1BMouseOver()" onmouseout="VisaTrendlineMouseOut()"> H1B visas (graduate, specialized workers), </span>
<br><span class="H2A" onmouseover="H2AMouseOver()" onmouseout="VisaTrendlineMouseOut()"> H2A visas (temporary agricultural workers), </span>
<br><span class="H2B" onmouseover="H2BMouseOver()" onmouseout="VisaTrendlineMouseOut()"> and H2B visas (temporary non-agricultural workers). </span>
<br>
<br>Right now the graph shows overall world trends. Type any country in the box to explore its visa trends over the past decade!
<br>
</p>
<!-- thanks to w3schools for autocomplete code https://www.w3schools.com/howto/howto_js_autocomplete.asp -->
<form autocomplete="off" >
<div class="autocomplete" style="width:300px;">
<input id="myInput" type="text" name="myCountry" placeholder="Country">
</div>
<button name="country" id= "countrybutton" class="btn btn-primary" type= "button" onclick="updateTrendline()"> Submit</button>
</form>
</div>
</div>
</div>
</div>
<!-- Area for the last story, about partition -->
<div class="section" data-anchor="story_pakistan">
<div class="story5_bg">
<div class="container-fluid h-100">
<div class="row align-items-center" style="height:95%;">
<div class="col-md-1"></div>
<div class="col-md-10 story_text_block">
<p class="story_paragraph">
"My grandparents were refugees at the time of partition in India from, what is now, Pakistan to present India. They worked long and hard days doing blue-collar jobs so that my parents would have a better chance at life. My parents chose to honor their sacrifices by seeking a better life in the United States. We came to this country because my mother had a fellowship. We landed with just over $800 in NYC. They recognized that the caste system in the US is based on where you go to school so they sent my sister and I to the best high schools and then the best colleges. I am now in law school working to make sure our systems provide everyone with a fair shot at success... We honor the sacrifices of our family by trying to make the world a better place. We believe that the promise of America can be a reality for all of us. We are Americans."
<br>-Aditi
</p>
</div>
<div class="col-md-1"></div>
</div>
<div class="row align-items-end" style="height:5%;">
<div class="col-md-12">
<p class="credits">
Story thanks to https://myimmigrationstory.com/. <br>
Photo thanks to https://www.hindustantimes.com/india-news/partition-at-70-the-numbers-that-divided-india-and-pakistan/story-KvuFkeJlqNBky3JT5ZaZuK.html
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Area for Authors Section -->
<div class="section" data-anchor="section7">
<div class="container-fluid">
<h2 id="authors_section">Authors </h2>
<div class="row row2 align-items-center">
<div class="col-md-4">
<img src="img/celena.jpg" class="image"/>
<div class="overlay overlay_grey">
<div class="overlay_text"> Celena Toon <br> Software Developer <br> Harvard Extension School Student </div>
</div>
</div>
<div class="col-md-4">
<img src="img/pt.jpg" class="image"/>
<div class="overlay overlay_grey">
<div class="overlay_text"> Prat Thiru <br> Data Science Certificate <br> Harvard Extension School Student </div>
</div>
</div>
<div class="col-md-4">
<img src="img/Voegeli_Headshot.jpg" alt="a headshot of a woman with short blonde hair" class="image">
<div class="overlay overlay_grey">
<div class="overlay_text"> Elyse Voegeli <br> Master in Public Policy 2019 <br> Harvard Kennedy School </div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Load JS libraries: jQuery, bootstrap, D3 -->
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/queue.min.js"></script>
<script src="js/d3.min.js"></script>
<script src="js/topojson.min.js"></script>
<script src="js/colorbrewer.js"></script>
<script src="js/d3-tip.js"></script>
<!-- Used the fullpage library -->
<script src="js/fullpage.js"></script>
<script src="js/fullpage.extensions.min.js"></script>
<!-- Used Susie Lu's D3 Legend Library https://d3-legend.susielu.com/ & annotations library-->
<script src="js/d3-legend.min.js"></script>
<script src="js/d3-annotation.min.js"></script>
<!-- Main.js -->
<script src="js/map-vis.js"></script>
<script src="js/main.js"></script>
<script src="js/timeline.js"></script>
<script src="js/workVis.js"></script>
<script src="js/workVisBar.js"></script>
<script src="js/trendline.js"></script>
<script src="js/countrytrendline.js"></script>
<script type="text/javascript">
new fullpage('#fullpage', {
licenseKey: "OPEN-SOURCE-GPLV3-LICENSE",
anchors: ['section-header', 'introduction', 'section1', 'section2', 'story_yemen', 'section3', 'story_eritrea', 'section4', 'story_mexico', 'section5', 'story_philippines', 'section6', 'story_pakistan', 'section7'],
autoScrolling:true,
scrollHorizontally: true,
navigation:true,
afterLoad:function(origin, destination, direction){
if(destination.anchor=="section1"){
startCounter();
}
}
});
// counter animation from https://codepen.io/shivasurya/pen/FatiB
function startCounter(){
$('.count1').each(function () {
$(this).prop('Counter', 0).animate({
Counter: 1622403
}, {
duration: 7000,
easing: 'swing',
step: function (now) {
$(this).text(numberWithCommas(Math.ceil(now)));
}
});
});
$('.count2').each(function () {
$(this).prop('Counter', 0).animate({
Counter: 919518
}, {
duration: 6000,
easing: 'swing',
step: function (now) {
$(this).text(numberWithCommas(Math.ceil(now)));
}
});
});
$('.count3').each(function () {
$(this).prop('Counter', 0).animate({
Counter: 711229
}, {
duration: 5000,
easing: 'swing',
step: function (now) {
$(this).text(numberWithCommas(Math.ceil(now)));
}
});
});
function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
}
</script>
<script>
autocomplete(document.getElementById("myInput"), countries);
</script>
<script>
$("input[name='timeline']").change( function() {
var radioValue = $("input[name='timeline']:checked").val();
updateTimeline(radioValue);
});
$("input[name='barChart']").change( function() {
var radioValue = $("input[name='barChart']:checked").val();
//console.log(radioValue)
userSelect(radioValue);
});
</script>
</body>
</html>