-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (98 loc) · 4.74 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Firebase Train Schedule</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="./assets/images/favicon.png" />
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/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">
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/styles.css" />
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="https://www.gstatic.com/firebasejs/5.3.0/firebase.js"></script>
<script src="./assets/js/scripts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.js"></script>
</head>
<body>
<div class="container">
<!-- =====TITLE===== -->
<div class="jumbotron jumbotron-fluid mb-0 rounded-bottom">
<div class="container">
<h1 class="display-4 text-center">Firebase Train Schedule</h1>
<p class="lead text-center">Complete form to append train shedule.<br>The current time is <span id="current-time-span"></span></p>
</div>
</div>
<!-- =====FORM FIELD===== -->
<div class="row lead">
<div class="col-lg-12">
<br>
<div class="card">
<div class="card-header">
<strong>Add Train</strong>
</div>
<div class="card-body">
<form role="form col-3">
<!-- =====TRAIN NAME===== -->
<div class="form-group">
<label for="name">Train Name</label>
<input type="text" class="form-control" id="name">
</div>
<!-- =====DESTINATION===== -->
<div class="form-group">
<label for="destination">Destination</label>
<input type="text" class="form-control" id="destination">
</div>
<!-- =====TIME===== -->
<div class="form-group">
<label for="time">First Arrival Time (HHMM 24 Hour Time)</label>
<input type="number" class="form-control" id="time">
</div>
<!-- =====FREQUENCY===== -->
<div class="form-group">
<label for="rate">Frequency (In Minutes)</label>
<input type="number" class="form-control" id="frequency">
</div>
<!-- =====SUBMIT/CLEAR===== -->
<button type="button" class="btn btn-default" id="submit">
Submit
</button>
<button type="button" class="btn btn-default" id="clear">
Clear
</button>
</form>
</div>
</div>
</div>
</div>
<!-- =====CURRENT SCHEDULE===== -->
<div id="schedule" class="row lead">
<div class="col-lg-12">
<br>
<div class="card">
<div class="card-header">
<strong>Current Schedule</strong>
</div>
<div class="card-body pl-0 pr-0">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Train Name</th>
<th scope="col">Destination</th>
<th scope="col">Frequency</th>
<th scope="col">Next Arrival</th>
<th scope="col">Minutes Away</th>
</tr>
</thead>
<!-- =====TABLE BODY===== -->
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>