forked from espressif/esptool-js
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
65 lines (63 loc) · 3.82 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
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
65
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Blockstream Jade DIY Flasher</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/xterm.css">
<link
href="https://fonts.googleapis.com/css?family=Orbitron"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/xterm.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/crypto-js.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<h1 align="center"><p>Blockstream Jade DIY</p></h1>
<h4 align="center">A Flasher utility for Jade DIY</h4>
<h4 align="center">Warning: This tool does not and cannot enable secure boot and flash encryption on the DIY devices</h4>
<div id="safariErr" style="display:none"><p align="center" style="color:red">This tool is not supported on Safari browser!</p>
</div>
<div class="container" id="main">
<hr/>
<div id="program">
<h3 id="jadediyversion">Jade DIY</h3>
<label for="dyimodels" id="lbldiymodels">Model:</label>
<select name="diymodelsel" id="diymodelsel">
<option value="m5core2">M5Stack Core2</option>
<option value="m5fire">M5Stack FIRE</option>
<option value="tdisplay">LILYGO T-Display</option>
<option value="m5gray">M5Stack Black/Gray</option>
<option value="m5stickcplus">M5StickC PLUS</option>
<option value="m5stickcplus2">M5StickC PLUS2</option>
<option value="tdisplays3">LILYGO T-DisplayS3</option>
<option value="tdisplays3procamera">LILYGO T-DisplayS3 Pro Camera</option>
<option value="jadeplus">Jade Plus</option>
</select>
<input class="btn btn-info btn-sm" type="button" id="connectButton" value="Flash" />
<br>
<hr/>
</div>
<label for="bootloaderprogress" id="bootloaderprogresslbl" style="display:none;" >Bootloader</label>
<progress id="bootloaderprogress" value="0" max="100" style="width: 100%; display:none"></progress>
<label for="partitiontableprogress" id="partitiontableprogresslbl" style="display:none;">Partition Table</label>
<progress id="partitiontableprogress" value="0" max="100" style="width: 100%; display:none"></progress>
<label for="otaprogress" id="otaprogresslbl" style="display:none;">OTA initial data</label>
<progress id="otaprogress" value="0" max="100" style="width: 100%; display:none"></progress>
<label for="jadeprogress" id="jadeprogresslbl" style="display:none;">Jade firmware</label>
<progress id="jadeprogress" value="0" max="100" style="width: 100%; display:none"></progress>
<h3 id="success"></h3>
<script src="index.js" type="module"></script>
<script>
// Safari 3.0+ "[object HTMLElementConstructor]"
var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && window['safari'].pushNotification));
if(isSafari)
{
document.getElementById("safariErr").style.display = "inline";
document.getElementById("main").style.display = "none";
}
</script>
</body>
</html>