-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
100 lines (89 loc) · 1.86 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
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/topojson.v2.min.js"></script>
<script src="http://d3js.org/queue.v1.min.js"></script>
<script src="https://d3js.org/d3-drag.v1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<style type="text/css">
.water {
fill: #EEEEEE;
}
.land {
fill: #A98B6F;
stroke: #FFF;
stroke-width: 0.7px;
}
.land:hover {
fill:#33CC33;
stroke-width: 1px;
}
svg {
/*margin-left: 150px;*/
}
.focused {
fill: #33CC33;
}
.conflict_loc {
fill: #3388FF;
stroke: #FFF;
stroke-width: 0.7px;
}
.conflict_loc:hover {
fill: #5588AA;
}
select {
position: absolute;
top: 20px;
left: 580px;
border: solid #ccc 1px;
padding: 3px;
box-shadow: inset 1px 1px 2px #ddd8dc;
}
.countryTooltip {
position: absolute;
display: none;
pointer-events: none;
background: #fff;
padding: 5px;
text-align: left;
border: solid #ccc 1px;
color: #666;
font-size: 14px;
font-family: sans-serif;
}
.conflictTooltip strong.strong-conflict {
font-size: 18px;
}
.conflictTooltip {
position: absolute;
display: none;
pointer-events: none;
background: #fff;
padding: 5px;
text-align: left;
border: solid #ccc 1px;
color: #666;
font-size: 14px;
font-family: sans-serif;
}
.conflictTooltip ul {
margin: 2px;
}
.conflictTooltip p {
margin: 4px;
}
</style>
</head>
<body>
<select name="countries"></select>
<button id="getdata">Get the data!</button>
<button id="resetrot">Reset rotation</button>
<fieldset>
<input name="projection" type="radio" value="ortho" checked /> Globe
<input name="projection" type="radio" value="flat" /> Flat
</fieldset>
<script src="js/globe.js"></script>
</body>
</html>