-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
269 lines (256 loc) · 10.9 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
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
<!DOCTYPE html>
<html>
<head>
<meta name="copyright" content="Copyright (C) 2018-2022 Crawford Currie http://c-dot.co.uk license MIT">
<meta charset="UTF-8">
<meta name="Description" content="Sheds">
<meta name="cache-control" content="public">
<meta name="cache-control" content="max-age=0">
<meta name="expires" content="BUILD_DATE">
<meta name="build_date" content="BUILD_DATE">
<title>Sheds</title>
<!--base href="app"> DON'T DO THIS - it'll banjax jquery-ui.tabs -->
<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
<!-- for ios 7 style, multi-resolution icon of 152x152 -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-barstyle" content="black-translucent">
<link rel="apple-touch-icon" href="app/images/shed.svg" />
<!-- for Chrome on Android, multi-resolution icon of 196x196 -->
<meta name="mobile-web-app-capable" content="yes">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" sizes="196x196" href="app/images/shed.svg" />
<link rel="shortcut icon" href="app/images/favicon.png" type="png" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-barstyle" content="black-translucent">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link href="app/node_modules/jquery-ui/dist/themes/cupertino/jquery-ui.css" rel="stylesheet">
<link href="app/node_modules/jquery-ui-iconfont/jquery-ui.icon-font.min.css" rel="stylesheet">
<link href="app/node_modules/tablesorter/dist/css/theme.jui.min.css" rel="stylesheet">
<link href="app/node_modules/jquery-confirm/dist/jquery-confirm.min.css" rel="stylesheet">
<link href="app/css/with-info.css" rel="stylesheet">
<link href="app/css/in-place.css" rel="stylesheet">
<link href="app/css/Sheds.css?wtf=1" rel="stylesheet">
<link href="app/node_modules/font-awesome/css/font-awesome.css" rel="stylesheet">
<script type="importmap">
{
"imports": {
"jquery": "./app/node_modules/jquery/dist/jquery.min.js",
"jquery-ui": "./app/node_modules/jquery-ui/dist/jquery-ui.min.js",
"jquery-csv": "./app/node_modules/jquery-csv/src/jquery.csv.min.js",
"jquery-confirm": "./app/node_modules/jquery-confirm/dist/jquery-confirm.min.js",
"js-cookie": "./app/node_modules/js-cookie/dist/js.cookie.mjs",
"jquery-validate": "./app/node_modules/jquery-validation/dist/jquery.validate.min.js",
"jquery-tabledit": "./app/node_modules/jquery-tabledit/jquery.tabledit.min.js"
}
}
</script>
<script src="app/js/main.js" type="module"></script>
</head>
<body>
<div id="loading" class="rainbow fullscreen">
Loading...
</div>
<!-- console will move to console_dialog once loading is complete -->
<div id="console""></div>
<div id="loaded" class="hidden fullscreen">
<div id="main_tabs">
<div id="settings_block">
<span id="settings" class="fa fa-sliders"></span><br/>
<span id="open_console" class="fa fa-bug"></span>
</div>
<ul style="margin-right:1.2em">
<li><a href="#fixed" data-class="Compressor">Fixed Compressor</a></li>
<!-- DISABLED UNTIL SOMEONE WANTS THESE PAGES
<li><a href="#portable" data-class="Compressor">Portable Compressor</a></li>
<li><a href="#loans" data-class="Loans">Loans</a></li>
<li><a href="#inventory" data-class="Inventory">Inventory</a></li>
<!-- -->
<li><a href="#nitrox" data-class="Nitrox">Nitrox</a></li>
</ul>
</div>
</div>
<!-- tabs are dynamically loaded from app/html -->
<div id="console_dialog" class="fullscreen_dialog">
<button id="console_dialog_close" name="close">Close</button>
</div>
<div id="settings_dialog" class="fullscreen_dialog" data-title="<span class='fa fa-sliders-h'></span> Settings">
<button name="update_cache">Update Cache from Remote DB</button>
<table class="form_table zebra">
<tr>
<td>
Loan return deadline
</td>
<td class="widest">
<input type="number" required class="integer2" name="loan_return"> days
</td>
</tr>
<tr>
<th colspan="2">
O<sub>2</sub>
</th>
</tr>
<tr>
<td>
O<sub>2</sub> bank cylinders
</td>
<td class="widest">
1 <input type="number" class="number floating_point" step="any" name="o2:bank:1:size"> ℓ,
£<input type="number" class="floating_point" step="0.0001" required name="o2:bank:1:price">/ℓ,
<input type="number" class="number floating_point" step="any" name="o2:bank:1:max"> bar<br/>
2 <input type="number" class="number floating_point" step="any" name="o2:bank:2:size"> ℓ,
£<input type="number" class="floating_point" step="0.0001" required name="o2:bank:2:price">/ℓ,
<input type="number" class="number floating_point" step="any" name="o2:bank:2:max"> bar<br/>
3 <input type="number" class="number floating_point" step="any" name="o2:bank:3:size"> ℓ,
£<input type="number" class="floating_point" step="0.0001" required name="o2:bank:3:price">/ℓ,
<input type="number" class="number floating_point" step="any" name="o2:bank:3:max"> bar<br/>
4 <input type="number" class="number floating_point" step="any" name="o2:bank:4:size"> ℓ,
£<input type="number" class="floating_point" step="0.0001" required name="o2:bank:4:price">/ℓ,
<input type="number" class="number floating_point" step="any" name="o2:bank:3:max"> bar<br/>
</td>
</tr>
<tr>
<th colspan="2">
Fixed Compressor
</th>
</tr>
<tr>
<td>Predicted filter lifetime</td>
<td>
<input type="number" class="integer2" step="any" required name="compressor:fixed:filter:lifetime"> hours @ 20°C
</td>
</tr>
<tr>
<td>Coefficients</td>
<td class="widest">
A <input type="number" class="number floating_point" step="any" required name="compressor:fixed:filter:a"><br/>
B <input type="number" class="number floating_point" step="any" required name="compressor:fixed:filter:b"><br/>
C <input type="number" class="number floating_point" step="any" required name="compressor:fixed:filter:c"> <br/>
D <input type="number" class="number floating_point" step="any" required name="compressor:fixed:filter:d">
</td>
</tr>
<tr>
<td>Pumping rate</td>
<td class="widest">
<input type="number" name="compressor:fixed:pumping_rate" class="integer3"> lm<sup>-1</sup>
</td>
</tr>
<tr>
<td>Purge frequency</td>
<td class="widest">
<input type="number" name="compressor:fixed:purge_freq" class="integer2"> mins
</td>
</tr>
<tr>
<td>Max condensate</td>
<td>
<input type="number" name="compressor:fixed:safe_limit" class="integer2"> ml
</td>
</tr>
<tr>
<td>
<span>
Sensors root URL
</span>
</td>
<td class="widest">
<input type="text" url name="compressor:fixed:sensor_url" class="widest">
</td>
</tr>
<tr>
<td>
<span>
Enable sensors
</span>
</td>
<td class="widest">
<label>Intake °C
<input type="checkbox" name="compressor:fixed:enable_intake_temperature"></label>
<label>Intake %RH
<input type="checkbox" name="compressor:fixed:enable_intake_humidity"></label>
<label>3rd Stage °C
<input type="checkbox" name="compressor:fixed:enable_internal_temperature"></label>
</td>
</tr>
<tr>
<td>Sensor poll frequency</td>
<td class="widest">
<input type="number" class="floating_point" name="compressor:fixed:poll_frequency"> ms
</td>
</tr>
<tr>
<td>Alarm temperature</td>
<td class="widest">
<input type="number" name="compressor:fixed:internal_temperature_alarm" class="integer3">°C
</td>
</tr>
<tr>
<th colspan="2">
Portable Compressor
</th>
</tr>
<tr>
<td>Predicted filter lifetime</td>
<td class="widest">
<input type="number" class="integer3" step="any" required name="compressor:portable:filter:lifetime"> hours @ 20°C
</td>
</tr>
<tr>
<td>Coefficients</td>
<td class="widest">
A <input type="number" class="number floating_point" step="any" required name="compressor:portable:filter:a"><br/>
B <input type="number" class="number floating_point" step="any" required name="compressor:portable:filter:b"><br/>
C <input type="number" class="number floating_point" step="any" required name="compressor:portable:filter:c"><br/>
D <input type="number" class="number floating_point" step="any" required name="compressor:portable:filter:d">
</td>
</tr>
<tr>
<th colspan="2">
Databases
</th>
</tr>
<tr>
<td>
Remote DB index URL
</td>
<td>
<input class="widest" type="text" url name="db_index_url">
</td>
</tr>
<tr>
<td>
Local cache URL
</td>
<td>
<input class="widest" type="text" url name="cache_url">
</td>
</tr>
</table>
<button name="close">Close</button>
</div>
<div id="auth_required" class="hidden" title="Authentication required">
Login to <span class="url">?</span>
<table>
<tr><td>User:</td>
<td class="widest"><input class="widest" type='text' name='user'></td>
</tr><tr><td>Pass:</td>
<td class="widest"><input class="widest" type='password' name='pass'></td>
</tr></table>
</div>
<div id="connect_failed_dialog" class="hidden" title="Connect failed">
Could not connect to local cache at '<span class="url">?</span>'.
You can continue without the cache, but if you do then no records
will be loaded or saved.
<table>
<tr>
<td>Local cache URL:</td>
<td class="widest"><input class="widest" type="text" name="cache_url"></td>
</tr>
</table>
</div>
<div id="alert_dialog" class="hidden" title="Alert">
<div id="alert_body">
</div>
</div>
</body>
</html>