-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·754 lines (680 loc) · 43.5 KB
/
index.html
File metadata and controls
executable file
·754 lines (680 loc) · 43.5 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
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Info 247: Information Visualization course at UC Berkeley</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
<!-- Plugin CSS -->
<link href="vendor/magnific-popup/magnific-popup.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/creative.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/noframework.waypoints.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.4/js/tether.min.js"></script>
<script src="js/why_not_d3_graph.js"></script>
<script src="js/impact-on-body-d3.js"></script>
<script src="js/mental-health.js"></script>
<script src="js/vision.js"></script>
<!-- This information is needed for GeoJSON-->
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.43.0/mapbox-gl.js'></script>
<link href='https://unpkg.com/mapbox-gl@0.43.0/dist/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:static; top:0; bottom:0; width:100%; height:500px;}
</style>
</head>
<body id="page-top">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="#page-top">Where the Grass is Greener</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#individualBenefits">Individual Benefits</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#whyNot">Why Not Go Oustide?</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#Community">Community Benefits</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#page-top"><img src="img/noun_929001.svg" width="30"></a>
</li>
</ul>
</div>
</div>
</nav>
<header class="masthead masthead-top text-center text-white d-flex">
<div class="container my-auto">
<div class="row">
<div class="col-lg-10 mx-auto">
<h1 class="text-uppercase" style="color:#303D01">
<strong>The Great Outdoors</strong>
</h1>
<hr>
</div>
<div class="col-lg-6 mx-auto">
<p class="text-faded mb-5 my-5">
Going outdoors is good for you and great for your community,
the environment, and the world. Scroll down to learn more!
</p>
<a class="btn btn-primary btn-xl js-scroll-trigger" href="#individualBenefits">Find Out More</a>
</div>
</div>
</div>
</header>
<section id="individualBenefits">
<div class="container">
<div class="row">
<h2 class="section-heading">
Impact of Outdoor Activity on Your Body and Mind
</h2>
</div> <!--close of row div-->
<div class="row my-5">
<div class="col-lg-12">
<div id="games">
<h3 class="mb-3" style="text-align:left">Going Outdoors Lowers Stress and Boosts Your Immune System</h3>
<p id="ex1" class="text-muted mb-3">
<b>Click</b> on the <span class="highlighted-green">forest</span> or <span class="highlighted-red">city</span>
to see what happens to the person in both places. </p>
</div> <!--Close of games div"-->
</div> <!--Close of col-lg-12 text-center-->
<div id="outdoorImpact" class="mx-auto">
<svg id="sparkle-wrapper" height="100" width="100">
<defs>
<clipPath id="clipPath" >
<circle class="st0" cx="50" cy="25.5" r="6.6"/>
<path class="st0" d="M60.9,39.7v12.8c0,2.8-1.8,5.3-4.4,6.3v17.9c0,2.4-1.9,4.4-4.4,4.4h-4.4c-2.4,0-4.3-2-4.4-4.4V58.7
c-2.6-1-4.4-3.5-4.4-6.3V39.7c0-2.5,2-4.5,4.5-4.5h12.8C58.9,35.2,60.9,37.2,60.9,39.7z"/>
</clipPath>
</defs>
<g id="personFill" fill="#A17E2A" style="clip-path: url(#clipPath);">
<rect id="fill" width=300 height=100 fill="#A17E2A"></rect>
</g>
<g id="text" width="100%">
<p style="max-width:470px; float:left">Several studies have shown that <span class="highlighted-green">walking
slowly in a forest enhances immune functions</span> by an increase in natural killer (NK) cell activity and the levels of
intracellular proteins that are associated with healthy lifestyles...</p>
<p style="max-width:480px; float:right">...Whereas walking in <span class="highlighted-red">an urban environment results in a higher level of stress</span> —
as evidenced by an elevated serum cortisol level - than in the forest group <a href="https://www.ncbi.nlm.nih.gov/pubmed/22840583"
data-toggle="tooltip" data-placement="top" title="'Effects of short-term forest bathing on human health in a broad-leaved
evergreen forest in Zhejiang Province, China.', Biomedical Environmental Science, 2012" target="_blank">[src]</a>.</p>
</g>
</svg>
</div> <!--Close of outdoorImpact div-->
<div class="row my-5">
<div class="offset-4 col-8">
<div id="games">
<h3 class="mb-3">Being Outdoors Increases Mindfulness</h3>
<p class="text-muted mb-3">
Outdoor experiences can <span class="highlighted-green">increase self-efficacy, mindfulness and subjective
well-being.</span> Furthermore, time spent outdoors may reduce feelings of time
pressure and mental stress.<a href="https://www.ncbi.nlm.nih.gov/pubmed/22840583"
data-toggle="tooltip" data-placement="top" title="'Mental health benefits of
outdoor adventures: Results from two pilot studies.', Journal of Adolescence, 2016" target="_blank">[src]</a>
</p>
</div> <!--Close of games div"-->
</div> <!--Close of offset-4 col-8-->
<div id="mental-health" style="max-height:300px">
<div width="100%">
<svg id="mind-wrapper" height="100" width="100">
<defs>
<clipPath id="clipPathMind" >
<circle class="st0" cx="50" cy="25.5" r="6.6"/>
<path class="st0" d="M60.9,39.7v12.8c0,2.8-1.8,5.3-4.4,6.3v17.9c0,2.4-1.9,4.4-4.4,4.4h-4.4c-2.4,0-4.3-2-4.4-4.4V58.7
c-2.6-1-4.4-3.5-4.4-6.3V39.7c0-2.5,2-4.5,4.5-4.5h12.8C58.9,35.2,60.9,37.2,60.9,39.7z"/>
</clipPath>
</defs>
<g id="rectangleMind" fill="#A17E2A" style="clip-path: url(#clipPathMind);">
<rect width=300 height=100 fill="#A17E2A"></rect>
</g>
</svg>
</div>
</div> <!--close of mental-health div-->
</div> <!--Close of row my-5 div-->
<div class="row my-5">
<div class="col-8">
<div id="games">
<h3 class="mb-3">Outdoor Activities Improve Vision</h3>
<p class="text-muted mb-3">
More time spent playing sports outdoors - but not indoor sports -
is associated with less myopia (near-sightedness) <a href="https://www.ncbi.nlm.nih.gov/pubmed/22840583"
data-toggle="tooltip" data-placement="top" title="'Outdoor activity reduces the prevalence of myopia
in children.', Journal of Ophthalmology, 2008" target="_blank">[src]</a>.
</p>
</div> <!--Close of games div"-->
</div> <!--Close of offset-4 col-8-->
<div id="vision" class="col-4">
<svg>
<image xlink:href="img/vision/noun_169904.svg" fill="#1D2900"></image>
</svg>
</div>
</div> <!--Close of row my-5-->
</div> <!--Close of container div-->
</section>
<section id="whyNot">
<div class="container">
<div class="row">
<h2 class="section-heading">
Why Not Go Outside?
</h2>
<h5 class="mb-2 my-5">
The Outdoor Industry Association ran a survey
<a href="https://outdoorindustry.org/participation/outdoor-foundation-research/reports/" data-toggle="tooltip" data-placement="top" title="'Outdoor Participation Report', The Outdoor Foundation, 2017" target="_blank">[src]</a>
to understand why people choose not to participate in outdoor recreation activites. Below were the top responses:
</h5>
<p class="text-muted mb-2">Participants were able to select multiple responses.</p>
<div id="whyNotChartFillerStart" style="height:0px; width:100%">
</div>
<svg width=800 height=600 id="whyNotChart"></svg>
</div>
<div class="row my-5">
<div class="offset-4 col-8">
<div id="gamesWhyNot">
<h3 class="mb-3">Outdoor Recreation is Healthier than Indoor Recreation</h3>
<p class="text-muted mb-3">
As we just learned above, studies have shown that outdoor recreation, compared to other recreational activities, can improve your health, for example by reducing the likelihood of near-sightedness.
</p>
</div>
<hr class="my-5">
<div id="family">
<h3 class="mb-3">Families with Children Visit Parks More Frequently</h3>
<p class="text-muted mb-3">
Outdoor recreation is great for families, even if it can be more challenging to plan. In fact, a survey found that people with children visited SF parks more often than those without.
</p>
<div class='tableauPlaceholder' id='viz1525555622182' style='position: relative; height: 200px'><noscript><a href='#'><img alt='Park Visitors - Kids ' src='https://public.tableau.com/static/images/3Y/3Y4788D4X/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='embed_code_version' value='3' /> <param name='path' value='shared/3Y4788D4X' /> <param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/3Y/3Y4788D4X/1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /></object></div> <script type='text/javascript'> if (window.location.search.indexOf('disable_tableau') === -1) { var divElement = document.getElementById('viz1525555622182'); var vizElement = divElement.getElementsByTagName('object')[0]; vizElement.style.width='100%';vizElement.style.height='200px'; var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement);} </script>
</div>
<hr class="my-5">
<div id="expensive">
<h3 class="mb-3">Low-Income Households Still Frequently Visit Parks</h3>
<p class="text-muted mb-3">
There are many free recreational activities to participate in outdoors. Even though households with higher incomes tend to visit parks more frequently, >85% of surveyed low-income families visited parks, and > 70% visit them at least 1/month.
</p>
<div class='tableauPlaceholder' id='viz1525555709463' style='position: relative; height: 450px'><noscript><a href='#'><img alt='Park Visitors - Income ' src='https://public.tableau.com/static/images/6M/6MBRGYG2G/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='embed_code_version' value='3' /> <param name='path' value='shared/6MBRGYG2G' /> <param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/6M/6MBRGYG2G/1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /></object></div> <script type='text/javascript'> if (window.location.search.indexOf('disable_tableau') === -1) { var divElement = document.getElementById('viz1525555709463'); var vizElement = divElement.getElementsByTagName('object')[0]; vizElement.style.width='100%';vizElement.style.height='450px'; var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement);} </script>
</div>
<hr class="my-5">
<div id="alone">
<h3 class="mb-3">It's Easy To Learn More And Find Friends For Outdoor Recreation</h3>
<p class="text-muted">
These days, it's easy to find a group of friendly people online to participate in a varitety of outdoor recreation activities. For example, you could find a group of folks near SF that like going on hikes on <a href="https://www.meetup.com/topics/hiking/us/ca/san_francisco/" target="_blank">Meetup</a>. They'll often even plan the activity for you!
</p>
<p class="text-muted mb-3">
If you'd rather hike with people you know, then <a href="mailto:?subject=Let%27s%20Go%20On%20A%20Hike%21">share this site</a> with your friends to convice them to participate with you! If you're in SF, you can call 311 to get more information about parks near you.
</p>
</div>
<div id="disability">
<h3 class="mb-3">People With Physical Disabilities Still Frequently Visit Parks</h3>
<p class="text-muted mb-3">
There are many accessible recreational activities to participate in outdoors. Even though people with physical disabilities tend to visit parks less frequently, >80% of surveyed people with physical disabilities visit parks.
</p>
<div class='tableauPlaceholder' id='viz1525555848007' style='position: relative; height: 200px'><noscript><a href='#'><img alt='Park Visitors - Physical Disabilty ' src='https://public.tableau.com/static/images/CZ/CZ73JSQH4/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='embed_code_version' value='3' /> <param name='path' value='shared/CZ73JSQH4' /> <param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/CZ/CZ73JSQH4/1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /></object></div> <script type='text/javascript'> if (window.location.search.indexOf('disable_tableau') === -1) { var divElement = document.getElementById('viz1525555848007'); var vizElement = divElement.getElementsByTagName('object')[0]; vizElement.style.width='100%';vizElement.style.height='200px'; var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement);} </script>
</div>
<hr class="my-5">
<div id="far">
<h3 class="mb-3">SF is Full of Parks Within Walking Distance</h3>
<p class="text-muted mb-3">
San Franciso, like many cities, is full of parks that are easily accessible by public transit or even just walking. Check out the map below to find a park in SF near you!
</p>
<style>
.mapboxgl-popup {
max-width: 400px;
font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
}
</style>
<div id='map' style="position:relative;"></div>
<script>
// javascript code goes here!!!
// url to our "raw" geo data
var dataURL = "https://raw.githubusercontent.com/clhenrick/geovisualization_workshop_ischool/master/data/nyc_crashes.geojson";
// url to hexbins
var hexBinURL = "https://gist.githubusercontent.com/clhenrick/5787a12a8bf3b02821839e4f9556d997/raw/f18f34a319380ba471078baec382970dbc64a9ff/processed.json";
// access token to use with MapboxGL
var accessToken = 'pk.eyJ1IjoiZW5qYWxvdCIsImEiOiIzOTJmMjBiZmI2NGQ2ZjAzODhiMzhiOGI2MTI1YTk4YSJ9.sIOXXU3TPp5dLg_L3cUxhQ';
//set mapboxGL access token
mapboxgl.accessToken = accessToken;
//instantiate the map object
var map = new mapboxgl.Map({
container: "map",
style: "mapbox://styles/mapbox/outdoors-v9",
center: [-122.4194, 37.7749],
zoom: 10
});
// add map navigation controls
map.addControl(new mapboxgl.NavigationControl());
// do stuff on map load
map.on("load", function(){
//load our data
d3.json("./json/geo_json.json", function(error, data){
if(error) throw error;
console.log(data);
//add our source
map.addSource("crashes",{
type: "geojson",
data: data//,
//cluster: true
});
//add the layer to the map
map.addLayer({
id: "crashes",
type: "circle",
source: "crashes",
layout: {},
'paint': {
'circle-color': [
'match',
['get', 'park_type'],
'Mini Park', '#8E44AD',
'Neighborhood Park or Playground', '#52BE80',
'Community Garden', '#F7DC6F',
'Regional Park', '#E74C3C',
'Family Camp', '#5DADE2',
'Concession', '#00FFFF',
'Civic Plaza or Square', '#FF00FF',
'Parkway', '#808000',
'Zoologic Garden', '#FFFF00',
/* other */ '#ccc'
],
'circle-stroke-width': 1,
'circle-radius': {
'base': 150.00,
'stops': [[12, 5], [22, 180]]
}
}
}); //ends map layer
var popup = new mapboxgl.Popup({
closeButton: false,
closeOnClick: false
});
map.on('mouseenter', 'crashes', function(e) {
// Change the cursor style as a UI indicator.
map.getCanvas().style.cursor = 'pointer';
var coordinates = e.features[0].geometry.coordinates.slice();
var description = e.features[0].properties.park_type;
// Ensure that if the map is zoomed out such that multiple
// copies of the feature are visible, the popup appears
// over the copy being pointed to.
while (Math.abs(e.lngLat.lng - coordinates[0]) > 180) {
coordinates[0] += e.lngLat.lng > coordinates[0] ? 360 : -360;
}
// Populate the popup and set its coordinates
// based on the feature found.
popup.setLngLat(coordinates)
.setHTML(description)
.addTo(map);
});
map.on('mouseleave', 'crashes', function() {
map.getCanvas().style.cursor = '';
popup.remove();
});
}); //ends d3.json
}); //ends maponload
</script>
</div>
</div>
</div>
<div class="row">
<div class="col-4">
<div id="whyNotChartFillerEnd" style="height:460px; width:100%">
</div>
</div>
<div class="col-8">
<h3>
As you can see, it turns out there aren't that many reasons left to avoid outdoor recreational activities.
<br><br>
But even if you're not convinced to go outside for yourself, see the impact it can have on your community!
</h3>
</div>
</div>
</div>
</section>
<br><br><br><br><br><br><br><br><br><br>
<section id="Community">
<div class="container">
<!--<div id="communityFiller" class="fillerFixed">
</div>-->
<div id="img_container" class="container-static">
<img id='person' class="img-person" src="img/community/person.png" alt="">
<img id='sadlines' class="img-sadlines" src="img/community/sadlines.png" alt="">
<img id='co2_img' class="img-co2" src="img/community/co2.png" alt="">
<img id='wilted' class="img-wilted" src="img/community/wilted.png" alt="">
<img id='bench' class="img-bench" src="img/community/bench_green.png" alt="">
<img id='stars' class="img-stars" src="img/community/stars_green.png" alt="">
<img id='stars2' class="img-stars2" src="img/community/stars_green.png" alt="">
<img id='tulip' class="img-tulip" src="img/community/tulip_green.png" alt="">
<img id='water_pic' class="img-water" src="img/community/water_green.png" alt="">
<img id='rain' class="img-rain" src="img/community/rain_green.png" alt="">
<img id='tree' class="img-tree" src="img/community/tree_green.png" alt="">
</div>
<div id="intro" class="commText">
<h2 class="section-heading">
Community Impact
</h2>
<p class="text-muted mb-3 my-5">
Parks and green spaces also have a large, positive imact on the community. <br><br> <b>Imagine a world without parks.</b> <br><br> In addition to the lack of individual recreation space, harmful particlates in the atmosphere are more numerous, water is not effectively collected by plants, community cohesion is low, and the health care costs to a city are high. <br><br> Now, let's examine in detail what the impact of certain parts of parks have on a community. Statistics come from a San Francisco Report on The Economic Benefits of San Francisco’s Park and Recreation System
<a href="https://www.tpl.org/sites/default/files/files_upload/San%20Francisco%20Economic%20Value%20Study%20report%20final%20low-res.pdf" data-toggle="tooltip" data-placement="top" title="'The Economic Benefits of San Francisco’s Park and Recreation System', The Trust for Public Land, 2014" target="_blank">[src]</a>.
</p>
</div>
<br><br><br><br><br><br><br><br><br><br>
<div id="co2" class="commText">
<h3 class="mb-3">Absorption of Harmful Particles</h3>
<p class="text-muted mb-3">
<span class="highlighted-green">Trees and shrubs absorb harmful particles</span> such as CO2 and ozone. For the city of San Francisco, the estimated tons of each particle removed by parks is:
<br><b>Carbon Dioxide:</b><br><img class="img-co2-small" src="img/community/co2.png" alt="">
2,246 <br><b>Nitrogen Dioxide:</b> <br><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""> 20,283<br><b>Ozone:</b> <br><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt="">74,854<br><b>Particulate Matter:</b><br> <img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt=""><img class="img-co2-small" src="img/community/co2.png" alt="">29,357<br><b>Sulfur Dioxide:</b> <br><img class="img-co2-small" src="img/community/co2.png" alt="">3,957<br>
</p>
</div>
<br><br><br><br><br><br><br><br><br><br>
<div id="water" class="commText">
<h3 class="mb-3">Improved Stormwater Retention</h3>
<p class="text-muted mb-3">
<span class="highlighted-green">Park vegetation</span> also helps increase stormwater retention, which <span class="highlighted-blue">helps prevent flooding and erosion.</span> The city of San Francisco saves 134 million cubic feet of runoff from parks annually. That's <b>30%</b> of its total annual rainfall!
</p>
</div>
<br><br><br><br><br><br><br><br><br><br>
<div id="health" class="commText">
<h3 class="mb-3">Health Care Cost</h3>
<p class="text-muted mb-3">
Parks also help <span class="highlighted-green">encourage citizens to remain healthy and active.</span> Parks incentivizing people to stay healthy and active <span class="highlighted-light-blue">saves the city of San Francisco nearly $50 million</span> in health care costs!<br><br> To figure out how much you may be costing the city, answer the questions below: <br><br><br>
<img class="dec-tree" src="img/community/decision_tree.png" alt="">
</p>
</div>
<br><br><br><br><br><br><br><br><br><br>
<div id="comm" class="commText">
<h3 class="mb-3">Community Cohesion</h3>
<p class="text-muted mb-3">
<span class="highlighted-green">Parks increase community cohesion</span> within a local community. They allow for a free, local place for community groups to gather. Additionally, many people <span class="highlighted-green">volunteer</span> to improve parks, which can result in heightened social capital, especially in neighborhoods without safe public spaces.
</p>
</div>
<br><br><br><br><br><br><br><br><br><br>
<div id="conclusion" class="commText">
<h3 class="mb-3">
Parks provide many benefits apart from individual usage including harmful particle absorption, stormwater retention, health care cost reduction, and community cohesion. <b>Our community is now thriving in many ways, thanks to parks!</b>
</h3>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
</section>
<header class="masthead masthead-bottom text-center text-white d-flex">
<div class="container my-auto">
<div class="row">
<div class="col-lg-10 mx-auto">
<h1 class="text-uppercase" style="color:white">
<strong>So...What's Your Next Adventure?</strong>
</h1>
</div>
</div>
</div>
</header>
<!-- Waypoints for scrollytelling -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/noframework.waypoints.js"></script>
<script>
function section_scroll(elmtName, offset){
return new Waypoint({
element: document.getElementById(elmtName),
handler: function(direction) {
if (direction == 'down'){
console.log("got it -1")
$("#person").stop().animate({opacity:0});
$("#sadlines").stop().animate({opacity:0});
$("#co2_img").stop().animate({opacity:0});
$("#sadlines").stop().animate({opacity:0});
$("#wilted").stop().animate({opacity:0});
$("#bench").stop().animate({opacity:0});
$("#stars2").stop().animate({opacity:0});
$("#stars").stop().animate({opacity:0});
$("#rain").stop().animate({opacity:0});
$("#water_pic").stop().animate({opacity:0});
$("#tulip").stop().animate({opacity:0});
$("#tree").stop().animate({opacity:0});
}
},
//start 75% from the top of the div
offset: offset
});
};
//triger these functions on page scroll
new section_scroll('intro', '300%');//#, water, intro);
//waypoints scroll constructor
function scroll(elmtName, offset){
return new Waypoint({
element: document.getElementById(elmtName),
handler: function(direction) {
if(direction == 'down'){ //? func1() : func2();
console.log("got it 0...");
//document.getElementById("water_pic").style = "visibility=visible";
document.getElementById("img_container").className = "container-moving";
$("#person").stop().animate({opacity:1}, 5000);
$("#sadlines").stop().animate({opacity:1}, 5000);
$("#co2_img").stop().animate({opacity:1}, 5000);
$("#sadlines").stop().animate({opacity:1}, 5000);
$("#person").stop().animate({opacity:1}, 5000);
$("#wilted").stop().animate({opacity:1}, 5000);
}
if(direction == 'up'){ //? func1() : func2();
console.log("got it 0...");
//document.getElementById("water_pic").style = "visibility=visible";
$("#bench").stop().animate({opacity:0});
$("#stars2").stop().animate({opacity:0});
$("#stars").stop().animate({opacity:0});
$("#rain").stop().animate({opacity:0});
$("#water_pic").stop().animate({opacity:0});
$("#tulip").stop().animate({opacity:0});
$("#tree").stop().animate({opacity:0});
$("#co2_img").stop().animate({opacity:0});
$("#person").stop().animate({opacity:0});
$("#co2_img").stop().animate({opacity:0});
$("#sadlines").stop().animate({opacity:0});
$("#wilted").stop().animate({opacity:0});
setTimeout(function(){document.getElementById("img_container").className = "container-static"},5000);
}
},
//start 75% from the top of the div
offset: offset
});
};
//triger these functions on page scroll
new scroll('intro', '250px');//#, water, intro);
function co2_scroll(elmtName, offset){
return new Waypoint({
element: document.getElementById(elmtName),
handler: function(direction) {
if (direction == 'down'){
direction == 'down' //? func1() : func2();
console.log("got it 1...");
$("#tree").stop().animate({opacity:1}, {duration: 3000});//.style = "visibility=visible";
}
if (direction == 'up'){
console.log("got it 1...");
$("#tree").stop().animate({opacity:0}, {duration: 3000});//.style = "visibility=visible";
}
},
//start 75% from the top of the div
offset: offset
});
};
//triger these functions on page scroll
new co2_scroll('co2', '75%');//#, water, intro);
function water_scroll(elmtName, offset){
return new Waypoint({
element: document.getElementById(elmtName),
handler: function(direction) {
if (direction == 'down'){
console.log("got it 2...");
//document.getElementById("co2_img").style.visibility= "hidden";
$("#co2_img").stop().animate({opacity:0}, 3000);
//document.getElementById("rain").style.visibility="visible";
$("#rain").stop().animate({opacity:1}, 3000);
//document.getElementById("water_pic").style.visibility="visible";
$("#water_pic").stop().animate({opacity:1}, 3000);
//document.getElementById("tulip").style.visibility="visible";
$("#tulip").stop().animate({opacity:1}, 3000);
document.getElementById("tree").src = "./img/community/tree_grey.png";
} //? func1() : func2();
if (direction == 'up'){
console.log("got it 2...");
//document.getElementById("co2_img").style.visibility= "hidden";
$("#co2_img").stop().animate({opacity:1}, 3000);
//document.getElementById("rain").style.visibility="visible";
$("#rain").stop().animate({opacity:0}, 3000);
//document.getElementById("water_pic").style.visibility="visible";
$("#water_pic").stop().animate({opacity:0}, 3000);
//document.getElementById("tulip").style.visibility="visible";
$("#tulip").stop().animate({opacity:0}, 3000);
document.getElementById("tree").src = "./img/community/tree_green.png";
} //? func1() : func2();
},
//start 75% from the top of the div
offset: offset
});
};
//triger these functions on page scroll
new water_scroll('water', '75%');//#, water, intro);
function health_scroll(elmtName, offset){
return new Waypoint({
element: document.getElementById(elmtName),
handler: function(direction) {
if(direction == 'down'){ //? func1() : func2();
console.log("got it 3...");
//document.getElementById("wilted").style.visibility= "hidden";
$("#wilted").stop().animate({opacity:0}, 3000);
//document.getElementById("stars").style.visibility="visible";
$("#stars").stop().animate({opacity:1}, 3000);
document.getElementById("rain").src = "./img/community/rain_grey.png";
document.getElementById("water_pic").src = "./img/community/water_grey.png";
document.getElementById("tulip").src = "./img/community/tulip_grey.png";
}
if(direction == 'up'){ //? func1() : func2();
console.log("got it 3...");
//document.getElementById("wilted").style.visibility= "hidden";
$("#wilted").stop().animate({opacity:1}, 3000);
//document.getElementById("stars").style.visibility="visible";
$("#stars").stop().animate({opacity:0}, 3000);
document.getElementById("rain").src = "./img/community/rain_green.png";
document.getElementById("water_pic").src = "./img/community/water_green.png";
document.getElementById("tulip").src = "./img/community/tulip_green.png";
}
},
//start 75% from the top of the div
offset: offset
});
};
//triger these functions on page scroll
new health_scroll('health', '75%');//#, water, intro);
function comm_scroll(elmtName, offset){
return new Waypoint({
element: document.getElementById(elmtName),
handler: function(direction) {
if (direction == 'down'){ //? func1() : func2();
console.log("got it 4...");
//document.getElementById("sadlines").style.visibility= "hidden";
$("#sadlines").stop().animate({opacity:0}, 3000);
//document.getElementById("bench").style.visibility="visible";
$("#bench").stop().animate({opacity:1}, 3000);
//document.getElementById("stars2").style.visibility="visible";
$("#stars2").stop().animate({opacity:1}, 3000);
document.getElementById("stars").src = "./img/community/stars_grey.png";
}
if (direction == 'up'){ //? func1() : func2();
console.log("got it 4...");
//document.getElementById("sadlines").style.visibility= "hidden";
$("#sadlines").stop().animate({opacity:1}, 3000);
//document.getElementById("bench").style.visibility="visible";
$("#bench").stop().animate({opacity:0}, 3000);
//document.getElementById("stars2").style.visibility="visible";
$("#stars2").stop().animate({opacity:0}, 3000);
document.getElementById("stars").src = "./img/community/stars_green.png";
}
},
//start 75% from the top of the div
offset: offset
});
};
//triger these functions on page scroll
new comm_scroll('comm', '75%');//#, water, intro);
function conc_scroll(elmtName, offset){
return new Waypoint({
element: document.getElementById(elmtName),
handler: function(direction) {
if (direction == 'down'){ //? func1() : func2();
document.getElementById("bench").src = "./img/community/bench_grey.png";
document.getElementById("stars2").src = "./img/community/stars_grey.png";
}
if (direction == 'up'){ //? func1() : func2();
document.getElementById("bench").src = "./img/community/bench_green.png";
document.getElementById("stars2").src = "./img/community/stars_green.png";
}
},
//start 75% from the top of the div
offset: offset
});
};
//triger these functions on page scroll
new conc_scroll('conclusion', '75%');//#, water, intro);
function reverse_section_scroll(elmtName, offset){
return new Waypoint({
element: document.getElementById(elmtName),
handler: function(direction) {
if (direction == 'down'){
console.log("got it final down")
$("#person").stop().animate({opacity:0});
$("#bench").stop().animate({opacity:0});
$("#stars2").stop().animate({opacity:0});
$("#stars").stop().animate({opacity:0});
$("#rain").stop().animate({opacity:0});
$("#water_pic").stop().animate({opacity:0});
$("#tulip").stop().animate({opacity:0});
$("#tree").stop().animate({opacity:0});
} else {
console.log("got it final up")
$("#person").stop().animate({opacity:1});
$("#bench").stop().animate({opacity:1});
$("#stars2").stop().animate({opacity:1});
$("#stars").stop().animate({opacity:1});
$("#rain").stop().animate({opacity:1});
$("#water_pic").stop().animate({opacity:1});
$("#tulip").stop().animate({opacity:1});
$("#tree").stop().animate({opacity:1});
}
},
//start 75% from the top of the div
offset: offset
});
};
reverse_section_scroll('conclusion', '10%');
</script>
<!-- Bootstrap core JavaScript <script src="vendor/jquery/jquery.min.js"></script> -->
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="vendor/scrollreveal/scrollreveal.min.js"></script>
<script src="vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
<!-- Custom scripts for this template -->
<script src="js/creative.min.js"></script>
<!-- Enable bootstrap tooltips -->
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
</body>
</html>