-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
172 lines (127 loc) · 4.76 KB
/
index.html
File metadata and controls
172 lines (127 loc) · 4.76 KB
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>
<head>
<title>Train Schedule</title>
<!--CSS-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="style.css">
<!--Javascript-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="https://cdn.firebase.com/js/client/2.4.2/firebase.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
<script src="https://cdn.jsdelivr.net/momentjs/2.12.0/moment.min.js"></script>
</head>
<body>
<!--Container-->
<div class="container">
<div class="row spacing">
<div class="col-md-12 text-center">
<div class="topBox text-center">
<h2 class="whiteText">
<img class="train" src="assets/images/train.png">
Station to Station
<img class="train" src="assets/images/train.png">
</h2>
<h5 class="whiteText">Station to Staion Tracker</h5>
<h5 class="whiteText"><i class="fa fa-clock-o" aria-hidden="true"></i>
<i id="displayMoment"></i></h5>
</div>
</div>
</div>
<br>
<!-- <br> -->
<div class="row">
<div class="col-md-4 pull-left">
<div class="panel blackBg">
<div class="panel-heading formTop">
<h4><strong>Add Train </strong>
<i class="fa fa-train" aria-hidden="true"></i></h4>
</div>
<div class="panel-body">
<!-- Start of Entry Form Body -->
<form>
<div class="form-group">
<label for="">Train Name</label>
<select class="js-example-basic-single, form-control" placeholder="Enter Train Name..." id="trainNameInput">
<option value="Argonaut">Argonaut</option>
<option value="Arrow">Arrow</option>
<option value="Black Diamond">Black Diamond</option>
<option value="Blue Bird">Blue Bird</option>
<option value="Chesapeake">Chesapeake</option>
<option value="Wyoming Express">Wyoming Express</option>
</select>
</div>
<div class="form-group">
<label for="">Destination</label>
<select class="js-example-basic-single, form-control" placeholder="Enter Train Name..." id="destinationInput">
<option value="Chicago">Chicago</option>
<option value="Los Angeles">Los Angeles</option>
<option value="New Orleans">New Orleans</option>
<option value="New York">New York</option>
<option value="St Louis">St Louis</option>
</select>
</div>
<!-- Manual Time -->
<div class="form-group">
<label for="">Departure (HH:mm - Military Time)</label>
<input type="text" class="form-control" placeholder="Enter Time..." id="departTrainInput">
</div>
<!-- End Manual Time -->
<!-- Drop Time -->
<!-- <div class="form-group">
<label for="">First Train Time (HH:mm - Military Time)</label>
<select class="js-example-basic-single, form-control" placeholder="Enter Time..." id="departTrainInput">
<option value="12:00">12:00</option>
<option value="12:30">12:30</option>
<option value="1:00">1:00</option>
<option value="1:30">1:30</option>
<option value="2:00">2:00</option>
<option value="2:30">2:30</option>
<option value="3:00">3:00</option>
<option value="3:30">3:30</option>
<option value="4:00">4:00</option>
<option value="4:30">4:30</option>
</select>
</div> -->
<!-- End Drop Time -->
<div class="form-group">
<label for="">Frequency (min)</label>
<input type="text" class="form-control" placeholder="Enter Frequency..." id="frequencyInput">
</div>
<button type="submit" class="btn btn-success blackBg" id="addTrainBtn">Submit</button>
</form>
</div>
</div>
</div>
<!--End of Row-->
<!-- <br>
<br> -->
<div class="col-md-8">
<div class="panel blackBg">
<div class="panel-heading formTop"><strong><h4>Current Train Schedule</h4></strong></div>
<div class="panel-body">
<table class="table" id="userInput">
<thead>
<tr>
<th>Train Name</th>
<th>Destination</th>
<th>Frequency (min)</th>
<th>Next Arrival</th>
<th>Minutes Away</th>
</tr>
</thead>
<tbody id="trainData">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--Container-->
</div>
<script type="text/javascript" src="assets/js/trains.js"></script>
<script type="text/javascript" src="assets/js/select2.js"></script>
</body>
</html>