-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
178 lines (167 loc) · 6.85 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<title>AirPoll</title>
<!--bootstrap-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<!--custom styling-->
<style type="text/css">
#map {
height: 100%;
width: 100%;
position: absolute;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
color: #ffffff;
}
.panel {
position: absolute;
background-color: rgba(255, 255, 255, 0.5);
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 3px;
box-shadow: 0 2px 6px rgba(0,0,0,.3);
text-align: center;
}
.darkPanel {
background-color: #3333337f;
}
#viewPanel {
top: 60px;
left: 10px;
}
#filterPanel {
width: 400px;
right: 60px;
bottom: 25px;
text-align: left;
}
#dataPointPanel {
bottom: 25px;
left: 10px;
padding-top: 5px;
padding-left: 15px;
}
#viewTypeLabel {
padding-left: .25rem;
}
#treatments {
margin-bottom: 15px;
}
#selectTreatments {
display: inline-flex;
margin-right: 20px;
}
.form-group {
margin-bottom: 0!important;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="map"></div>
<div id="viewPanel" class="px-2 py-2 panel darkPanel">
<div class="row justify-content-start">
<div class="col-auto">
<label id="viewTypeLabel"><b>View Type</b></label>
</div>
</div>
<!--<div class="row justify-content-start">-->
<!--<div class="col-auto">-->
<!--<div class="dropdown mx-1 my-2">-->
<!--<button class="btn btn-success dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">-->
<!--Dropdown button-->
<!--</button>-->
<!--<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">-->
<!--<button id="viewTypeGrid" class="dropdown-item">Grid</button>-->
<!--<button id="viewTypeCircles" class="dropdown-item">Circles</button>-->
<!--<button id="viewTypeHeatmap" class="dropdown-item">Density Heatmap</button>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<div class="row justify-content-start">
<div class="col-auto">
<button id="showGrid" type="button" class="btn btn-sm btn-outline-primary m-1">Show Data Grid</button>
</div>
</div>
<div class="row justify-content-start">
<div class="col-auto">
<button id="showPoints" type="button" class="btn btn-sm btn-primary m-1">Hide Data Points</button>
</div>
</div>
<div class="row justify-content-start">
<div class="col-auto">
<button id="showCircles" type="button" class="btn btn-sm btn-outline-primary m-1">Show Data Circles</button>
</div>
</div>
<div class="row justify-content-start">
<div class="col-auto">
<button id="showHeatmap" type="button" class="btn btn-sm btn-outline-primary m-1">Show Density Heatmap</button>
</div>
</div>
<div class="row justify-content-start">
<div class="col-auto">
<button id="toggleTheme" type="button" class="btn btn-sm btn-outline-primary m-1">Switch to Light Theme</button>
</div>
</div>
</div>
<div id="filterPanel" class="px-2 py-2 panel darkPanel">
<div class="row justify-content-start">
<div class="col-auto">
<label id="FilterLabel"><b>Filter Data</b></label>
</div>
</div>
<div id="treatments">
<div id="selectTreatments">Select Treatments:</div>
</div>
<div id="dateFilterSlider" class="range"></div>
<div id="dateRangeOutput">Select Date Range above</div>
<br>
<div id="timeFilterSlider" class="range"></div>
<div id="timeRangeOutput">Select Time Range above</div>
</div>
<div id="dataPointPanel" class="panel darkPanel">
<form>
<label><b>Data Point</b></label>
<div class="form-group row">
<label for="date" class="col-2 col-form-label">Date</label>
<div class="col-auto">
<input class="form-control form-control-sm" id="date">
</div>
</div>
<div class="form-group row">
<label for="time" class="col-2 col-form-label">Time</label>
<div class="col-auto">
<input class="form-control form-control-sm" id="time">
</div>
</div>
<div class="form-group row">
<label for="value" class="col-2 col-form-label">Value</label>
<div class="col-auto">
<input class="form-control form-control-sm" id="value">
</div>
</div>
<div class="form-group row">
<label for="user" class="col-2 col-form-label">User</label>
<div class="col-auto">
<input class="form-control form-control-sm" id="user">
</div>
</div>
</form>
</div>
</div>
<!--noUiSlider - double range slider-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/12.1.0/nouislider.min.js"></script>
<!--bootstrap-->
<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>
<!--google maps-->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCTY-5_e4vfG_hURD10OVQ-wOkkiBQpZlI&libraries=visualization&callback=initApp"></script>
</body>
</html>