forked from improv-wifi/sdk-serial-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
28 lines (28 loc) · 811 Bytes
/
example.html
File metadata and controls
28 lines (28 loc) · 811 Bytes
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
<html>
<head>
<title>Improv Serial Example</title>
<style>
@media (prefers-color-scheme: dark) {
body {
background-color: #333;
color: #fff;
}
a {
color: #58a6ff;
}
}
</style>
</head>
<body>
<improv-wifi-serial-launch-button></improv-wifi-serial-launch-button>
<p>Custom launch button:</p>
<improv-wifi-serial-launch-button>
<a href="#" slot="activate">Launch improv</a>
</improv-wifi-serial-launch-button>
<p>Custom message if unsupported:</p>
<improv-wifi-serial-launch-button>
<span slot="unsupported">⚠️ Browser set-up not supported</span>
</improv-wifi-serial-launch-button>
<script src="./dist/web/serial-launch-button.js" type="module"></script>
</body>
</html>