-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
85 lines (80 loc) · 4.23 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
<!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">
<title>Train Scheduler</title>
<!--Firebase-->
<script src="https://www.gstatic.com/firebasejs/4.12.1/firebase.js"></script>
<!--jQuery-->
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
<!-- Moment.js Reference -->
<script src="https://cdn.jsdelivr.net/momentjs/2.12.0/moment.min.js"></script>
<!--CSS-->
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
</head>
<body>
<div class="container">
<div class="jumbotron">
<h1 class="text-center">Welcome to the Magical Underground Train Station</h1>
<h2><i class="fas fa-train"></i></h2>
</div>
<div class="panel panel-default">
<div class="panel-heading text-center">
<h2></h2>
<h2 id="currentTime">The current time is: </h2>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title text-center">Current Train Schedule</h3>
</div>
<div>
<table id="trainTable">
<tr>
<th><i class="fas fa-train"></i> Train Name</th>
<th><i class="far fa-paper-plane"></i> Destination</th>
<th id="times"><i class="far fa-clock"></i> Frequency (min)</th>
<th id="times"><i class="far fa-calendar-alt"></i> Next Arrival</th>
<th id="times"><i class="fas fa-stopwatch"></i> Minutes Away</th>
</tr>
</table>
</div>
</div>
<div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Add Train</h3>
</div>
<div class="panel-body form-group">
<form>
<label for="trainNameInput">Train Name</label>
<br>
<input type="text" class="form-control" name="trName" id="trainNameInput" aria-describedby="TrainFormHelp" placeholder="Chattanooga Choo Choo" required>
<label for="destinationInput">Destination</label>
<br>
<input type="text" class="form-control" name="trDest" id="destinationInput" placeholder="Chattanooga, TN" required>
<br>
</form>
<form class="form-inline">
<label for="firstTrainInput">First Train Time</label>
<input type="time" class="form-control mx-sm-3 mb-2" name="trTime" id="firstTrainInput" required>
<label>Frequency (min)</label>
<input type="number" class="form-control mx-sm-3 mb-2" name="trFrequency" id="frequencyInput" placeholder="30">
<button id="addTrainBtn" type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
<!--JavaScript-->
<script src="assets/javascript/app.js"></script>
<!--Firebase app-->
<script src="https://www.gstatic.com/firebasejs/4.12.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.12.0/firebase-database.js"></script>
</body>
</html>