-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
159 lines (143 loc) · 7.07 KB
/
index.html
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
<!-- SPTM - Didier Dupertuis & Nicolas Vallotton - Avril 2019 -->
<!DOCTYPE html>
<html lang="fr">
<meta charset="UTF-8">
<head>
<!-- LIBRARIES -->
<title data-i18n="page-title"></title>
<meta charset="utf-8">
<script src="3_maps/lib/jquery-3.2.1.js" charset="utf-8"></script>
<script src="3_maps/lib/bootstrap-3.3.7-dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link rel="stylesheet" href="3_maps/lib/bootstrap-3.3.7-dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="3_maps/lib/leaflet/leaflet.css">
<script src="3_maps/lib/leaflet/leaflet-src.js"></script>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<script src="3_maps/lib/d3/d3.v5.min.js" charset="utf-8"></script>
<script src="3_maps/lib/L.D3SvgOverlay.d3v5.js"></script>
<!-- <script src="lib/leaflet-heat.js"></script> -->
<link rel="stylesheet" href="3_maps/style.css">
<!-- LOADING SCRIPT -->
<script src="3_maps/lib/babel-polyfill.min.js" charset="utf-8"></script>
<!--script src="3_maps/lib/promise-polyfill.min.js" charset="utf-8"></script>
<script src="3_maps/lib/fetch.umd.js" charset="utf-8"></script-->
</head>
<body>
<!-- HEADER - NAVBAR & LINKS -->
<header>
<nav class="navbar navbar-inverse navbar-fixed-top"> <!--inverse for styling - fixed top so header is fixed on top whatever scrolling-->
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="./index.html" data-i18n="navbar-home"></a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a target="_blank" href="https://github.com/dddpt/swiss-population-time-machine" data-i18n="navbar-github-link"></a></li>
<li><a target="_blank" href="mailto:didier.dupertuis@protonmail.com" data-i18n="navbar-contact"></a></li>
<li class="dropdown show">
<a class="dropdown-toggle" href="#" role="button" id="lang-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-globe-africa"></i><span class="lang-current"> FR </span><i class="fas fa-sort-down"></i>
</a>
<div id="lang-menu" class="dropdown-menu" aria-labelledby="lang-dropdown"></div>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="container">
<div class="col-lg-12 col-md-12 col-sm-12 center">
<h1 data-i18n="body-title"></h1>
</div>
</div>
<div id="map-graph" class="container-fluid">
<!-- MAIN BODY - MAP SIDE -->
<div class="col-lg-8 col-md-8 col-sm-8">
<div id="map"></div>
</div>
<!-- MAIN BODY - SLIDER & GRAPH SIDE -->
<div class="col-lg-4 col-md-4 col-sm-4">
<!-- TABLE FOR SLIDER AND ICONS -->
<table>
<tr width="100%">
<div width="100%">
<h4><span data-i18n="current-year-title"></span> <span id="slider1_val"></span></h4>
</div>
</tr>
<tr>
<span id="slideLabel" data-i18n="choose-year"></span></br></br>
<input id="slider1" class="slidBuffer" type="range" min=1200 max=1990 step=1 value=1>
<div id="slider1_scale" width="100%" style="text-align:center;" data-i18n="years-range"></div>
</tr>
<tr>
<button type="button" class="btn btn-sm map-animation-btn" id="map-animation-minus-50y">|<</button>
<button type="button" class="btn btn-sm map-animation-btn" id="map-animation-play">play</button>
<button type="button" class="btn btn-sm map-animation-btn" id="map-animation-pause">pause</button>
<button type="button" class="btn btn-sm map-animation-btn" id="map-animation-plus-50y">>|</button>
</tr>
<tr width="100%">
<div id="legend-original-pop-data">
<svg style='position:relative;top:5px;' width="20px" height="20px"><circle cx="10" cy="10" r="10" fill="blue" opacity="0.6"></circle></svg>
<span data-i18n="label-original-pop-data"></span>
<button type="button" class="btn btn-sm" data-i18n="hide-communes-button" id="map-toggle-with-data"></button>
</div>
<div id="legend-extrapolated-pop-data" style="margin-bottom: 10px;">
<svg style='position:relative;top:5px;' width="20px" height="20px"><circle cx="10" cy="10" r="10" fill="darkgreen" opacity="0.6"></circle></svg>
<span data-i18n="label-extrapolated-pop-data"></span>
<button type="button" class="btn btn-sm" data-i18n="hide-communes-button" id="map-toggle-without-data"></button>
</div>
</tr>
</table>
</div>
<!-- GRAPH SECTION -->
<div id="graphPart" class="col-lg-4 col-md-4 col-sm-4">
<div width="100%">
<h4 data-i18n="graph-title"></h4>
</div>
<div id="graphLegend">
</div>
<!-- THE GRAPH GOES THERE -->
<div id="graph">
<span id="tuto" data-i18n="graph-click-hint"></span>
</div>
<div id="graphLegend2"></div>
</div>
</div>
<div class="container">
<div class="col-lg-12 col-md-12 col-sm-12">
<h3 data-i18n="welcome-title"></h3>
<p data-i18n="welcome-p1"></p>
<p data-i18n="welcome-p2"></p>
<p data-i18n="welcome-p3"></p>
<p data-i18n="welcome-p4"></p>
<p data-i18n="welcome-p5"></p>
<h3 data-i18n="status-title"></h3>
<p data-i18n="status-p1"></p>
<p data-i18n="status-p2"></p>
<ol>
<li data-i18n="status-li1"></li>
<li data-i18n="status-li2"></li>
<li data-i18n="status-li3"></li>
<li data-i18n="status-li4"></li>
</ol>
<p data-i18n="status-p3"></p>
<h3 data-i18n="technical-title"></h3>
<p data-i18n="technical-p1"></p>
<img src="2_pop_extrapolation/obs_distrib.png">
<p data-i18n="technical-p2"></p>
<img src="2_pop_extrapolation/first_obs.png">
<p data-i18n="technical-p3"></p>
<img src="2_pop_extrapolation/avg_ygr.png">
<p data-i18n="technical-p4"></p>
<p data-i18n="technical-p5"></p>
<h3 data-i18n="help-title"></h3>
<p data-i18n="help-p1"></p>
<p data-i18n="help-p2"></p>
<p data-i18n="help-p3"></p>
</div>
</div>
<!-- LAUNCHING MAIN SCRIPT -->
<script>
</script>
<script src="3_maps/assets/js/bundle.js" charset="utf-8"></script>
</body>
</html>