-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.html
212 lines (188 loc) · 8.46 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
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
<!DOCTYPE HTML>
<!--
Hyperspace by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title id="title">Speeduino Universal Firmware Loader</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body>
<!-- Sidebar -->
<section id="sidebar">
<div class="inner">
<nav>
<ul>
<li><a href="#loader">Choose Firmware</a></li>
<li style="display: none;"><a href="#details">Firmware Details</a></li>
<li><a href="#port">Choose Port</a></li>
<li><a href="#progress">Progress</a></li>
<li><a href="#basetunes">Base Tunes</a></li>
<li style="display: none;"><a href="#basetunewarning">Base Tunes</a></li>
</ul>
</nav>
</div>
</section>
<!-- Wrapper -->
<div class="wrapper">
<!-- Choose Version -->
<section id="loader" class="wrapper style1" style="height: 100vh;">
<div class="inner">
<div style="display: none; text-align: center;" id="update_text"><a href="" id="update_url" target="_blank">A new version is available. Click here to download</a></div>
<center><img src="assets/speeduino logo_white.png" width="235"/></center>
<!--<h1>Firmware Loader</h1>-->
<p>Available Firmwares:
<span class="icon fa-spinner" style="position: absolute; left: 48%; top: 42%;" id="fwVersionsSpinner"></span>
<select name="firmwares" class="select" id="versionsSelect" size="10" width="20" onClick="refreshBasetunes();"></select>
<ul class="actions">
<li><input type='button' id="btnChoosePort" value="Choose Port" /></li>
</ul>
<p>Other actions:</p>
<ul class="actions">
<li><input type='button' id="btnDetails" value="View Firmware Notes" /></li>
<li><input type='button' value="Get Base Tune" id="btnBasetune" /></li>
<li><input type='button' id="btnSelectLocal" value="Use Local Firmware" /></li>
</ul>
</p>
<div id="error"></div>
<div id="ports"></div>
</div>
</section>
<!-- Firmware details -->
<section id="details" class="wrapper style1-alt" style="height: 100vh;">
<div class="inner">
<h2>Firmware Notes</h2>
<div class="features major" >
<h2><div id="detailsHeading" style="padding-left: 0.55em;" ></div></h2>
<div id="detailsText" style="padding-left: 0.9em; padding-right: 0.9em; overflow-y: scroll; height: 50vh;"></div>
</div>
<ul class="actions">
<li><input type='button' value="Get Base Tune" id="btnBasetune" /></li>
<li><input type='button' id="btnLoader" value="Change Version" /></li>
<li><input type='button' id="btnChoosePort" value="Install" /></li>
</ul>
</div>
</section>
<!-- Choose Port -->
<section id="port" class="wrapper style2" style="height: 100vh;">
<div class="inner">
<h2>Select Serial Port</h2>
<p>Available Ports:
<select name="ports" class="select" id="portsSelect" size="10" width="20" onClick="checkForValidPort()"></select>
<ul class="actions">
<!-- <li><input type='button' value="Install Serial Drivers" onclick="installDrivers();" /></li> -->
<li><input type='button' value="Refresh" onclick="refreshSerialPorts();" /></li>
<li><input type='button' value="Upload" id="btnInstall" /></li>
</ul>
<div class="features major" id="port_warning" style="display: none;">
<div id="port_warningText" style="padding-left: 0.9em; padding-right: 0.9em; overflow-y: scroll; height: 10vh;"></div>
</div>
</p>
</div>
<div id="serialDetectError"></div>
</section>
<!-- Progress -->
<section id="progress" class="wrapper style3" style="height: 100vh;">
<!-- Sponsor bar -->
<div class="features" id="sponsorbox" style="display: none;">
<section id="sponsor">
<span class="icon major fa-heart"></span>
<p><center>
<a href="https://github.com/sponsors/noisymime" target="_blank">Speeduino is a volunteer run project. Click here if you're interested in supporting Speeduino's development</a>
</center>
</p>
</section>
</div>
<div class="inner">
<h2>Progress</h2>
<div class="features">
<section>
<span class="icon major fa-pause" id="progressSpinner"></span>
<p>
<strong>Current Status:</strong>
<span id="statusText"></span><span id="burnPercent"></span><br />
<span id="iniFileText" style="display: none;">TunerStudio definition file: <a id="iniFileLink"><span id="iniFileLocation"></span></a></span></span>
</p>
</section>
<section id="terminalSection" style="display: none;">
<span class="icon major fa-exclamation-triangle"></span>
<h3>Terminal Output:</h3>
<pre style="color: silver; background: black; overflow-x: scroll; overflow-y: scroll; height:190px"><span id="terminalText"></span></pre>
</section>
</div>
<ul class="actions">
<li><input type='button' id="btnChoosePort" value="Choose Port" /></li>
<li><input type='button' value="Burn again" id="btnReinstall" /></li>
<li><input type='button' value="Get Base Tune" id="btnBasetune" /></li>
</ul>
<ul class="actions">
<li><input type='button' value="Exit" id="btnExit" /></li>
</ul>
</div>
</section>
<!-- Base Tune download -->
<section id="basetunes" class="wrapper style4" style="height: 100vh;">
<div class="inner">
<h2 style="margin: 0;">Base Tunes</h2>
<p style="font-size: 12px;">
Tune Author: <select id="basetunesAuthor" class="select1" onChange="refreshBasetunesFilters()" ></select>
Make: <select id="basetunesMake" class="select1" onChange="refreshBasetunesFilters()" ></select>
Type: <select id="basetunesType" class="select1" onChange="refreshBasetunesFilters()" ></select><br/>
</p>
<p>
Available Tunes
<span class="icon fa-spinner" style="position: absolute; left: 48%; top: 42%;" id="baseTuneSpinner"></span>
<select name="basetunes" id="basetunesSelect" size="10" width="20" onChange="refreshBasetunesDescription()"></select>
<div class="features major" >
<div id="tuneDetailsText" style="padding-left: 0.9em; padding-right: 0.9em; padding-top: 0.1em; overflow-y: auto; height: 17vh; font-size: 14px;"></div>
</div>
<ul class="actions">
<li><input type='button' id="btnDownloadBasetune" value="Download tune" /></li>
<li><input type='button' value="Exit" id="btnExit" /></li>
</ul>
</p>
</div>
</section>
<!-- Base tune warning -->
<section id="basetunewarning" class="wrapper style5" style="height: 100vh;">
<div class="inner">
<h1 style="text-align: center; width: 100%;">WARNING</h1>
<div class="features major">
<p style="text-align: center; width: 100%;">Base tunes are intended as a starting point ONLY. They will require changes in order to work correctly with your engine!</p>
<center><span class="icon fa-exclamation major" id="warningIcon"></span></center>
<p style="text-align: center; width: 100%;">Take note of the board that has been used in this tune. If you are not using this board you need to change this setting immediately:</p>
<p style="text-align: center; width: 100%;">
<span class="icon fa-arrow-right" id="emphasisIcon"></span>
<span style="font-weight: bold;" id="tuneBoard"></span>
<span class="icon fa-arrow-left" id="emphasisIcon"></span>
</p>
</div>
<ul class="actions modal">
<li><input type='button' id="btnDownloadConfirm" value="Download" onclick="downloadBasetune();" /></li>
<li><input type='button' id="btnDownloadCancel" value="Cancel" /></li>
</ul>
</div>
</section>
<!-- Footer -->
<footer id="footer" class="wrapper style1-alt">
<div class="inner">
<ul class="menu">
<li>© Josh Stewart. All rights reserved.</li><li>Design: <a href="http://html5up.net" target="_blank">HTML5 UP</a></li><li>Version: 0.0.3</li>
</ul>
</div>
</footer>
<!-- Scripts -->
<script>window.$ = window.jQuery = require('jquery');</script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script src="renderer.js"></script>
</body>
</html>