-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
359 lines (314 loc) · 13.9 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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>doblePRIME - Dashboard</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="bower_components/bootstrap-treeview/dist/bootstrap-treeview.min.css" rel="stylesheet" type="text/css">
<link href="bower_components/sb-admin-2/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="bower_components/c3/c3.css" rel="stylesheet">
<link href="bower_components/datatables/media/css/dataTables.bootstrap.css" rel="stylesheet" type="text/css"/>
<link href="bower_components/nvd3/build/nv.d3.css" rel="stylesheet">
<link href="Content/dp.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<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="#"><img src="img/dp_doble_sm.png" alt="" /></a>
</div>
<ul class="nav navbar-top-links navbar-right">
<li>
<div class="dp-notify">
<span class="fa fa-2x fa-exclamation-circle dp-notify"></span>
<div class="dp-notify dp-notify-text">GENERAL CHART SANDBOX</div>
<!--<span class="glyphicon glyphicon-menu-right dp-notify"></span>-->
<a class="dp-header-caret" onclick="ShowNotification();" ><span class="caret"></span></a>
</div>
</li>
<li><a href="#"><span class="badge badge-red">4</span></a></li>
<li>
<div id="clock_date"></div>
<div id="clock_time"></div>
</li>
<li class="dropdown dp-user">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-lg fa-user"></i>Sam McGrail <b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="#"><i class="fa fa-fw fa-user"></i> Profile</a>
</li>
<li>
<a href="#"><i class="fa fa-fw fa-lock"></i> Change password</a>
</li>
</ul>
</li>
<li><a href="#"><i class="fa fa-2x fa-fw fa-gear"></i></a></li>
<li><a href="#" class="poweroff"><i class="fa fa-2x fa-fw fa-power-off"></i></a></li>
</ul>
<ul class="breadcrumb">
<li><a href="#">Chart Sandbox</a></li>
<li><a href="#"> TX123</a></li>
<li class="active">Bushing</li>
</ul>
<div class="navbar-default sidebar">
<div class="sidebar-nav navbar-collapse">
<div class="dp-branding"> CHART SANDBOX</div>
<form class="navbar-form" role="search">
<div class="input-group">
<input type="text" class="form-control dp-tv-search" placeholder="Search" name="q">
<div class="btn-group">
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a href="#">Hide Alert Rings</a></li>
<li><a href="#">Show only items with Alerts</a></li>
</ul>
</div>
</div>
</form>
<div id="tree"></div>
</div>
</div>
</nav>
<div id="page-wrapper">
<div class="row dp-content">
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a href="#">Dashboard</a></li>
<li role="presentation"><a href="#">Data</a></li>
<li role="presentation"><a href="#">Alerts</a></li>
<li role="presentation"><a href="#">Export</a></li>
</ul>
<!-- <div class="col-md-4"><i class="fa fa-building-o fa-6" style="color:green"></i> These 3 will collapse </div>
<div class="col-md-4">Into one column</div>
<div class="col-md-4">On small screens</div> -->
<!-- <div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">Default Buttons</div>
<div class="panel-body">
<h5>Example - 2 Disabled buttons, 2 Enabled.</h5>
<p>
<button type="button" class="btn btn-default">Default</button>
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-danger disabled">590</button>
<button type="button" class="btn btn-link disabled">Link</button>
</p>
</div>
</div>
</div> -->
<!-- <br>
<button class='large' onclick='hide_data2();'>Hide data2</button>
<button class='large' onclick='show_data2();'>Show data2</button>
<br>
<button class='large' onclick='hide_data3();'>Hide data3</button>
<button class='large' onclick='show_data3();'>Show data3</button>
<br>
<button class='large' onclick='hide_all();'>Hide all</button>
<button class='large' onclick='show_all();'>Show all</button>
<br> -->
<div id="landing_page_chart"></div>
<div id="doble_prime_chart"></div>
<div id="nvd3chart"></div>
<div id="lazy"></div>
<div class="panel-body">
<table id="example" class="display" width="100%"></table>
</div>
</div>
</div>
</div>
<div id="myModal" class="modal fade" style="display:none;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Alert</h4>
</div>
<div class="modal-body">
<p>TX1 Issue</p>
</div>
<div class="modal-footer">
<button type="button" class="btn" data-dismiss="modal">Close</button>
<button type="button" class="btn">Acknowledge</button>
</div>
</div>
</div>
</div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/bootstrap-treeview/dist/bootstrap-treeview.min.js"></script>
<script src="bower_components/d3/d3.js"></script>
<script src="bower_components/c3/c3.js"></script>
<script src="bower_components/nvd3/build/nv.d3.js"></script>
<script src="Content/landing_page_chart.js"></script>
<script src="Content/nvd3chart.js"></script>
<script src="bower_components/datatables/media/js/jquery.dataTables.js"></script>
<script src="bower_components/datatables/media/js/dataTables.bootstrap.js"></script>
<script>
var tree = [{
text: "Chart Sandbox", icon: "fa fa-building",
nodes: [{
text: "Lorem Ipsum XFMR 1",
icon: "fa fa-fw fa-th",
nodes: [{ text: "Antenna 1", icon: "fa fa-bolt" },
{ text: "Bushing B", icon: "fa fa-bolt" },
{ text: "Bushing Y", icon: "fa fa-bar-chart" },
{ text: "Bushing R", icon: "fa fa-area-chart" },
{ text: "DGA R", icon: "fa fa-cogs" }
]
},
{
text: "TX 2",
icon: "fa fa-building",
nodes: [{ text: "Antenna 1", icon: "fa fa-tachometer" },
{ text: "Bushing B", icon: "fa fa-bar-chart" },
{ text: "Bushing Y", icon: "fa fa-area-chart" },
{ text: "Bushing R", icon: "fa fa-bolt" },
{ text: "DGA R", icon: "fa fa-gavel" }
]
},
{ text: "TX 3",
icon: "fa fa-bolt"},
{ text: "TX 4",
icon: "fa fa-bolt"},
{ text: "TX 4",
icon: "fa fa-bolt"},
]
}];
// cause the debugger to fire every time
// debugger;
function getTree() {
return tree;
}
$('#tree').treeview({
data: getTree(),
onhoverColor: "transparent",
selectedBackColor: "#005DAB",
showBorder: "true",
collapseIcon: "glyphicon glyphicon-menu-down",
expandIcon: "glyphicon glyphicon-menu-right"
});
function clock() {
var now = new Date();
var date = now.toLocaleDateString();
// var time = now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds(); // old time without leading 0's
var time = now.getHours() + ':' + ((now.getMinutes() < 10) ? "0" + now.getMinutes() : now.getMinutes()) + ':' + ((now.getSeconds() < 10) ? "0" + now.getSeconds() : now.getSeconds());
document.getElementById('clock_date').innerHTML = date;
document.getElementById('clock_time').innerHTML = time;
setTimeout('clock()', 1000);
}
clock();
function ShowNotification() {
$("#myModal").modal('show');
}
</script>
<script>
var dataSet = [
["2015-10-26 14:26:07", 34, 34],
["2015-10-26 16:26:07", 45, 46],
["2015-10-26 17:26:07", 47, 48],
["2015-10-26 18:26:07", 49, 48],
["2015-10-26 19:26:07", 27, 68],
["2015-10-26 20:26:07", 37, 98],
["2015-10-26 21:26:07", 47, 18],
["2015-10-26 22:26:07", 57, 28],
["2015-10-26 23:26:07", 67, 78]
];
$(document).ready(function() {
$('#example').DataTable( {
data: dataSet,
columns: [
{ title: "Name" },
{ title: "Position" },
{ title: "Office" }
]
} );
} );
</script>
<style>
.frame {
fill: none;
stroke: #000;
}
.axis text {
font: 10px sans-serif;
}
.axis line,
.axis circle {
fill: none;
stroke: #777;
stroke-dasharray: 1,4;
}
.axis :last-of-type circle {
stroke: #333;
stroke-dasharray: none;
}
.line {
fill: none;
stroke: red;
stroke-width: 1.5px;
}
</style>
<script>
var data = d3.range(0, 2 * Math.PI, .01).map(function(t) {
return [t, Math.sin(2 * t) * Math.cos(2 * t)];
});
var width = 960,
height = 500,
radius = Math.min(width, height) / 2 - 30;
var r = d3.scale.linear()
.domain([0, .5])
.range([0, radius]);
var line = d3.svg.line.radial()
.radius(function(d) { return r(d[1]); })
.angle(function(d) { return -d[0] + Math.PI / 2; });
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height)
.append("g")
.attr("transform", "translate(" + width / 2 + "," + height / 2 + ")");
var gr = svg.append("g")
.attr("class", "r axis")
.selectAll("g")
.data(r.ticks(5).slice(1))
.enter().append("g");
gr.append("circle")
.attr("r", r);
gr.append("text")
.attr("y", function(d) { return -r(d) - 4; })
.attr("transform", "rotate(15)")
.style("text-anchor", "middle")
.text(function(d) { return d; });
var ga = svg.append("g")
.attr("class", "a axis")
.selectAll("g")
.data(d3.range(0, 360, 30))
.enter().append("g")
.attr("transform", function(d) { return "rotate(" + -d + ")"; });
ga.append("line")
.attr("x2", radius);
ga.append("text")
.attr("x", radius + 6)
.attr("dy", ".35em")
.style("text-anchor", function(d) { return d < 270 && d > 90 ? "end" : null; })
.attr("transform", function(d) { return d < 270 && d > 90 ? "rotate(180 " + (radius + 6) + ",0)" : null; })
.text(function(d) { return d + "°"; });
svg.append("path")
.datum(data)
.attr("class", "line")
.attr("d", line);
</script>
</body>
</html>