-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.html
105 lines (105 loc) · 4.94 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
<!DOCTYPE html>
<html>
<head>
<title>Derail Valley Remote Dispatch Console</title>
<link rel="icon" href="res/icon.svg">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.css" integrity="sha256-BPfK9M5v34c2XP6p0cxVz1mUQLst0gTLk0mlc7kuodA=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/leaflet-sidebar.min.css" integrity="sha256-10dwwxs/pdWEYoC56aJvmY3kbMMa9/3uSWWNkGcrGq8=" crossorigin="anonymous">
<link rel="stylesheet" href="res/style.css">
<script src="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/js/all.min.js" integrity="sha256-gSqw5G+Gss6YqyQlqyIkuQ0IRZUqGsDVq9c0tiF+mL8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet-src.js" integrity="sha256-dG7rUAec0UN0e3nlMEuYJzsbK0rpoz4hBbNp0ir9iF8=" crossorigin="anonymous"></script>
<script src="res/leaflet.rotatedImageOverlay.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/leaflet-sidebar.min.js" integrity="sha256-4r81BYKeNxSG+nrK/UPQq75pDlH+GkiZn/zc/xkNMLA=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@zerowastemap/[email protected]/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/tablesort.js" integrity="sha256-ams/0yjSE7HGIRWB/A3VtW3Z24eOT+5z0z9d1pms7T4=" crossorigin="anonymous"></script>
</head>
<body>
<div id="sidebar" class="leaflet-sidebar collapsed">
<div class="leaflet-sidebar-tabs">
<ul role="tablist">
<li><a href="#carsTab" role="tab"><i class="fas fa-train" title="Cars"></i></a></li>
<li><a href="#jobsTab" role="tab"><i class="fas fa-clipboard-list" title="Jobs"></i></a></li>
<li><a href="#locoControlTab" role="tab"><i class="fas fa-gamepad" title="Loco Control"></i></a></li>
<li><a href="#settingsTab" role="tab"><i class="fas fa-cog" title="Settings"></i></a></li>
</ul>
</div>
<div class="leaflet-sidebar-content">
<div class="leaflet-sidebar-pane" id="carsTab">
<table id="carList">
<thead>
<tr><th>ID</th><th>Job</th><th>Dest</th></tr>
</thead>
<tbody id="carListBody"></tbody>
</table>
</div>
<div class="leaflet-sidebar-pane" id="jobsTab">
<input id="jobSearchText" type="text" placeholder="Search...">
<label>active only<input id="jobActiveOnly" type="checkbox"></label>
<table id="jobList">
<tbody id="jobListBody"></tbody>
</table>
</div>
<div class="leaflet-sidebar-pane" id="locoControlTab">
<div id="locoControlIndicators">
<label for="locoControlLocoId">L-</label>
<select id="locoControlLocoId"></select>
<span id="locoControlBrakePipe"></span> bar
<span id="locoControlForwardSpeed"></span> km/h
</div>
<div id="locoControlControls">
<div>
<label for="locoControlTrainBrakeInput">Train Brk</label>
<input id="locoControlTrainBrakeInput" type="range">
</div>
<div>
<label for="locoControlIndependentBrakeInput">Indep Brk</label>
<input id="locoControlIndependentBrakeInput" type="range">
</div>
<div>
<label>Reverser</label>
<span id="locoControlReverserReverseButton" class="locoControlButton" locoControlCommand="reverse"><i class="far fa-play-circle fa-flip-horizontal" title="Reverse"></i></span>
<span id="locoControlReverserForwardButton" class="locoControlButton" locoControlCommand="forward"><i class="far fa-play-circle" title="Forward"></i></span>
</div>
<div>
<label for="locoControlThrottleInput">Throttle</label>
<input id="locoControlThrottleInput" type="range">
</div>
<div>
<button id="locoControlCoupleButton">Couple</button>
</div>
<div>
<button id="locoControlUncoupleButton">Uncouple</button>
<select id="locoControlUncoupleSelect"></select>
</div>
</div>
</div>
<div class="leaflet-sidebar-pane" id="settingsTab">
<table>
<tr>
<th><label for="themeDropdown">Theme</label></th>
<td>
<select name="theme" id="themeDropdown">
<option value="dark">Dark</option>
<option value="light">Light</option>
</select>
</td>
</tr>
<tr>
<th><label for="carColorDropdown">Car color</label></th>
<td>
<select name="carColor" id="carColorDropdown">
<option value="jobId">by job ID</option>
<option value="jobType">by job type</option>
<option value="destination">by destination</option>
<option value="carType">by car type</option>
</select>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="map" class="dark" style="height:100vh"></div>
<script src="res/main.js"></script>
</body>
</html>