-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (99 loc) · 2.83 KB
/
index.html
File metadata and controls
111 lines (99 loc) · 2.83 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
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link
rel="stylesheet"
href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css">
<link
rel="stylesheet"
href="css/bootstrap.min.css">
<link
rel="stylesheet"
href="css/bootstrap-responsive.min.css">
<link
rel="stylesheet"
href="css/rickshaw.min.css">
<link
rel="stylesheet"
href="css/style.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
</script>
<script
src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js">
</script>
<script
src="script/d3.v3.min.js">
</script>
<script
src="script/rickshaw.js">
</script>
<script
src="script/bootstrap.min.js">
</script>
<script
src="script/monitoring.js">
</script>
<script
src="script/chart.js">
</script>
<script
src="script/chart-display.js">
</script>
<script
src="script/controller.js">
</script>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="#">Cloud Monitoring API</a>
<div class="nav-collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<button id="authorize-button" style="visibility: hidden">
Authorize
</button>
<div id="project-info">
<form id="project-form" style="display: none;">
<label>Project ID:</label>
<input type="text" id="project-id-field">
<input type="button" id="project-button" value="Enter">
</form>
<p id="project-display" style="display: none;">
<label>Project ID:</label>
<span id="project-id"></span>
</p>
</div>
<div id="time-selector" style="display: none;">
<label>Timespan:</label> <span id="timespan-value"></span>
<div id="slider"></div>
</div>
<div id="charts"></div>
</div>
<script>
(function() {
window.clientLoaded = function() {
gapi.auth.init(function() {
var api = new MonitoringApi();
var chartDisplay = new ChartDisplay(api);
var controller = new Controller(api, chartDisplay);
controller.init();
});
}
})();
</script>
<script
src="https://apis.google.com/js/client.js?onload=clientLoaded">
</script>
</body>
</html>