-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (45 loc) · 1.66 KB
/
index.html
File metadata and controls
49 lines (45 loc) · 1.66 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ESP32 CheapDeck CYD Flasher</title>
<link href="https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;700;800&family=Fira+Mono&display=swap" rel="stylesheet" />
<script type="module" src="https://unpkg.com/esp-web-tools@9.1.1/dist/web/install-button.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
ESP32 CheapDeck CYD Flasher
</header>
<main>
<div class="card">
<h1>CheapDeck Web Flasher</h1>
<div class="version">Firmware version: <span id="version-number">v0.0.0</span></div>
<esp-web-install-button manifest="manifest.json"></esp-web-install-button>
<pre id="console" class="console"></pre>
<div class="instructions">
1. Connect your ESP32 via USB<br>
2. Click <strong>Install</strong><br>
3. Wait for the flashing process to finish
</div>
</div>
</main>
<footer>
© 2025 <a href="https://hdmain.pl" target="_blank" rel="noopener">bio</a> — CheapDeck Web Flasher
</footer>
<script>
fetch('manifest.json')
.then(res => res.json())
.then(data => {
const ver = data.version || 'v0.0.0';
document.getElementById('version-number').textContent = ver;
})
.catch(() => {
document.getElementById('version-number').textContent = 'no data';
});
const consoleEl = document.getElementById('console');
consoleEl.textContent = 'Console: waiting for flasher to start...\n';
</script>
</body>
</html>