-
Notifications
You must be signed in to change notification settings - Fork 33
/
flash.html
36 lines (28 loc) · 1.04 KB
/
flash.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
<!DOCTYPE html>
<html>
<body>
<h1>Sample project for demoing ESP Web Tools</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="webflash/manifest.json"></esp-web-install-button>
<br>
<span>NOTE: Make sure to close anything using your devices com port (e.g. Serial monitor)</span>
</div>
<div id="notSupported" style="display: none;">
Your browser does not support the Web Serial API. Try Chrome
</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>