Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (54 loc) · 3.2 KB
/
Copy pathindex.html
File metadata and controls
64 lines (54 loc) · 3.2 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Flashes Cryptspeak firmware onto an M5Stack Cardputer Adv over USB using the browser's Web Serial API.">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; connect-src 'self' https://api.github.com https://cryptspeak.github.io; img-src 'self'; base-uri 'none'; form-action 'none'">
<title>Cryptspeak Web Flasher</title>
<link rel="stylesheet" href="assets/style.css">
</head>
<body>
<header>
<svg class="logo" viewBox="0 0 540 132" width="180" height="44" xmlns="http://www.w3.org/2000/svg" fill="none" role="img" aria-label="CryptSpeak">
<g transform="translate(12,19) scale(0.94)">
<path d="M37 20 L65 20 A15 15 0 0 1 80 35 L80 55 A15 15 0 0 1 65 70 L33 70 L18 85 L22 64 L22 35 A15 15 0 0 1 37 20 Z" stroke="#8B5CF0" stroke-width="6.5" stroke-linejoin="round" stroke-linecap="round"></path>
<circle cx="51" cy="40" r="8" fill="#8B5CF0"></circle>
<path d="M47.6 45 L44 58 L58 58 L54.4 45 Z" fill="#8B5CF0"></path>
</g>
<text x="126" y="86" font-family="'Space Grotesk',sans-serif" font-size="58" font-weight="600" letter-spacing="-2"><tspan fill="#8B5CF0">Crypt</tspan><tspan fill="#E8E6E2">speak</tspan></text>
</svg>
<p>Flashes <a href="https://github.com/cryptspeak/csCardputer" target="_blank" rel="noopener">Cryptspeak</a> onto an M5Stack Cardputer Adv over USB.</p>
<p id="release-info" class="status"></p>
</header>
<main>
<section id="unsupported" class="warning" hidden>
<p>This browser doesn't support the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Serial_API" target="_blank" rel="noopener">Web Serial API</a>. Use a Chromium-based desktop browser instead, such as Chrome or Edge.</p>
</section>
<section id="notes">
<p>If you're migrating from rsCardputer, Cryptspeak finds and migrates any existing unencrypted identity, messages, contacts, and settings the first time you unlock it after flashing. You don't need to do anything else for that to happen.</p>
</section>
<section id="options">
<label>
<input type="checkbox" id="erase-toggle">
Erase all data before flashing
</label>
<p class="hint">Wipes the entire flash before writing the new firmware. This deletes everything currently stored on the device, whether that's an existing Cryptspeak identity, messages, contacts and settings, or rsCardputer's plaintext data if you were about to migrate. Leave it off to keep that data. Cannot be undone.</p>
</section>
<section id="action">
<button id="flash-btn">Connect & Flash</button>
<progress id="progress" value="0" max="100" hidden></progress>
</section>
<section id="log-section">
<pre id="log" aria-label="Flasher log"></pre>
</section>
<section id="fallback">
<details>
<summary>Download the firmware file</summary>
<p class="hint"><a id="manual-link" href="https://github.com/cryptspeak/csCardputer/releases" target="_blank" rel="noopener">Get it from GitHub</a></p>
</details>
</section>
</main>
<script type="module" src="assets/app.js"></script>
</body>
</html>