-
Notifications
You must be signed in to change notification settings - Fork 0
/
iotcity.html
201 lines (182 loc) · 6.84 KB
/
iotcity.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
<head>
<title>IoT City app</title>
</head>
<body>
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo">IoT City app</a>
</div>
</nav>
<div class="container">
{{> hello}}
</div>
</body>
<template name="hello">
{{#if enabled}}
{{#if connected false}}
<div class="row">
<div class="col s12">
<p>Make sure Arduino 'IoT City' is close and switched on before connecting.</p>
</div>
</div>
<div class="row">
<div class="col s12">
<a class="waves-effect waves-light btn full-width" id="connect">Verbinden met IoT City</a>
</div>
</div>
{{else}}
<div class="row">
<div class="valign-wrapper">
<div class="col s6">
<h5 class="valign">Boat</h5>
</div>
<div class="col s6">
<div class="switch valign">
<label>
Initial
<input type="checkbox">
<span class="lever"></span>
Target
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="valign-wrapper">
<div class="col s6">
<h5 class="valign">Car</h5>
</div>
<div class="col s6">
<div class="switch valign">
<label>
Initial
<input type="checkbox">
<span class="lever"></span>
Target
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="valign-wrapper">
<div class="col s6">
<h5 class="valign">Truck</h5>
</div>
<div class="col s6">
<div class="switch valign">
<label>
Initial
<input type="checkbox">
<span class="lever"></span>
Target
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="valign-wrapper">
<div class="col s6">
<h5 class="valign">Ad</h5>
</div>
<div class="input-field col s6">
<select class="valign">
<option value="" selected>Choose your option</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="valign-wrapper">
<div class="col s6 label-slider">
<h5 class="valign">Crane</h5>
</div>
<div class="cal s6">
<p class="range-field valign">
<input type="range" id="crane" min="0" max="180" />
</p>
</div>
</div>
</div>
<div class="row">
<div class="valign-wrapper">
<div class="col s6 label-slider">
<h5 class="valign">Machine</h5>
</div>
<div class="cal s6">
<p class="range-field valign">
<input type="range" id="crane" min="0" max="255" />
</p>
</div>
</div>
</div>
<div class="row">
<div class="valign-wrapper">
<div class="col s6 label-slider">
<h5 class="valign">Train speed</h5>
</div>
<div class="cal s6">
<p class="range-field valign">
<input type="range" id="crane" min="0" max="255" />
</p>
</div>
</div>
</div>
<div class="row">
<div class="valign-wrapper">
<div class="col s6 label-slider">
<h5 class="valign">Street light</h5>
</div>
<div class="cal s6">
<p class="range-field valign">
<input type="range" id="crane" min="0" max="255" />
</p>
</div>
</div>
</div>
<div class="row">
<div class="valign-wrapper">
<div class="col s6 label-slider">
<h5 class="valign">Light Red</h5>
</div>
<div class="cal s6">
<p class="range-field valign">
<input type="range" id="crane" min="0" max="255" />
</p>
</div>
</div>
</div>
<div class="row">
<div class="valign-wrapper">
<div class="col s6 label-slider">
<h5 class="valign">Light Green</h5>
</div>
<div class="cal s6">
<p class="range-field valign">
<input type="range" id="crane" min="0" max="255" />
</p>
</div>
</div>
</div>
<div class="row">
<div class="valign-wrapper">
<div class="col s6 label-slider">
<h5 class="valign">Light Blue</h5>
</div>
<div class="cal s6">
<p class="range-field valign">
<input type="range" id="crane" min="0" max="255" />
</p>
</div>
</div>
</div>
{{/if}}
{{else}}
<div class="card-panel white-text red darken-2 full-width">Please enable bluetooth</div>
{{/if}}
</template>