-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
178 lines (158 loc) · 9.1 KB
/
Copy pathindex.html
File metadata and controls
178 lines (158 loc) · 9.1 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>EcoFootprint</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<link href="./static/style.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
crossorigin="anonymous">
<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://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="./static/js/moment-with-locales.min.js"></script>
<script src="static/js/d3-simple-slider.min.js" type="text/javascript"></script>
<script src="https://d3js.org/topojson.v1.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-legend/2.25.6/d3-legend.min.js"></script>
<script src="https://d3js.org/d3-scale.v2.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse d-flex w-100 justify-content-around" id="navbarText">
<div class="m-auto navbar-nav">
<a class="navbar-brand " href="#" data-toggle="tooltip" data-placement="bottom" title="Global biocapacity / (Footprint per person * global population) * 365">Earth
Overshoot Day</a>
<form class="form-inline" style="margin-right:20px;">
<div class="form-group row">
<!-- <label class="col-form-label col-sm-2 text-info" for="country">Country </label> -->
<div class="col-auto">
<select class="form-control" name="country" id="country-select">
</select>
</div>
</div>
</form>
<button id="chart-btn" class="btn btn-warning" style="margin-right:20px;" data-toggle="tooltip"
data-placement="bottom" title="Remove country from linechart">
<i class="fas fa-minus symbol"></i>
<i class="fas fa-chart-line"></i>
</button>
<div class="btn-group btn-group-toggle toggle-mode" data-toggle="buttons">
<label class="btn btn-info active" data-toggle="tooltip" data-placement="bottom" title="National footprint divided by population">
<input type="radio" name="toggle-mode" id="footprint-mode" autocomplete="off" value="footprint"
checked>
Footprint per person
</label>
<label class="btn btn-info" data-toggle="tooltip" data-placement="top" title="Difference between biocapacity and ecological footprint per person in pourcentage of deficit or surplus.">
<input type="radio" name="toggle-mode" id="deficit-mode" autocomplete="off" value="ratio">
Deficit & Reserve
</label>
</div>
</div>
</div>
</nav>
</header>
<main>
<center>
<svg id="clock" width="30%" height="30%"></svg>
<svg id="worldmap" width="69%"></svg>
<!-- <div id="slider-time" width="100%"></div> -->
<div class="d-flex flex-row">
<svg id="linechart" width="100%">
<g id="slider-time" width=100%></g>
</svg>
</div>
<div class="row">
<div class="col-auto ml-auto" style="margin-right:50px">
<div class="form-group row ">
<button class="btn btn-primary col-auto" id="clear-btn">Clear lines</button>
<label for="linechart-mode" class="col-auto col-form-label">Display data for </label>
<div class="col-auto">
<select class="form-control" name="linechart-mode" id="linechart-select" autocomplete="off">
<option value="footprint">Footprint per person</option>
<option value="overshoot_day">Overshoot Day</option>
<option value="ratio">Deficit/Reserve</option>
</select>
</div>
</div>
</div>
</div>
</center>
</main>
<footer class="bg-secondary mt-5">
<div class="container py-5">
<div class="row d-flex">
<div class="col-sm text-light p-2 flex-grow-1">
<center>
<h2> About</h2>
</center>
<ul class="list-group list-group-flush ">
<li class="list-group-item bg-secondary">
<a class="text-light" href="https://data.world/footprint/nfa-2018-edition">Data source</a>
</li>
<li class="list-group-item bg-secondary">
<a class="text-light" href="http://data.footprintnetwork.org/#/abouttheData">Glossary</a>
</li>
<li class="list-group-item bg-secondary">
<a class="text-light" href="https://en.wikipedia.org/wiki/Ecological_footprint">Ecological
footprint</a>
</li>
<li class="list-group-item bg-secondary">
<a class="text-light" href="https://en.wikipedia.org/wiki/Global_hectare">Global hectare</a>
</li>
<li class="list-group-item bg-secondary">
<a class="text-light" href="https://en.wikipedia.org/wiki/Earth_Overshoot_Day">Overshoot
day</a>
</li>
</ul>
</div>
<div class="col-sm p-2 flex-grow-1 align-self-center">
<div class="row">
<a class=" m-auto" href="https://github.com/dataviz9/dataviz9.github.io">
<img src="static/github-mark-light.png" id="github-icon"></img>
</a>
</div>
<div class="row d-flex justify-content-center text-light">
<span class="p-2">Eric Cumunel</span>
<span class="p-2">Louis Duchemin</span>
<span class="p-2">Hermes Paraqindes</span>
</div>
<div class="row justify-content-center">
<a href="https://lyondataviz.github.io/teaching/lyon1-m2/2018/" class="text-light" id="">@Lyon
1 Dataviz 2018-2019</a>
</div>
</div>
</div>
<hr class="alert-primary">
<div class="row text-small d-flex justify-content-center text-light">
<div class="col-auto ">Built with <a href="https://d3js.org/" class="text-info">D3.js v4</a> and
<a href="https://getbootstrap.com/" class="text-info">Bootstrap v4.2</a> </div>
</div>
</div>
</footer>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip({
trigger : 'hover'
})
})
</script>
<script src="./static/js/glow.js" type="text/javascript"></script>
<script src="static/js/d3-tip.js" type="text/javascript"></script>
<script src="static/js/clock.js" type="text/javascript"></script>
<script src="static/js/slider.js" type="text/javascript"></script>
<script src="static/js/worldmap.js" type="text/javascript"></script>
<script src="static/js/linechart.js" type="text/javascript"></script>
<script src="static/js/index.js" type="text/javascript"></script>
</body>
</html>