-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo-assist.html
64 lines (55 loc) · 1.45 KB
/
demo-assist.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Air Batch - Assistant DEMO</title>
<script src="Brython-3.7.1/brython.js"></script>
<script src="Brython-3.7.1/brython_stdlib.js"></script>
<link rel="stylesheet" type="text/css" href="airbatch.css">
</head>
<body onload="brython({pythonpath: ['.', '/static/py/']})">
<label>
<input id="batch-switch" type="checkbox" checked />
Interactive mode
</label>
<button id="btn-time">00:00</button>
<button id="btn-reset">Reset</button>
<div id="batch" style="display: none;">
<select size="5" id="batch-aircraft" class="info aircraft"></select>
<select size="5" id="batch-pilot" class="info pilot"></select>
<select size="5" id="batch-location" class="info location"></select>
<textarea id="batch-editor"></textarea>
<button id="btn-parse">Parse</button>
</div>
<table id="result">
<thead>
<tr>
<td>Aircraft</td>
<td>Pilot</td>
<td>Co-Pilot</td>
<td>Takeoff</td>
<td>in</td>
<td>Touchdown</td>
<td>in</td>
<td>Duration</td>
<td></td>
</tr>
</thead>
<tbody id="final">
</tbody>
<tbody id="construction">
<tr id="construction-row">
<td colspan="9">
<ul id="editor-row">
<li id="editor-col">
<input id="editor" type="text" />
<ul id="editor-proposal"></ul>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
<script type="text/python" src="demo-assist.py"></script>
</body>
</html>