-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
221 lines (220 loc) · 8.99 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!doctype html>
<html lang="en" data-bs-theme="auto">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="reelyActive webble.js demo.">
<link rel="stylesheet" href="style/bootstrappyactive.min.css">
<script type="module" src="js/color-modes.js"></script>
<title> reelyActive webble.js demo </title>
<!----- Structured, linked metadata (JSON-LD & Schema.org) ----->
<script type="application/ld+json">
[{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "webble.js",
"description": "Client-side utility to facilitate pairing and exchanging data with BLE devices using the Web Bluetooth API.",
"license": "https://opensource.org/licenses/MIT",
"isAccessibleForFree": true,
"applicationCategory": "Client-side",
"operatingSystem": "Any",
"image": "https://reelyactive.github.io/webble/images/overview.png",
"sameAs": "https://github.com/reelyactive/webble",
"author": {
"@type": "Organization",
"url": "https://www.reelyactive.com"
}
},
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "reelyActive Developers",
"item": "https://reelyactive.github.io"
},{
"@type": "ListItem",
"position": 2,
"name": "webble.js"
}]
}]
</script>
</head>
<body>
<!-- Navigation -->
<nav class="navbar sticky-top navbar-expand-lg bg-body-tertiary shadow">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img src="images/reelyactive-developers-logo-nav.png" width="135"
height="30" alt="reelyActive Developers">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarItems" aria-controls="navbarItems"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarItems">
<!-- Left-aligned navigation items -->
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
</ul>
<!-- Right-aligned navigation items -->
<ul class="navbar-nav">
<!-- Colour theme chooser -->
<li class="nav-item dropdown">
<button class="btn btn-link nav-link dropdown-toggle"
id="bd-theme" type="button" aria-expanded="false"
data-bs-toggle="dropdown" data-bs-display="static"
aria-label="Toggle theme (auto)">
<i class="fas fa-adjust"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end shadow"
aria-labelledby="bd-theme-text">
<li>
<button type="button" class="dropdown-item"
data-bs-theme-value="light" aria-pressed="false">
<i class="fas fa-sun"></i> Light
</button>
</li>
<li>
<button type="button" class="dropdown-item"
data-bs-theme-value="dark" aria-pressed="false">
<i class="fas fa-moon"></i> Dark
</button>
</li>
<li>
<button type="button" class="dropdown-item active"
data-bs-theme-value="auto" aria-pressed="true">
<i class="fas fa-adjust"></i> Auto
</button>
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="navbarInfoDropdown"
role="button" data-bs-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<i class="fas fa-question-circle"></i>
</a>
<!-- Info about tracking and open source software/licenses -->
<ul class="dropdown-menu dropdown-menu-end shadow"
aria-labelledby="navbarInfoDropdown">
<li>
<a class="dropdown-item"
href="https://www.reelyactive.com/how-we-observe/#digital">
<i class="fas fa-mouse-pointer"></i>
Behaviour tracking free
<span class="badge bg-success animate-breathing">
<i class="fas fa-user-shield"></i>
</span>
</a>
</li>
<li class="dropdown-divider"></li>
<li>
<a class="dropdown-item" target="_blank"
href="https://getbootstrap.com">
<i class="fab fa-bootstrap"></i>
Bootstrap 5
<span class="badge bg-light text-dark">
<i class="fab fa-osi"></i> MIT
</span>
</a>
</li>
<li>
<a class="dropdown-item" target="_blank"
href="https://fontawesome.com">
<i class="fab fa-font-awesome"></i>
Font Awesome (Free)
<span class="badge bg-light text-dark">
<i class="fab fa-creative-commons"></i>
<i class="fab fa-osi"></i> MIT
</span>
</a>
</li>
<li>
<a class="dropdown-item" target="_blank"
href="https://github.com/reelyactive/web-style-guide/">
<i class="fas fa-code"></i>
Web Style Guide
<span class="badge bg-light text-dark">
<i class="fab fa-osi"></i> MIT
</span>
</a>
</li>
<li class="dropdown-divider"></li>
<li>
<a class="dropdown-item" target="_blank"
href="https://www.reelyactive.com/made-in-montreal/">
<i class="fab fa-canadian-maple-leaf"></i>
Made in Montréal
<i class="fas fa-city"></i>
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- Content -->
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-sm-12 col-md-10 col-lg-8 col-xl-6">
<h1 class="mt-4"> webble.js demo </h1>
<p class="lead text-body-secondary"> For browsers which support the experimental <i class="fab fa-bluetooth"></i> Web Bluetooth API </p>
<!-- Webble card -->
<div id="webblecard" class="card text-bg-primary my-3" hidden>
<div class="row">
<div class="col-lg-4 align-self-center">
<div class="card-body">
<p class="card-title mb-0">
<i class="fab fa-bluetooth"></i> Web Bluetooth
</p>
</div>
</div>
<div class="col-lg-4 align-self-center">
</div>
<div class="col-lg-4 text-end align-self-center">
<div class="card-body">
<p class="card-text mb-0">
<button id="webbleconnect"
class="btn btn-sm btn-outline-light">
<i class="fas fa-compress-alt"></i>
</button>
<button id="webbledisconnect"
class="btn btn-sm btn-outline-light" disabled>
<i class="fas fa-expand-alt"></i>
</button>
</p>
</div>
</div>
</div>
<div class="alert alert-light rounded-bottom rounded-0 small mb-0"
id="webblealert" role="alert" hidden>
</div>
</div>
<!-- Data -->
<p class="small font-monospace text-body-secondary mt-5 mb-1">
webble.device
</p>
<div class="card bg-body-secondary mb-5">
<div class="card-body">
<pre id="webbledevice" class="card-text">null</pre>
</div>
</div>
</div>
</div>
</div>
<footer class="footer bg-dark bg-gradient">
<a href="https://github.com/reelyactive/webble"> webble </a>
|
<a href="https://www.reelyactive.com"> © reelyActive 2025 </a>
</footer>
<!-- Optional JavaScript -->
<script defer src="js/fontawesome-reelyactive.min.js"></script>
<script src="js/bootstrappyactive.bundle.min.js"></script>
<script src="js/webble.js"></script>
<script src="js/app.js"></script>
</body>
</html>