-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (70 loc) · 1.95 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
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js"></script>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
<link rel="stylesheet" href="//cdn.rawgit.com/necolas/normalize.css/master/normalize.css">
<link rel="stylesheet" href="//cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css">
<style>
.file-input {
cursor: inherit;
display: block;
opacity: 0;
}
pre {
height: 600px;
overflow: scroll;
}
.mb3 {
margin-bottom: 30px;
}
.pt2 { padding-top: 20px; }
</style>
</head>
<body>
<div class="container pt2">
<div class="mb3">
<div>
<h1>Upload Firmware</h1>
<form method="post" enctype="multipart/form-data" action="/firmware" id="upload-form">
<div>
<input type="file" id="file-input" value="firmware" />
<div>
<div>
<div>
<input id="payload-radio" name="device" type="radio" value="payload" checked /> payload
</div>
<div>
<input id="modem-radio" name="device" type="radio" value="modem" /> modem
</div>
</div>
<div>
<button class="button button-outline">Upload</button>
</div>
</form>
</div>
</div>
<div class="row">
<div class="column" style="width: 50%;">
<h1>Payload Logs</h1>
<pre id="payload-pre">
<code>
<div id="payload-serial-output"></div>
</code>
</pre>
</div>
<div class="column" style="width: 50%;">
<h1>Modem Logs</h1>
<pre id="modem-pre">
<code>
<div id="modem-serial-output"></div>
</code>
</pre>
</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>