-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
204 lines (200 loc) · 7.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Smart Home Controller System</title>
<meta charset="utf-8" />
<link href="favicon.ico" rel="icon" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Smart Home Controller System" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"
type="text/css"
rel="stylesheet"
h
/>
<link href="bulma-switch.min.css" type="text/css" rel="stylesheet" />
<script
src="https://kit.fontawesome.com/cf4fab0a5f.js"
crossorigin="anonymous"
></script>
<link href="index.css" type="text/css" rel="stylesheet" />
</head>
<body class="has-navbar-fixed-top">
<nav
class="navbar is-fixed-top"
role="navigation"
aria-label="main navigation"
>
<div class="navbar-brand">
<a href="#HomePage" class="a">
<img src="./smart_home.svg" width="110" height="75" />
</a>
<a
role="button"
class="navbar-burger burger"
aria-label="menu"
aria-expanded="false"
data-target="navbarContent"
>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div class="navbar-menu" id="navbarContent">
<div class="navbar-start">
<a class="navbar-item a" href="#HomePage">
<span class="icon">
<i class="fas fa-home"></i>
</span>
<span>Home</span>
</a>
<a class="navbar-item a" href="#LightsPage">
<span class="icon">
<i class="fas fa-lightbulb"></i>
</span>
<span>Lights</span>
</a>
<a class="navbar-item a" href="#TVPage">
<span class="icon">
<i class="fas fa-tv"></i>
</span>
<span>TV</span>
</a>
<a class="navbar-item a" href="#FanPage">
<span class="icon">
<i class="fas fa-fan"></i>
</span>
<span>Fan</span>
</a>
</div>
<!--These buttons are just for show-->
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
<button class="button is-primary" aria-disabled="true">
<strong>Sign up</strong>
</button>
<button class="button is-light" aria-disabled="true">
Log in
</button>
</div>
</div>
</div>
</div>
</nav>
<section class="hero is-fullheight-with-navbar" id="HomePage">
<img src="./smart_home.svg" alt="smart home" />
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title is-spaced is-1">
Smart Home Controller System
</h1>
<a href="#LightsPage" class="button is-primary subtitle is-4 a"
>Let's start with Lights</a
>
</div>
</div>
</section>
<section class="hero is-fullheight-with-navbar is-hidden" id="LightsPage">
<img src="./lighthouse_off.svg" alt="lighthouse" />
<div class="hero-body">
<div class="container has-text-centered">
<header class="title is-2 is-spaced">Lights Control</header>
<div class="field">
<input
type="checkbox"
id="lightButton"
class="switch is-rounded is-success is-large"
/>
<label for="lightButton"></label>
</div>
</div>
</div>
</section>
<section class="hero is-fullheight-with-navbar is-hidden" id="TVPage">
<img src="./monitor.svg" alt="monitor" />
<div class="hero-body">
<div class="container has-text-centered">
<header class="title is-2 is-spaced">TV Control</header>
<div class="field">
<input
type="checkbox"
id="tvButton"
class="switch is-rounded is-success is-large"
/>
<label for="tvButton"></label>
</div>
</div>
</div>
</section>
<section class="hero is-fullheight-with-navbar is-hidden" id="FanPage">
<i class="fas fa-fan fa-10x"></i>
<div class="hero-body">
<div class="container has-text-centered">
<header class="title is-2 is-spaced">Fan Speed Control</header>
<div id="radioDiv" class="field subtitle has-text-centered">
<span>
<input
type="radio"
name="fanRadio"
id="fanRadio0"
value="0"
class="is-hidden"
/>
<label for="fanRadio0" class="button">0</label>
</span>
<span>
<input
type="radio"
name="fanRadio"
id="fanRadio1"
value="60"
class="is-hidden"
/>
<label for="fanRadio1" class="button">1</label>
</span>
<span>
<input
type="radio"
name="fanRadio"
id="fanRadio2"
value="120"
class="is-hidden"
/>
<label for="fanRadio2" class="button">2</label>
</span>
<span>
<input
type="radio"
name="fanRadio"
id="fanRadio3"
value="180"
class="is-hidden"
/>
<label for="fanRadio3" class="button">3</label>
</span>
<span>
<input
type="radio"
name="fanRadio"
id="fanRadio4"
value="245"
class="is-hidden"
/>
<label for="fanRadio4" class="button">4</label>
</span>
</div>
<header class="subtitle is-2">Temperature</header>
<div class="subtitle" id="tempDiv"></div>
</div>
</div>
</section>
<script src="boltiotfetch.js" type="text/javascript"></script>
<script type="text/javascript">
// The following line will set the api key and device name. It will be auto-initialized by Bolt cloud.
setKey('{{ApiKey}}', '{{Name}}')
</script>
<script src="index.js" type="text/javascript"></script>
</body>
</html>