-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (94 loc) · 3.3 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
106
107
108
<!DOCTYPE html>
<head>
<title>Train Scheduler</title>
<meta charset="UTF-8">
<link rel="stylesheet/text" href="assets/reset.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
<script src="https://www.gstatic.com/firebasejs/5.3.0/firebase.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/momentjs/2.12.0/moment.min.js"></script>
<style>
body{
background-image: url('./assets/Train.jpg');
}
.jumbotron{
margin-top: 10px;
background-color: rgba(68, 69, 71, 0.753);
color:aliceblue;
}
.panel-body{
border: 2px solid aliceblue;
padding: 10px;
}
#currentTime{
color: black;
}
</style>
</head>
<body>
<div class="container">
<div class="jumbotron text-center">
<h1>Train Time...</h1>
<hr>
<h4 style="color:white">Current Time : <span id="currentTime"></span></h4>
</div>
<div class="row">
<div class="col lg-8 md-8 sm-8">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Current Train Schedule</h3>
</div>
<div class="panel-body">
<table class="table table-hover table-responsive" id="trainTable" style="background-color:rgba(68, 69, 71, 0.753) !important; color:white">
<thead>
<tr>
<th style="width:180px">Train Name</th>
<th style="width:180px">Destination</th>
<th style="width:180px">Frequency (min)</th>
<th style="width:180px">Next Arrival</th>
<th style="width:200px">Minutes Away</th>
</tr>
</thead>
<tbody id="trainTable">
<tr></tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-4 sm-4">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Add Train</h3>
</div>
<div class="panel-body" style="background-color:rgba(68, 69, 71, 0.753) !important; color:white">
<form>
<div class="form-group">
<label for="name">Train Name </label>
<input type="text" class="form-control" id="nameInput" placeholder="Runaway Train">
</div>
<div class="form-group">
<label for="dest">Destination </label>
<input type="text" class="form-control" id="destInput" placeholder="Alaska">
</div>
<div class="form-group">
<label class="nextTrain" for="nextTrain">First Train Time</label><label class="milTime"> (HH:mm - Military)</label>
<input type="" class="form-control" id="timeInput" placeholder="00:00">
</div>
<div class="form-group">
<label for="minsAway">Frequency - (mins) </label>
<input type="text" class="form-control" id="freqInput" placeholder="15">
</div>
<button type="submit" class="btn btn-success" id="submit">Add Train</button>
<button type="submit" class="btn btn-warning" id="removeTain">Remove</button>
</form>
</div>
</div>
</div>
<div class="row">
</div>
</div>
<!-- JavaScript -->
<script src="assets/app.js"></script>
</body>
</html>