-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·80 lines (62 loc) · 1.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
body {
font-family:helvetica;
}
h1, h2, p {
margin-left: 0.5cm;
}
h2 {
border-radius: 5px;
padding: 5px 5px 5px;
background: white;
}
button {
margin: 0.5cm;
}
.comuni {
fill: #e5e5e5;
stroke: #fff;
stroke-width:0.1px;
}
.regioni {
fill: none;
stroke: #000;
stroke-width: 0.4px;
}
#info {
position:absolute;
right: 10px;
width: 20%;
}
.legend {
font-size: 12px;
}
.legend text {
}
.comuni:hover {
cursor:crosshair;
}
</style>
</head>
<body>
<div id="info">
<h1>comuni d'Italia centrale</h1>
<p>popolazione residente 2016 (valori assoluti)</p>
<p>fai clic o tocca un poligono per mostrare il nome del comune</p>
<div id="select">
<button id="toggle" data="showing">commutare regioni</button>
</div>
<h2 id="name"></h2>
</div>
<div id="map"></div>
<script src="http://d3js.org/d3.v4.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<script src="italia.js"></script>
</body>
</html>