-
Notifications
You must be signed in to change notification settings - Fork 1
/
addedit.html
172 lines (122 loc) · 5.55 KB
/
addedit.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Add or Edit a Journey</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="common.css">
<link rel="stylesheet" href="addedit.css">
<link rel="shortcut icon" href="img/flag-square.png" type="image/png">
</head>
<body>
<header>
<h1>Rejselog</h1>
<p>Log your rail journeys and view/export them later.</p>
<nav>
<a href="index.html"><span class="emoji-icon">➕</span> Home / Add a Journey</a>
<a href="localstorage.html"><span class="emoji-icon">📁</span> Previous Journeys</a>
</nav>
</header>
<section>
<h2 id="title">Hmm...</h2>
<div id="details"></div>
<label for="out-origin">Origin</label>
<input type="text" id="out-origin">
<label for="out-originPlatform">Track</label>
<input type="text" id="out-originPlatform">
<button onclick="setNearest('dep');"><span class="emoji-icon">📍</span> Set to Closest Station</button>
<br>
<label for="out-departureTimeActual">Actual Departure</label>
<input type="text" id="out-departureTimeActual">
<button onclick="setActual('dep');"><span class="emoji-icon">📜</span> Set to Planned</button>
<button onclick="setNow('dep');"><span class="emoji-icon">⌚</span> Set to Now</button>
<hr>
<label for="out-destination">Destination</label>
<input type="text" id="out-destination">
<label for="out-destinationPlatform">Track</label>
<input type="text" id="out-destinationPlatform">
<button onclick="setNearest('arr');"><span class="emoji-icon">📍</span> Set to Closest Station</button>
<br>
<label for="out-arrivalTimeActual">Actual Arrival</label>
<input type="text" id="out-arrivalTimeActual">
<button onclick="setActual('arr');"><span class="emoji-icon">📜</span> Set to Planned</button>
<button onclick="setNow('arr');"><span class="emoji-icon">⌚</span> Set to Now</button>
<hr>
<label for="out-distanceKm">Distance Travelled (km)</label>
<input type="text" id="out-distanceKm"> <br>
<label for="out-route">Route (Direction)</label>
<input type="text" id="out-route">
<hr>
<label for="out-operatorName">Operator</label>
<input type="text" id="out-operatorName">
<select id="operator-fill">
<option selected="selected" value="default">Select to pick an operator</option>
<option disabled>Heavy Rail</option>
<option value="DSB">DSB</option>
<option value="DSBS">DSB S-Tog</option>
<option value="Arriva">Arriva</option>
<option value="Ore">Øresundståg</option>
<option value="SJ">SJ</option>
<option disabled>Metro and Light Rail</option>
<option value="M">Københavns Metro</option>
<option value="Od">Odense Letbane</option>
<option value="Ar">Aarhus Letbane</option>
</select>
<br>
<label for="out-identity">Identity (name)</label>
<input type="text" id="out-identity"><br>
<label for="out-vehicleType">Vehicle Type</label>
<input type="text" id="out-vehicleType"><br>
<label for="out-vehicles">Vehicles (commas between)</label>
<input type="text" id="out-vehicles">
<select id="vehicle-fill">
<option selected="selected" value="default">Select to add a train</option>
<option disabled>DMUs</option>
<option value="IC2">IC2 (Localtog) (2 carriages)</option>
<option value="IC3">IC3 (3 carriages)</option>
<option value="IC4">IC4 (4 carriages)</option>
<option disabled>EMU</option>
<option value="IR4">ER (IR4) (4 carriages)</option>
<option value="ET">ET (Øresundståg) (3 carriages)</option>
<option value="SA">SA (4th Gen S-Tog) (8 carriages)</option>
<option value="SE">SE (4th Gen S-Tog) (4 carriages)</option>
<option disabled>Locomotives</option>
<option value="EG">EG (EuroSprinter)</option>
<option value="EB">EJ (Siemens Vectron)</option>
<option disabled>Metro and Light Rail</option>
<option value="ART">Aarhus Letbane (Tango Tram-Trains)</option>
<option value="ARV">Aarhus Letbane (Variobahn Trams)</option>
<option value="OD">Odense Letbane</option>
</select>
<hr>
<label for="out-departureTimePlanned">Planned Departure</label>
<input type="text" id="out-departureTimePlanned"><br>
<label for="out-arrivalTimePlanned">Planned Arrival</label>
<input type="text" id="out-arrivalTimePlanned">
<hr>
<label for="out-notes">Notes</label>
<textarea id="out-notes" rows="5" style="width: 100%; height: 4em;"></textarea>
<hr>
<div style="display: flex; justify-content: space-between; align-items: flex-start;">
<button onclick="startOverConf();"><span class="emoji-icon">❌</span> Start Over</button>
<div>
<input type="checkbox" id="out-incomplete">
<label for="out-incomplete">Mark as incomplete</label>
</div>
<div id="uploaded" style="display: none;">
<input type="checkbox" id="out-uploaded">
<label for="out-uploaded">Sent to RailMiles?</label>
</div>
<button onclick="addNew();" id="save-button" style="display: none;"><span class="emoji-icon">💾</span> Save this Journey</button>
<button onclick="editExisting();" id="edit-button" style="display: none;"><span class="emoji-icon">✏️</span> Edit this Journey</button>
</div>
</section>
<script src="js/0common.js"></script>
<script src="js/osm.js"></script>
<script src="js/addedit.js"></script>
</body>
</html>