forked from evanxd/sensorweb-frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
328 lines (299 loc) · 17.2 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<meta name="google-signin-client_id" content="463509681101-3mv6658rkbcq52dst0t3h17desmq6e8l.apps.googleusercontent.com">
<meta property="og:url" content="http://sensorweb.io">
<meta property="og:site_name" content="SensorWeb">
<meta property="og:title" content="Sharing IoT data to solve real world problems">
<meta property="og:description" content="SensorWeb is an open data platform for IoT. Share data from IoT devices without coding. Our platform allows you to create REST APIs through a Web interface.">
<meta property="og:image" content="http://sensorweb.io/images/promotion_01.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="1200">
<meta property="og:image" content="http://sensorweb.io/images/promotion_02.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="1200">
<meta property="twitter:title" content="SensorWeb">
<meta property="twitter:description" content="SensorWeb is an open data platform for IoT. Share data from IoT devices without coding. Our platform allows you to create REST APIs through a Web interface.">
<meta property="twitter:image:src" content="http://sensorweb.io/images/promotion_01.png">
<meta property="twitter:image:width" content="1200">
<meta property="twitter:image:height" content="1200">
<title>SensorWeb</title>
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,700' rel='stylesheet' type='text/css'>
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/index.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/pilot-project.css" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>
<body>
<ul id="dropdown" class="dropdown-content">
<li><a href="/">English Version</a></li>
<li class="divider"></li>
<li><a href="tw/index.html">中文版</a></li>
</ul>
<div class="navbar-fixed">
<nav class="teal" role="navigation">
<div class="nav-wrapper container">
<a id="logo-container" href="/" class="brand-logo">SensorWeb</a>
<ul id="nav" class="right hide-on-med-and-down">
<li><a href="projects.html">Projects</a></li>
<li><a href="http://blog.sensorweb.io">Blog</a></li>
<li><a href="about.html">About</a></li>
<!-- Dropdown Trigger -->
<!-- <li><a class="dropdown-button" href="#!" data-activates="dropdown">EN<i id="arrow" class="material-icons right">arrow_drop_down</i></a></li> -->
</ul>
<ul id="nav-mobile" class="side-nav">
<li><a href="projects.html">Projects</a></li>
<li><a href="http://blog.sensorweb.io">Blog</a></li>
<!-- <li><a href="documentation.html">Documentation</a></li> -->
<li><a href="about.html">About</a></li>
<!-- <li><a href="sensor-management.html">Login</a></li> -->
</ul>
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
</div>
</nav>
</div>
<div id="page-container">
<div id="index-banner" class="parallax-container valign-wrapper">
<div class="section no-pad-bot">
<div class="container">
<div class="row center valign">
<h2 class="light">Open Data Platform for IoT</h2>
<h5 id="tagline">Sharing IoT data to solve real world problems</h5>
</div>
</div>
</div>
<div class="parallax"><img src="images/01_cover_v2.jpg" alt="Unsplashed background img 1"></div>
</div>
<div class="container" id="what">
<div class="section">
<div class="row">
<div class="col s12 m6">
<h3>What is SensorWeb?</h3>
<p class="contents">
<span style="font-weight: 600; font-size: larger;">Project SensorWeb</span> is an open data platform for IoT. Our platform allows you to create REST APIs through a web interface to easily share data from IoT devices without coding. SensorWeb empowers developers to collectively solve problems they care about.
</p>
</div>
<div class="col s12 m6">
<iframe width="560" height="315" src="https://www.youtube.com/embed/m1B4uPNykio" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
<div id="other-projects">
<div class="container">
<div class="section">
<div class="row">
<div class="col s12 m6" style="float: right">
<h3>Real-Time PM2.5 Sensor Data</h3>
<p class="contents wordings">
View the real-time PM2.5 data in your neighbor. If you do not see one, set one up yourself!
</p>
<a href="project.html" class="btn-large" style="width: auto; margin:30px 0">View Project</a>
</div>
<div class="col s12 m6" style="float: left">
<div id="map-container">
<div id="sensors-location-map"></div>
<div id="sensor-data-chart-container" class="hide">
<div class="row no-margin">
<div id="sensor-information" class="col s12 l3">
<h3 class="name"></h3>
<p class="description"></p>
<p><span>PM2.5: </span><span class="value"></span></p>
<p class="info"><span>Air quality is </span><span class="status"></span>.</p>
<p class="info"><span>Updated </span><span class="latest-update"></span>.</p>
</br>
<a id="sensor-details" class="waves-effect waves-light btn-large" style="width: auto; margin-top: 12px">Sensor Details</a>
</div>
<div id="sensor-chart" class="col s12 l9">
<canvas id="sensor-data-chart" height="400"></canvas>
<button id="chart-close-btn" class="waves-effect waves-light btn teal"><i class="material-icons center">close</i></button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal Structure -->
<div id="pm25-fb-modal" class="modal">
<div class="modal-content">
<form action="https://docs.google.com/forms/d/19epwfpDesYGLkpR9ulSHdz0S99yCFOm__o2wy9P7iv0/formResponse" method="POST" target="temp_iframe" onsubmit="pm25Submitted=true;">
<div>
<div class="ss-form-question errorbox-good" role="listitem">
<div dir="auto" class="ss-item ss-item-required ss-text"><div class="ss-form-entry">
<label class="ss-q-item-label" for="entry_415795248">
<div class="ss-q-help ss-secondary-text" dir="auto"></div></label>
<input name="entry.415795248" value="" class="ss-q-short projects-input" id="entry_415795248" dir="auto" aria-label="Your name " title="" type="text" placeholder='Your name'>
</div></div></div>
<div class="ss-form-question errorbox-good" role="listitem">
<div dir="auto" class="ss-item ss-item-required ss-text"><div class="ss-form-entry">
<label class="ss-q-item-label" for="entry_227006405">
<div class="ss-q-help ss-secondary-text" dir="auto"></div></label>
<input name="entry.227006405" value="" class="projects-input" id="entry_227006405" dir="auto" aria-label="Email Must be a valid email address" aria-required="true" required="" title="Must be a valid email address" type="email" placeholder="Your email">
</div></div></div>
<div class="ss-form-question errorbox-good" role="listitem">
<div dir="auto" class="ss-item ss-paragraph-text"><div class="input-field">
<label class="ss-q-item-label" for="entry_1121732545">
<label for="itemView.getDomIdToLabel()" aria-label="(Required field)"></label>
<div class="ss-q-help ss-secondary-text" dir="auto"></div></label>
<input name="entry.1121732545" value="" class="projects-input" id="entry_1121732545" dir="auto" aria-label="Your location " aria-required="true" required="" title="" type="text" placeholder='Your city (e.g. "San Francisco, US")'>
<div class="error-message" id="1647130968_errorMessage"></div>
</div></div></div>
<div class="ss-form-question errorbox-good" role="listitem">
<div dir="auto" class="ss-item ss-item-required ss-select"><div class="input-field">
<select multiple name="entry.2073574885" id="entry_2073574885" aria-label="Pick any that applies " aria-required="true" required=""><option value="" disabled>Pick any that applies...</option>
<option value="I am a developer">I am a developer</option> <option value="I am a blogger">I am a blogger</option> <option value="I want to set up sensor in my city">I want to set up sensor in my city</option> <option value="I crunch data">I crunch data</option></select>
</div></div></div>
<div class="ss-form-question errorbox-good" role="listitem">
<div dir="auto" class="ss-item ss-paragraph-text"><div class="ss-form-entry">
<label class="ss-q-item-label" for="entry_1013794867">
<div class="ss-q-help ss-secondary-text" dir="auto"></div></label>
<textarea name="entry.1013794867" rows="8" cols="0" class="materialize-textarea projects-textarea set-margin" id="entry_1013794867" dir="auto" aria-label="Other ideas or comments " placeholder="Other ideas or comments"></textarea>
</div></div></div>
<input name="draftResponse" value="[,,"-1399116953732568931"]
" type="hidden">
<input name="pageHistory" value="0" type="hidden">
<input name="fvv" value="0" type="hidden">
<input name="fbzx" value="-1399116953732568931" type="hidden">
<p class="terms">Mozilla may use the information you provide here to let you know about developments with Project SensorWeb that may interest you, including ways you may participate. By sending an idea or proposal, you give Mozilla or the public the right to use your submissions freely without any compensation or credit to you.</p>
<div class="form-submit center">
<input name="submit" value="Send" id="projects-pm25-submit" class="waves-effect waves-light btn-large" type="submit">
</div></div></form>
</div>
</div>
<div id="new-idea-fb-modal" class="modal">
<div class="modal-content">
<form action="https://docs.google.com/forms/d/10tW-QBsNbYeLhvzli0-0Gcu1-bSjDvJ43D3t6_YrUfc/formResponse" method="POST" target="temp_iframe" onsubmit="otherSubmitted=true;">
<div class="ss-form-question errorbox-good" role="listitem">
<div dir="auto" class="ss-item ss-item-required ss-text"><div class="ss-form-entry">
<label class="ss-q-item-label" for="entry_1817488846"><div class="ss-q-title">
<label for="itemView.getDomIdToLabel()" aria-label="(Required field)"></label></div>
<div class="ss-q-help ss-secondary-text" dir="auto"></div></label>
<input name="entry.1817488846" value="" class="projects-input" id="entry_1817488846" dir="auto" aria-label="Email Must be a valid email address" aria-required="true" required="" title="Must be a valid email address" type="email" placeholder="Email">
</div></div></div>
<div class="ss-form-question errorbox-good" role="listitem">
<div dir="auto" class="ss-item ss-item-required ss-paragraph-text"><div class="ss-form-entry">
<label class="ss-q-item-label" for="entry_1750700127"><div class="ss-q-title">
<label for="itemView.getDomIdToLabel()" aria-label="(Required field)"></label>
</div>
<div class="ss-q-help ss-secondary-text" dir="auto"></div></label>
<textarea name="entry.1750700127" rows="8" cols="0" class="materialize-textarea projects-textarea set-margin" id="entry_1750700127" dir="auto" aria-label="Any thought for other project? " aria-required="true" required="" placeholder="What is the problem that you would like solve"></textarea>
<div class="error-message" id="1327560640_errorMessage"></div>
</div></div></div>
<input name="draftResponse" value="[,,"-8972198816433753165"]
" type="hidden">
<input name="pageHistory" value="0" type="hidden">
<input name="fvv" value="0" type="hidden">
<input name="fbzx" value="-8972198816433753165" type="hidden">
<p class="terms">By sending an idea or proposal, you give Mozilla or the public the right to use your submissions freely without any compensation or credit to you. Mozilla may use the email address you provide here to let you know about developments with Project SensorWeb that may interest you.</p>
<div class="form-submit center">
<input name="submit" value="Send" id="projects-other-submit" class="waves-effect waves-light btn-large" type="submit">
</div>
</form>
</div>
</div>
<script type="text/javascript">
var pm25Submitted=false;
var otherSubmitted=false;
</script>
<iframe name="temp_iframe" id="temp_iframe"
style="display:none;" onload=
"if(pm25Submitted) {
$('#pm25-fb-modal').closeModal();
};
if (otherSubmitted) {
$('#new-idea-fb-modal').closeModal();
}
">
</iframe>
<!-- ^^^ TODO: Remove after 1st demo ^^^ -->
<!-- Modal Structure -->
<div id="index-thx-modal" class="modal">
<div class="modal-content">
<h4>Thank You For Subscribing</h4>
<p>We'll contact you as soon as possible!</p>
</div>
</div>
<!-- Modal structure -->
<div id="google-sign-in-modal" class="modal">
<div class="modal-content">
<h4>Login to your account</h4>
<p>Please give us your preferred ID and sign in with google account</p>
<div class="input-field">
<input id="user-id" type="text" class="validate" placeholder="User ID">
<!-- <label for="user-id">User ID</label> -->
</div>
<div class="g-signin2 center" data-onsuccess="onSignIn"></div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="page-footer teal">
<div class="container">
<div class="row">
<div class="col l3 s12">
<a href="http://mozilla.org" target="_blank"><img class="logo-mozilla" src="images/footer-mozilla-white.png"/></a>
</div>
<div class="col l3 s12">
<h5 class="white-text head">SensorWeb</h5>
<ul>
<li><a class="white-text" href="https://github.com/sensor-web" target="_blank">GitHub</a></li>
<li><a class="white-text" href="privacy.html">Privacy Notice</a></li>
</ul>
</div>
<div class="col l3 s12">
<h5 class="white-text head">Connect</h5>
<ul>
<li><a class="white-text" href="https://wiki.mozilla.org/SensorWeb" target="_blank">Wiki</a></li>
<li><a class="white-text" href="https://wiki.mozilla.org/Connected_Devices/Participation" target="_blank">Participation</a></li>
</ul>
</div>
<div class="col l3 s12">
<h5 class="white-text head">Contact Us</h5>
<ul>
<li><a class="white-text" href="mailto:sensorweb@mozilla.com" target="_blank">sensorweb@mozilla.com</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
Made by <a class="brown-text text-lighten-3" href="http://materializecss.com">Materialize</a>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script src="https://apis.google.com/js/client.js"></script>
<script src="js/materialize.min.js"></script>
<script src="js/lib/konami.js"></script>
<script src="js/moment-with-locales.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.0.0/Chart.min.js"></script>
<script src="js/config.js"></script>
<script src="js/init.js"></script>
<script src="js/auth-utils.js"></script>
<script src="js/daqi-utils.js"></script>
<script src="js/chart-utils.js"></script>
<script src="js/index.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAWlJoUn2DS8XUYilLXZE8dxYEXbo6dnaE&signed_in=false&callback=initMap">
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-75308712-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>