-
Notifications
You must be signed in to change notification settings - Fork 71
/
index.html
143 lines (117 loc) · 4.81 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
<!DOCTYPE html>
<meta charset="utf-8">
<title>Ufo Spottings</title>
<script data-main="main" src="js/jquery-2.1.0.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Ufo Spottings</a>
</div>
</div>
<!-- /.container-fluid -->
</nav>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-7">
<div class="row">
<div id="container"></div>
</div>
<div class="row">
<div class="col-md-2"></div>
<div id="yearFilter">
<div id="brush" style="overflow: visible;">
</div>
</div>
</div>
</div>
<div class="col-md-1"></div>
<div class="col-md-2">
<div class="row">
<div class="well well-lg">
<h4>Dots</h4>
<div class="checkbox">
<label>
<input type="checkbox" value="" checked id="chkUfoSpotting" onclick="chkFilterUfo()">Ufo Spottings <div id="circleUfo" class="circleUfo"></div>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="" id="chkBigfootSpotting" onclick="chkFilterBigfoot()">Bigfoot Spottings <div id="circleBigfoot" class="circleBigfoot"></div>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="" id="chkMeteorites" onclick="chkFilterMeteorites()">Meteorites <div id="circleMeteorites" class="circleMeteorites"></div>
</label>
</div>
<h4>Map</h4>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios1" value="1" checked>Neutral
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios2" value="2">Population Density
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios3" value="3">Alcohol Consumption
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios4" value="4">IQ
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios5" value="5">Human Development Index
</label>
</div>
</div>
</div>
<div class="row">
<div class="well well-lg">
<h4 id="extraDataHeader">Extra Info</h4>
<p id="extraData"></p>
</div>
</div>
<div class="col-md-1">
</div>
</div>
<script src="libraries/d3.min.js"></script>
<script src="libraries/topojson.v1.min.js"></script>
<script src="http://d3js.org/queue.v1.min.js"></script>
<script src="worldmap.js"></script>
<script type=text/javascript>
function chkFilterUfo() {
worldmap.checkboxFilteringUfo(document.getElementById('chkUfoSpotting').checked);
}
function chkFilterBigfoot() {
worldmap.checkboxFilteringBigfood(document.getElementById('chkBigfootSpotting').checked);
}
function chkFilterMeteorites() {
worldmap.checkboxFilteringMeteorites(document.getElementById('chkMeteorites').checked);
}
</script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</body>
</html>