-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
97 lines (75 loc) · 2.57 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
<!doctype html>
<html>
<head>
<title>Candy Grabber</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="description" content="Physical Web Candy Dispenser">
<link rel="icon" type="image/x-icon" href="beacons/images/favicon.ico" />
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="bower_components/paper-button/paper-button.html">
<link rel="import" href="bower_components/paper-card/paper-card.html">
<link rel="import" href="bower_components/paper-progress/paper-progress.html">
<link rel="import" href="bower_components/iron-icons/iron-icons.html">
<link rel="import" href="bower_components/platinum-bluetooth/platinum-bluetooth-device.html">
<link rel="import" href="bower_components/platinum-bluetooth/platinum-bluetooth-characteristic.html">
<link rel="import" href="my-custom-styles.html">
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="styles.css">
</head>
<body align="center">
<template is="dom-bind">
<platinum-bluetooth-device services-filter='["b6c31337-6c07-453e-961a-d8a8a41bf368"]'>
<platinum-bluetooth-characteristic
service="b6c31337-6c07-453e-961a-d8a8a41bf368"
characteristic="b6c31338-6c07-453e-961a-d8a8a41bf368">
</platinum-bluetooth-characteristic>
</platinum-bluetooth-device>
<paper-card>
<section align="center">
<iron-icon src="candy-cane.svg" style="width: 128px; height: 128px;"></iron-icon>
</section>
<section id="myHeader">
<h1 align="center" class="header_icon">CANDY MACHINE</h1>
</section>
<section>
<paper-button id="Forward">
Forward
</paper-button>
<paper-button id="Back">
Backward
</paper-button>
</section>
<section>
<paper-button id="Left">
Left
</paper-button>
<paper-button id="Right">
Right
</paper-button>
</section>
<section>
<paper-button id="Up">
Up
</paper-button>
<paper-button id="Down">
Down
</paper-button>
</section>
<section align="center">
<paper-button id="myButton">
Connect
</paper-button>
</section>
<div align="center" id="progress" class="hidden">
<paper-progress indeterminate="true" align="center" width="100%"></paper-progress>
</div>
</paper-card>
<section id="statusMessage">
Status
</section>
</template>
<script src="main.js"></script>
</body>
</html>