-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
127 lines (112 loc) · 5.13 KB
/
index.html
File metadata and controls
127 lines (112 loc) · 5.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Train Scheduler</title>
<!--Google Fonts-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Cinzel|Roboto&display=swap" type="text/css">
<!--Bootstrap CSS-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
type="text/css">
<!--My CSS-->
<link rel="stylesheet" href="assets/css/style.css" type="text/css">
</head>
<body>
<header>
<div class="card mb-3" style="max-width: 100%;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="assets/images/171218-brightline.jpg" class="card-img" alt="Image of a High Speed Train">
</div>
<div class="col-md-8 background">
<div class="card-body">
<h1 class="card-text text-warning" id="head-text">Anytime is Train Time</h1>
</div>
<nav class="nav justify-content-center">
<a class="nav-link text-white active" href="#trains"><h6>Add a Train</h6></a>
<a class="nav-link text-white " id="exit" href="https://www.pamkelly.com/portdev.html"><h6>Exit</h6></a>
</nav>
</div>
</div>
</div>
</header>
<div class="container" id="schedule">
<h4 class="text-center">Current Schedule</h4>
<table class="table table-hover" id="train-table">
<caption class="font-italic font-weight-light">Timetable</caption>
<thead>
<tr>
<th scope="col">Train Name</th>
<th scope="col">Destination</th>
<th scope="col">Frequency (min)</th>
<th scope="col">Next Arrival</th>
<th scope="col">Minutes Away</th>
</tr>
</thead>
<tbody id="timetable" class="text-info">
</tbody>
</table>
</div>
<div class="container" id="add_train">
<div class="card">
<div class="card-header text-white">
Add a Train
</div>
<div class="card-body">
<form id="trains">
<div class="form-group">
<label for="name">
<h6 class="font-weight-bold">Train Name</h6>
</label>
<input type="text" class="form-control" id="name"
placeholder="Starlight Express">
<span id="invalid_name"></span>
</div>
<div class="form-group">
<label for="destination">
<h6 class="font-weight-bold">Destination</h6>
</label>
<input type="text" class="form-control" id="destination"
placeholder="Chicago, IL">
<span id="invalid_destination"></span>
</div>
<div class="form-group">
<label for="first">
<h6 class="font-weight-bold">First Train Time (HH:mm - 24HR Time)</h6>
</label>
<input type="text" class="form-control" id="first" placeholder="12:00">
<span id="invalid_first"></span>
</div>
<div class="form-group">
<label for="frequency">
<h6 class="font-weight-bold">Frequency (minutes)</h6>
</label>
<input type="text" class="form-control" id="frequency" placeholder="30">
<span id="invalid_frequency"></span>
</div>
<div>
<button type="submit" id="add-train" class="btn background text-white">Submit</button>
</div>
</form>
</div>
</div>
</div>
<footer>
<h6 class="text-center">© Copyright 2020 Pamela L. Kelly</h6>
</footer>
<!--jQuery JS file for Bootstrap-->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!--Bootstrap JS file-->
<script type="text/javascript"
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<!-- Firebase References -->
<script src="https://www.gstatic.com/firebasejs/6.0.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.0.4/firebase-database.js"></script>
<!--Moment JS file -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/2.12.0/moment.min.js"></script>
<!--My JS file -->
<script type="text/javascript" src="assets/javascript/app.js"></script>
</body>
</html>