-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
291 lines (258 loc) · 11.2 KB
/
index.html
File metadata and controls
291 lines (258 loc) · 11.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!DOCTYPE html>
<html lang="en">
<head>
<title>ESP Web Flasher</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script>
// Redirect to HTTPS if HTTP is requested.
if (
window.location.hostname !== "localhost" &&
window.location.protocol === "http:"
) {
window.location.href = "https:" + window.location.href.substring(5);
}
</script>
<!-- import the web page's stylesheets along with the themes -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.typekit.net/qtk5kiq.css" />
<link rel="stylesheet" href="css/style.css" />
<!---<link
rel="stylesheet"
href="css/light.css"
id="light"
class="alternate"
disabled
/>
<link
rel="stylesheet"
href="css/dark.css"
id="dark"
class="alternate"
disabled
/> -->
<!-- import the webpage's javascript file -->
<script type="module">
window.esptoolPackage = import(
// In development we import locally.
window.location.hostname === "localhost"
? "/dist/web/index.js"
: "https://unpkg.com/esp-web-flasher@5.1.4/dist/web/index.js?module"
);
</script>
<script src="js/script.js" type="module"></script>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> -->
<div id="status" class="bg-secondary">
</div>
<div class="container">
<div class="header">
</div>
<div class="main">
<!-- Button trigger modal -->
<!-- <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#staticBackdrop">
Launch static backdrop modal
</button> -->
<!-- Modal -->
<div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">⚠️ Warning</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Sorry, <b>Web Serial</b> is not supported on this device, make sure
you're running Chrome 89 or later.
</div>
<!-- <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Understood</button>
</div> -->
</div>
</div>
</div>
<div class="container-fluid">
<div class="my-5" style="text-align: center;">
<h1>DevKitty Web Flasher</h1>
</div>
<div class ="controls mb-3">
<!-- Example single danger button -->
<!-- <div class="btn-group">
<button type="button" class="btn btn-outline-dark dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false" id="baudRate" value="1">
Baud: <p id="baudRateText"></p>
</button>
<ul class="dropdown-menu" id="baudRateOptions">
<li><a class="dropdown-item" href="#">115200</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><a class="dropdown-item" href="#">921600</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Separated link</a></li>
</ul>
</div> -->
<select class="form-select" id ="baudRate" aria-label="Default select example">
</select>
<button id="butClear" type="button" class="btn btn-outline-dark">Clear Text</button>
<div style="display: inline-block" class="ms-3">
<span class="form-check form-switch" style="display: inline-block">
<input class="form-check-input" type="checkbox" role="switch" id="autoscroll" aria-checked="true">
<label class="form-check-label" for="autoscroll">Autoscroll</label>
</span>
</div>
</div>
<!-- <div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="flexSwitchCheckDefault">
<label class="form-check-label" for="flexSwitchCheckDefault">Advanced</label>
</div> -->
<div class="row">
<div class="col-md-12 col-lg-6 order-lg-2 p-3">
<!-- Right Column -->
<div class="mb-5">
<h2>1. Toggle</h2>
<p>Place your DevKitty into "Boot Mode" by holding down the bumper while plugging it in.</p>
<a href="https://devkitty.io">I'm still confused → </a>
</div>
<div class="mb-5">
<h2>2. Connect </h2>
<p>Select your DevKitty. The board should pop up as "ESP32-S2" or similar.</p>
<button id="butConnect" type="button" class="btn btn-success">Connect</button>
</div>
<div>
<h2>3. Flash</h2>
<p>Select firmware to upload or choose your own!</p>
<div id="app" class="mb-3">
<div id="commands">
<div class="upload">
<div class="progress mb-3">
<div
class="progress-bar bg-success progress-bar-striped progress-bar-animated"
aria-valuenow="25"
aria-valuemin="0"
aria-valuemax="100"
role="progressbar"
></div>
</div>
<div class="dropdown mb-3">
<button
class="btn btn-outline-success dropdown-toggle"
type="button"
id="dropdownMenuButton"
data-bs-toggle="dropdown"
aria-expanded="false"
>
<b>Firmware</b>
</button>
<ul
class="dropdown-menu"
aria-labelledby="fw-select"
id="fw-dropdown"
>
<hr class="dropdown-divider" id="divider" />
<li>
<a class="dropdown-item" href="#" id="custom"
>Choose my own</a
>
</li>
</ul>
</div>
<div hidden id="model-selection">
<div class="dropdown mb-3">
<button
class="btn btn-outline-success dropdown-toggle"
type="button"
id="dropdown-model"
data-bs-toggle="dropdown"
aria-expanded="false"
>
<b>Model</b>
</button>
<ul
class="dropdown-menu"
aria-labelledby="arch-select"
id="model-dropdown"
></ul>
</div>
</div>
<div hidden id="custom-fw">
<label class="mb-3"
>Offset: 0x
<input
class="offset form-control"
style="display: inline-block; width: auto"
type="text"
value="0"
/></label>
<label class="firmware form-label mb-3">
<input
class="form-control"
type="file"
accept=".bin"
/>
<span></span>
</label>
</div>
</div>
</div>
</div>
<div class="buttons">
<button
id="butErase"
type="button"
disabled="disabled"
class="btn btn-outline-danger"
>
Erase
</button>
<button
id="butProgram"
type="button"
disabled="disabled"
class="btn btn-outline-success"
>
Program
</button>
</div>
</div>
</div>
<div class="col-md-12 col-lg-6 order-lg-1 p-3">
<!-- Left Column -->
<!-- <div> -->
<div id="log">
Welcome to the Web Flasher! =^._.^= <br>
------------------------------------<br>
</div>
<!-- </div> -->
</div>
</div>
</div>
</div>
<div class="footer">
</div>
</div>
<!-- <span style="display:inline-block">
<label for="autoscroll">Autoscroll </label>
<span class="onoffswitch">
<input
type="checkbox"
name="autoscroll"
class="onoffswitch-checkbox"
id="autoscroll"
/>
<label class="onoffswitch-label" for="autoscroll">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</span>
</span> -->
<div class="container-fluid">
<div class="my-5" style="text-align: center;">
<a href="https://devkitty.io">DevKitty.io</a>
</div>
</div>
</body>
</html>