forked from suda/particle-web-interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
140 lines (127 loc) · 5.33 KB
/
index.html
File metadata and controls
140 lines (127 loc) · 5.33 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
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
<!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">
<title>Particle Cloud Web Interface</title>
<link rel="stylesheet" href="https://bootswatch.com/cosmo/bootstrap.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="container">
<!-- Login panel -->
<div class="row" id="login" style="display:none;">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-default">
<div class="panel-heading"><strong>Log in to Particle Cloud</strong></div>
<div class="panel-body">
<form role="form" onsubmit="return logIn()">
<div class="form-group">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" placeholder="Enter email">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" placeholder="Password">
</div>
<div class="alert alert-danger" style="display: none;" role="alert"></div>
<input type="submit" class="btn btn-primary" value="Log in">
</form>
</div>
</div>
</div>
</div>
<!-- /Login panel -->
<!-- Interface -->
<div id="interface" style="display:none;">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default" id="devices">
<div class="panel-heading"><strong>Devices</strong><button class="btn btn-warning pull-right btn-xs" onclick="logOut()">Logout</button></div>
<div class="panel-body">
<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="1" aria-valuemin="0" aria-valuemax="1" style="width: 100%"></div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="panel panel-default" id="functions" style="display:none;">
<div class="panel-heading"><strong>Functions</strong></div>
<div class="panel-body">
<table class="table table-striped">
<thead>
<tr>
<td>Name</td>
<td>Device</td>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default" id="execution-history" style="display:none;">
<div class="panel-heading"><strong>Execution history</strong><button class="btn btn-danger pull-right btn-xs" onclick="clearHistory()">Clear</button></div>
<div class="panel-body">
<table class="table table-striped">
<thead>
<tr>
<td>Function</td>
<td>Param<span class="hidden-xs">eter</span>s</td>
<td>Return</td>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default" id="variables" style="display:none;">
<div class="panel-heading"><strong>Variables</strong></div>
<div class="panel-body">
<table class="table table-striped">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Device</td>
<td>Value</td>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- /Interface -->
</div>
<footer>
<div class="container">
<iframe src="http://ghbtns.com/github-btn.html?user=suda&repo=particle-web-interface&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="62" height="20"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=suda&repo=particle-web-interface&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="80" height="20"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=suda&type=follow&count=true" allowtransparency="true" frameborder="0" scrolling="0"width="165" height="20"></iframe>
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>