-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (44 loc) · 1.92 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
<!doctype html>
<html>
<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>Coffee Imp</title>
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Coffee Imp">
<link rel="apple-touch-icon" href="/Elec-Imp-Relay/apple-icon-coffee.png">
<!-- Various stylesheets -->
<link rel="stylesheet" href="styles/h5bp.css">
<link rel="stylesheet" href="styles/components.css">
<link rel="stylesheet" href="styles/main.css">
</head>
<!-- Decode the parameters and check and make sure agentURL is present -->
<body onload="linkDecode(); agentURLalert();">
<header class="app-bar promote-layer">
<div class="app-bar-container">
<h1 class="logo" align="center" >Coffee Imp</h1>
</div>
</header>
<main>
<center><br>
<!-- Display alerts here if there are any -->
<div class="g--half g--centered" style="background:red;" id="alerts"></div>
<h2 id="toggle">Toggle the power</h2>
<button class="button--on" onclick="addOrUpdateUrlParam('relay', 1);">Turn on</button>
<button class="button--off" onclick="addOrUpdateUrlParam('relay', 0);">Turn off</button>
<h2 id="cups">☕ Number of cups ☕</h2>
<button class="button--cups" onclick="addOrUpdateUrlParam('cups', 2);">2</button>
<button class="button--cups" onclick="addOrUpdateUrlParam('cups', 3);">3</button>
<button class="button--cups" onclick="addOrUpdateUrlParam('cups', 4);">4</button>
</center>
</main>
<!-- used to open all links inside the app -->
<script src="scripts/link-fix.js"></script>
<!-- used to check URL parameters -->
<script src="scripts/link-decode.js"></script>
<!-- Made with love using Web Starter Kit -->
</body>
</html>