-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
161 lines (149 loc) · 5.38 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
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
<!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
href="https://fonts.googleapis.com/css?family=Roboto:300,400"
rel="stylesheet"
/>
<!-- Bootstrap -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<!-- font auswome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<!-- External CSS -->
<link rel="stylesheet" href="assets/style.css" />
</head>
<body>
<!-- Main Content -->
<div class="container">
<!-- the jumbotron that holds the heading -->
<div class="jumbotron text-white text-center">
<h1 class="display-4 font-weight-bold">Anytime is Train Time</h1>
<p class="lead">Administraion form</p>
</div>
<!-- Card that displays the train schedule -->
<div class="card mb-3 border-primary text-center">
<div class="card-header bg-primary text-white">
<b>Current Train Schedule</b>
</div>
<!-- table that holds the train data -->
<div class="table-responsive pl-2 pr-2">
<table class="table table-hover table-sm" id="train-table">
<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>
<th scope="col">Action</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<!-- Card provides form to enter train shedule -->
<div class="card mb-3 border-primaryn">
<div class="card-header bg-primary text-white text-center">
<b>Add Train</b>
</div>
<form name="frm" id="apply-form" class="m-2">
<div class="form-group">
<label for="inputTrainName">Train Name</label>
<input
type="Text"
class="form-control"
id="inputTrainName"
placeholder="Enter Train Name"
required
/>
</div>
<div class="form-group">
<label for="inputDest">Destination</label>
<input
type="Text"
class="form-control"
id="inputDest"
placeholder="Destination"
required
/>
</div>
<div class="form-group">
<label for="inputTranTime">First Train Time (HH:mm)</label>
<input
type="Text"
class="form-control"
id="inputTranTime"
placeholder="train time"
required
/>
</div>
<div class="form-group">
<label for="inputFrequency">Frequency (min)</label>
<input
type="Text"
class="form-control"
id="inputFrequency"
placeholder="Destination"
required
/>
</div>
<button id="submitBtn" type="submit" class="btn btn-primary">
Submit
</button>
</form>
</div>
</div>
<!-- Moment.js Reference -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"></script>
<!-- jQuery -->
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/6.3.3/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.1.0/firebase-database.js"></script>
<!-- <script src="https://www.gstatic.com/firebasejs/3.1.0/firebase-auth.js"></script> -->
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyCMgZpYtW4vItq2fC-YNfO5HccUsFKXBAg",
authDomain: "train-scheduler-8bfa9.firebaseapp.com",
databaseURL: "https://train-scheduler-8bfa9.firebaseio.com",
projectId: "train-scheduler-8bfa9",
storageBucket: "",
messagingSenderId: "1053975609131",
appId: "1:1053975609131:web:1ac303be111e28ab"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<!-- External Javascript File -->
<script src="assets/app.js"></script>
</body>
</html>