forked from xively/channel-viz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
173 lines (156 loc) · 5.86 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
<!--
Visualising Xively Feeds with D3
Prepared by Paul Cheek
(c) 2013 LogMeIn, Inc.
-->
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Xively Feed Visualization</title>
<link type="text/css" rel="stylesheet" href="css/normalize.css" />
<link type="text/css" rel="stylesheet" href="css/foundation.min.css" />
<link type="text/css" rel="stylesheet" href="css/rickshaw.min.css">
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.min.css" type="text/css" media="all" />
<style type="text/css">
body, html {
max-width: 100%;
min-height: 100%;
overflow-x: hidden;
background: #666 url(img/loading.gif) center center no-repeat;
}
.hidden {
display: none;
}
#xivelyContent {
background: #fff;
box-shadow: inset 0px 0px 100px #f0f0f0;
}
.graphWrapper {
-moz-box-shadow:inset 0px 0px 50px 25px #ffffff;
-webkit-box-shadow:inset 0px 0px 50px 25px #ffffff;
box-shadow:inset 0px 0px 50px 25px #ffffff;
background-image: linear-gradient(bottom, rgb(255,255,255) 30%, rgb(245,245,245) 97%);
background-image: -o-linear-gradient(bottom, rgb(255,255,255) 30%, rgb(245,245,245) 97%);
background-image: -moz-linear-gradient(bottom, rgb(255,255,255) 30%, rgb(245,245,245) 97%);
background-image: -webkit-linear-gradient(bottom, rgb(255,255,255) 30%, rgb(245,245,245) 97%);
background-image: -ms-linear-gradient(bottom, rgb(255,255,255) 30%, rgb(245,245,245) 97%);
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0.3, rgb(255,255,255)),
color-stop(0.97, rgb(245,245,245))
);
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="js/custom.modernizr.js"></script>
<script src="js/xivelyjs-1.0.0.min.js"></script>
<script src="js/d3.v2.js"></script>
<script src="js/rickshaw.min.js"></script>
</head>
<body>
<!-- Header -->
<div style="background: #101C24;">
<div class="row">
<div class="large-12 columns">
<h2 style="color: #FFF; text-shadow: 0px 1px 0px #000;">
</h2>
</div>
</div>
</div>
<!-- Page Content -->
<div id="xivelyContent" style="position: relative;">
<a href="https://github.com/xively/channel-viz" class="hide-for-medium hide-for-small"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
<div id="welcome">
</div>
<div id="invalidApiKey" class="hidden">
</div>
<div id="validApiKey" class="hidden">
</div>
<div id="feeds">
<div class="feed hidden" id="exampleFeedNotFound" style="line-height: 25px; padding-top: 25px;">
<div class="row title">
<div class="large-12 columns">
<h2 class="subheader value">Loading Feed Data...</h2>
<div class="alert alert-box no-info">
Sorry, this feed could not be found.
</div>
</div>
</div>
</div>
<div class="feed hidden" id="exampleFeed" style="line-height: 25px; padding-top: 25px;">
<div class="row">
<div class="large-12 columns">
<div class="button-group" style="float: right;">
<a href="#" class="small button secondary duration-hour">6 Hrs</a>
<a href="#" class="small button secondary duration-day">Day</a>
<a href="#" class="small button secondary duration-week">Week</a>
<a href="#" class="small button secondary duration-month">Month</a>
<a href="#" class="small button secondary duration-90">90 Days</a>
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="datastreams" style="padding-bottom: 15px;">
<div class="datastream hidden">
<hr/>
<div class="row">
<div class="large-9 columns datastream-name subheader" style="font-size: 24px;">
Datastream Name
</div>
<div class="large-3 columns datastream-value subheader" style="font-size: 24px; text-align: right;">
420
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="graphWrapper" style="margin-top: 15px; padding: 10px; text-align: center;">
<div class="graph" style="width: 600px; margin: auto;"></div>
</div>
<div class="slider" style="width: 600px; height: 15px; margin: auto;"></div>
</div>
</div>
</div>
</div>
</div>
<hr/>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div style="background: #0D1B23;">
<div style="padding: 15px;">
<div class="row">
<div class="large-8 columns" style="color: rgb(81, 98, 111); padding-top: 10px; padding-bottom: 10px;">
<small>
This page was created with open-source tools, and uses data from <a style="font-weight: bold; color: rgb(81, 98, 111);" href="https://xively.com">Xively</a>.
</small>
</div>
<div class="large-4 columns" style="color: rgb(81, 98, 111); padding-top: 10px; padding-bottom: 10px;">
<small>
<a style="color: rgb(81, 98, 111);" href="https://github.com/xively/channel-viz/blob/master/LICENSE.md">This library is Open Source, under the BSD 3-Clause license.</a>
</small>
</div>
</div>
</div>
</div>
<!-- Modals -->
<div id="loadingData" class="reveal-modal small text-center">
<br/><br/><h2 class="subheader">Loading...</h2><br/><br/>
</div>
<script>
document.write('<script src=' +
('__proto__' in {} ? 'js/zepto' : 'js/jquery') +
'.js><\/script>')
</script>
<script src="js/foundation.min.js"></script>
<script src="follows.js"></script>
</body>
</html>