-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinal.html
More file actions
185 lines (178 loc) · 8.7 KB
/
final.html
File metadata and controls
185 lines (178 loc) · 8.7 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
<!-- Mendel Engelaer, 10996222, Final project -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="Scripts/css/final.css">
<script src="https://d3js.org/d3.v5.min.js" ></script>
<script src="https://unpkg.com/d3-simple-slider/build/d3-simple-slider.js"></script>
<script src="https://d3js.org/topojson.v1.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="d3/d3-tip.js"></script>
<script type="text/javascript" src="Scripts/JavaScripts/final.js" charset="utf-8"></script>
<script type="text/javascript" src="Scripts/JavaScripts/barchart.js" charset="utf-8"></script>
<script type="text/javascript" src="Scripts/JavaScripts/map.js" charset="utf-8"></script>
<script type="text/javascript" src="Scripts/JavaScripts/helpers.js" charset="utf-8"></script>
<script type="text/javascript" src="Scripts/JavaScripts/linechart.js" charset="utf-8"></script>
<script>
// source: https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_eff_animate_smoothscroll
$(document).ready(function(){
// Add smooth scrolling to all links
$("a").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({
scrollTop: $(hash).offset().top - 65
}, 800, function(){
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
} // End if
});
});
</script>
</head>
<body data-spy="scroll" data-target=".navbar" data-offset="80">
<!-- begin navbar -->
<nav id="navbar" class="navbar sticky-top navbar-expand-md navbar-light bg-light" >
<a class="navbar-brand" href="#row_0">Forest Growth</a>
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="#row_0">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#row_1">Story</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#row_2_0_1">Data</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#row_3">Contact</a>
</li>
</ul>
</nav>
<!-- end navbar -->
<!-- begin story page -->
<div class="container-fluid">
<div class="row" id="row_0" style="height: 100vh;">
<section id="section07" class="demo">
<h2 class="title">Forest Growth</h2>
<a href="#row_1"><span></span><span></span><span></span></a>
</section>
</div>
<div class="row justify-content-around m-4" id="row_1" style="height: 100%;">
<div class="col-md-5" id="infoColumn" style="height: 100%;">
<div class="row mt-4">
<h3>Problem</h3>
From 2001 to 2015 3 million square kilometers of forest was lost.
The loss of forest has an impact on the habitat of millions of species
of which many cannot survive without the forest. Furthermore trees are
a vital part of the ecosystem. They prevent desertification by moistering
their soil and give shade that prevents extreme temperatures on the ground.
Trees also play a crucial role in preventing global warming by absorbing
greenhouse gases.
<a href="https://www.nationalgeographic.com/environment/global-warming/deforestation/">Source: National Geographic</a>
</div>
<div class="row mt-5">
<h3>Causes</h3>
Deforistation has several causes of which some are caused by nature
itself, but mostly humans are responsible for the loss of forest. 27%
of the total loss of trees is permanent and was caused by land that
was converted to agricultural ground. This ground is used to grow soy,
timber, beef and palm oil.
The causes of deforestation are different per country and continent.
In South America tree loss was mostly commodity-driven. Here they cut
trees to create products like soy and palm oil. In Africa the main
reason for deforestation is subsistence farming. This means people are
cutting down trees to create agricultural land to feed their own family.
A global cause of deforestation is the cutting of trees to sell them as timber.
<a href="https://www.sciencenews.org/article/new-map-reveals-causes-forest-loss-worldwide">Source: Sciencenews</a>
</div>
<div class="row mt-5">
<h3>Solution</h3>
It is vital for the survival of all kind of species including ourselves
that we stop deforestation. One solution is to motivate large companies
to clean up their supply chain and improve their policies.
These policies will have to be governed by governments that
themselves have to set better climate goals.
</div>
</div>
<div class="col-md-5" id="infoColumn" style="height: 100%;">
<div class="row">
<img src="doc/images/10094847976_55ba5907cd_o.jpg" class="images">
</div>
<div class="row mt-2">
<img src="doc/images/An_example_of_slash_and_burn_agriculture_practice_Thailand.jpg" class="images">
</div>
</div>
</div>
<!-- end story page -->
<hr>
<!-- begin data page -->
<div class="row" id="row_2" style="height: 100%;">
<div class="col-md-12">
<!-- begin function bar -->
<div class="row m-2" id="row_2_0_1" style="height: 4%;">
<div class="col-md-6" id="sliderBar">
</div>
<div class="col-md-4" id="searchCountry">
<span class="navbar-text">Search Country:</span>
<form autocomplete="off" class="navbar-text">
<div class="autocomplete" style="width:200px;">
<input id="myInput" type="text" name="myCountry" placeholder="Country">
</div>
</form>
</div>
<div class="col-md-2" id="compareCountry"></div>
</div>
<!-- end function bar -->
<div class="row" id="row_2.1" style="height: 50%;">
<!-- worldmap area -->
<div class="col-md-7" id="area1"></div>
<!-- linechart area -->
<div class="col-md-5" id="area2"></div>
</div>
<div class="row" id="row_2.2" style="height: 40%;">
<!-- barchart area -->
<div class="col-md-12" id="area3"></div>
<a class="btn btn-outline-secondary" href="https://data.worldbank.org/indicator/AG.LND.FRST.ZS" role="button">Data Source: World Bank</a>
</div>
</div>
</div>
<!-- end data page -->
<hr>
<!-- begin contact page -->
<div class="row justify-content-around m-5" id="row_3" style="height: 80vh;">
<div class="col-md-5" id="contactForm">
<p>Hey, my name is Mendel and I created this website for the
minor Programming at the University of Amsterdam. Interested in more of my work
or do you have a question? Send me your email adress and name and I will get in touch
with you.
</p>
</div>
<div class="col-md-5" id="contactForm">
<p class="infoColumn">Contact Me:</p>
<form action="https://formspree.io/mendelengelaer@hotmail.com" method="POST">
<input type="text" name="name" placeholder="Name">
<input type="email" name="_replyto" placeholder="Email Address">
<input type="submit" value="Send">
</form>
</div>
</div>
<!-- end contact page -->
<footer><center><i>This project is licensed under the terms of the MIT license. Mendel Engelaer, 2019</i></center></footer>
</body>
</html>