-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
310 lines (269 loc) · 12 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="res/ee.ico">
<title> Eagle Eye </title>
<!-- Material Design fonts -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap Material Design -->
<link href="dist/css/bootstrap-material-design.css" rel="stylesheet">
<link href="dist/css/ripples.min.css" rel="stylesheet">
<link href="css/dashboard.css" rel="stylesheet">
</head>
<body ng-app="main">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.2/Chart.bundle.min.js"> </script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"> </script>
<script src="res/angular-chart.min.js"> </script>
<!-- Firebase -->
<script src="https://cdn.firebase.com/js/client/2.2.4/firebase.js"></script>
<!-- AngularFire -->
<script src="https://cdn.firebase.com/libs/angularfire/1.2.0/angularfire.min.js"></script>
<script src="js/app.js"> </script>
<script src="js/controllers.js"> </script>
<div class="bs-component">
<div class="navbar navbar-default" style="margin:0">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<img src="res/ee.png" style="height: 50px;float: left;padding-right: 10px;padding-top: 5px;padding-bottom: 5px;"> </img>
<a class="navbar-brand" href="javascript:void(0)"> EagleEye</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="javascript:void(0)">Dashboard</a></li>
<li><a href="filter.html">Filter</a></li>
<li><a href="heatMap.html">Heat Map</a></li>
</ul>
<form class="navbar-form navbar-left">
<div class="form-group">
<input type="text" class="form-control col-md-8" placeholder="Search">
</div>
</form>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="bootstrap-elements.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown"> Hi Austin!
<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="javascript:void(0)">My Profile</a></li>
<!-- <li><a href="javascript:void(0)">Create New Dashboard</a></li> -->
<li class="divider"></li>
<li><a href="javascript:void(0)">Sign Out</a></li>
</ul>
</li>
<li><a href="javascript:void(0)">Contact</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container-fluid" ng-controller="main.ctrl">
<div class="row">
<div class="col-sm-2 col-md-2 sidebar">
<ul class="nav nav-sidebar">
<li ng-class="{active: currentPanel == 0}">
<a href='#' ng-click="changePanel(0)">
Overview
<span class="sr-only" ng-if="currentPanel == 0">(current)</span>
</a>
</li>
<li ng-class="{active: currentPanel == 1}">
<a href="#" ng-click="changePanel(1)">
Gender Analysis
<span class="sr-only" ng-if="currentPanel == 1">(current)</span>
</a>
</li>
<li ng-class="{active: currentPanel == 2}">
<a href="#" ng-click="changePanel(2)">
Age Distribution
<span class="sr-only" ng-if="currentPanel == 2">(current)</span>
</a>
</li>
<li ng-class="{active: currentPanel == 3}">
<a href="#" ng-click="changePanel(3)">
Weekly Summary
<span class="sr-only" ng-if="currentPanel == 3">(current)</span>
</a>
</li>
<li ng-class="{active: currentPanel == 4}">
<a href="#" ng-click="changePanel(4)">
Data By Minute
<span class="sr-only" ng-if="currentPanel == 4">(current)</span>
</a>
</li>
</ul>
</div>
<div class="col-sm-10 col-sm-offset-3 col-md-10 col-md-offset-2 main" style="margin-left:0" ng-show="currentPanel == 0">
<h1 class="page-header">Dashboard</h1>
<div class="col-sm-6 col-sm-offset-3" style="margin-left:0">
<canvas id="doughnut" class="chart chart-doughnut"
chart-data="mfData" chart-labels="mfLabels" ng-click="changePanel(1)">
</canvas>
<div style="height:65px;">
</div>
<canvas id="base" class="chart chart-bar"
chart-data="data" chart-labels="labels"
ng-click="changePanel(4)">
</canvas>
<div style="height:75px;">
</div>
</div>
<div class="col-sm-6 col-sm-offset-9" style="margin-left:0">
<canvas id="bar" class="chart chart-bar"
chart-data="ageData" chart-labels="ageLabels" chart-series="series"
ng-click="changePanel(2)">
</canvas>
<div style="height:65px;">
</div>
<canvas id="base" class="chart chart-line"
chart-data="dayData" chart-labels="dayLabels" ng-click="changePanel(3)">
</canvas>
<div style="height:75px;">
</div>
</div>
</div>
<div class="col-sm-10 col-sm-offset-3 col-md-10 col-md-offset-2 main" style="margin-left:0" ng-if="currentPanel == 1">
<h1 class="page-header"> Gender Analysis </h1>
<canvas id="doughnut" class="chart chart-doughnut"
chart-data="mfData" chart-labels="mfLabels">
</canvas>
</div>
<div class="col-sm-10 col-sm-offset-3 col-md-10 col-md-offset-2 main" style="margin-left:0" ng-if="currentPanel == 2">
<h1 class="page-header"> Age Distribution </h1>
<canvas id="bar" class="chart chart-bar"
chart-data="ageData" chart-labels="ageLabels" chart-series="series">
</canvas>
</div>
<div class="col-sm-10 col-sm-offset-3 col-md-10 col-md-offset-2 main" style="margin-left:0" ng-if="currentPanel == 3">
<h1 class="page-header"> Weekly Summary </h1>
<canvas id="base" class="chart chart-line"
chart-data="dayData" chart-labels="dayLabels">
</canvas>
</div>
<div class="col-sm-10 col-sm-offset-3 col-md-10 col-md-offset-2 main" style="margin-left:0" ng-if="currentPanel == 4">
<h1 class="page-header"> Data By Minute </h1>
<canvas id="base" class="chart chart-bar"
chart-data="data" chart-labels="labels"
ng-click="changePanel(4)">
</canvas>
</div>
<div style="margin-top:100px; margin-right: 25px; margin-left: 25px">
<div class="row">
<div class="col-xs-6 col-sm-3 placeholder">
</div>
<div class="col-xs-6 col-sm-3 placeholder">
<img src="http://www.gracedupage.org/assets/gracechurch/user/images/icons/Flat%20Circle%20Color%20Shadow/people.png" width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
<h4 style="text-align:center"> Your Customers</h4>
<span class="text-muted" style="padding-left:50px"> Congratulations! </span>
<h1 style="text-align:center"> {{numOfPeople}}</h1>
<span class="text-muted">customers have entered your store in the past day!</span>
</div>
<div class="col-xs-6 col-sm-3 placeholder">
<img src="https://www.sas.com/content/dam/SAS/en_us/image/sas-com/icons/navmenu/data-visualization-icon.png/_jcr_content/renditions/original" width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
<h4 style="text-align:center">See Trends in Your Data!</h4>
<span class="text-muted" style="padding-left:40px"> Did you realize that</span>
<h1 style="text-align:center"> {{mfData[0] / (mfData[0] + mfData[1]) * 100 | number:2}} %</h1>
<span class="text-muted"> of your customers are male?</span>
</div>
<div class="col-xs-6 col-sm-3 placeholder">
</div>
</div>
<h2 class="sub-header"> Raw Data </h2>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th> Age </th>
<th> Bags </th>
<th> Gender </th>
<th> Height </th>
<th> Time Entered </th>
<th> Time Left </th>
</tr>
</thead>
<tbody ng-repeat="item in rawData">
<tr>
<td>{{item.age}}</td>
<td>{{item.bags}}</td>
<td>{{item.gender}}</td>
<td>{{item.height}}</td>
<td>{{item.timeE}}</td>
<td>{{item.timeL}}</td>
</tr>
</tbody>
</table>
</div> <!-- This one -->
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script>
(function () {
var $button = $("<div id='source-button' class='btn btn-primary btn-xs'>< ></div>").click(function () {
var index = $('.bs-component').index($(this).parent());
$.get(window.location.href, function (data) {
var html = $(data).find('.bs-component').eq(index).html();
html = cleanSource(html);
$("#source-modal pre").text(html);
$("#source-modal").modal();
})
});
$('.bs-component [data-toggle="popover"]').popover();
$('.bs-component [data-toggle="tooltip"]').tooltip();
function cleanSource(html) {
var lines = html.split(/\n/);
lines.shift();
lines.splice(-1, 1);
var indentSize = lines[0].length - lines[0].trim().length,
re = new RegExp(" {" + indentSize + "}");
lines = lines.map(function (line) {
if (line.match(re)) {
line = line.substring(indentSize);
}
return line;
});
lines = lines.join("\n");
return lines;
}
$(".icons-material .icon").each(function () {
$(this).after("<br><br><code>" + $(this).attr("class").replace("icon ", "") + "</code>");
});
})();
</script>
<script src="dist/js/ripples.min.js"></script>
<script src="dist/js/material.min.js"></script>
<script src="https://fezvrasta.github.io/snackbarjs/dist/snackbar.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/6.2.0/jquery.nouislider.min.js"></script>
<script>
$(function () {
$.material.init();
$(".shor").noUiSlider({
start: 40,
connect: "lower",
range: {
min: 0,
max: 100
}
});
$(".svert").noUiSlider({
orientation: "vertical",
start: 40,
connect: "lower",
range: {
min: 0,
max: 100
}
});
});
</script>
</body>
</html>