-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
104 lines (90 loc) · 3.34 KB
/
index.html
File metadata and controls
104 lines (90 loc) · 3.34 KB
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>javascriptRRD examples</title>
<link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
<style>
body {
padding-top: 50px;
}
.main {
padding: 20px;
}
@media (min-width: 768px) {
.main {
padding-right: 40px;
padding-left: 40px;
}
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<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="#">JavascriptRRD examples</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Raw <span class="caret" /></a>
<ul class="dropdown-menu">
<li><a href="#headerInfo">Simple header information</a></li>
<li><a href="#content">Raw RRD content</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">D3 <span class="caret" /></a>
<ul class="dropdown-menu">
<li><a href="#D3">Plot graph with d3js.</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Json<span class="caret" /></a>
<ul class="dropdown-menu">
<li><a href="#json">Dump data with Json.</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="main">
<h1 class="page-header">Dashboard</h1>
</div>
</div>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="node_modules/flot/jquery.flot.js" ></script>
<script src="node_modules/flot/jquery.flot.selection.js" ></script>
<script src="node_modules/flot/jquery.flot.time.js" ></script>
<script src="node_modules/flot/jquery.flot.navigate.js" ></script>
<script src="RRDFile.js" ></script>
<script src="binaryXHR.js" ></script>
<script src="RRDGraph.js" ></script>
<script>
$(".main").load(this.window.location.hash.substring(1));
$('.dropdown-menu > li > a').click(function() {
console.log($(this).attr('href'));
$(".main").load("example_"+$(this).attr('href').split('#')[1]+".html");
});
function fillFileOptions(node) {
var files = ["example1", "example2", "example3", "example4", "example4_s1", "example4_s2", "example4_s3", "example_amd64", "example_mips", "example_optionwrt"];
var p = node.prop('options');
$.each(files, function(index, file) {
p[p.length] = new Option(file, file);
});
}
</script>
</body>
</html>