-
Notifications
You must be signed in to change notification settings - Fork 40
/
index.html
37 lines (29 loc) · 1.06 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
<!DOCTYPE html>
<title>Nuki Hub web installer</title>
<html>
<body>
<h1>Nuki Hub</h1>
<div id="main" style="display: none;">
<br>
<script
type="module"
src="https://unpkg.com/[email protected]/dist/web/install-button.js?module">
</script>
<esp-web-install-button id="installButton" manifest="https://raw.githubusercontent.com/technyon/nuki_hub/binary/webflash/manifest.json"></esp-web-install-button>
<br><br><br><br>
Note: If flashing doesn't work, press and hold the "BOOT" switch, then click "Install".
</div>
<div id="notSupported" style="display: none;">
Your browser does not support the Web Serial API. Try a different browser like Chrome, Opera, Edge.
</div>
<script>
if(navigator.serial){
document.getElementById("notSupported").style.display = 'none';
document.getElementById("main").style.display = 'block';
} else {
document.getElementById("notSupported").style.display = 'block';
document.getElementById("main").style.display = 'none';
}
</script>
</body>
</html>