-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (90 loc) · 4.66 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Train Schedule</title>
<link rel="shortcut icon" href="assets/images/train-station.png">
<!-- Bootstrap CDN-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<!-- jQuery -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
</head>
<body>
<!-- Jumbotron Title -->
<div class="jumbotron" style="border:none; background: black;">
<h1 class="text-center">Jackson Square Train Station</h1>
<h3 class="text-center">"Daily Schedule"</h3>
<br>
<!-- Display the current time -->
<div>
<h3 id="nowTime" class="text-center"></h3>
</div>
</div>
<!-- Main Container -->
<section class="container" style="width: 92%;max-width: 1960px;">
<!-- A row for the train input and schedule -->
<div class="row justify-content-center">
<!-- The first column for the form -->
<div class ="col-8 col-md-3">
<!-- The new train input form -->
<div class="card-body">
<!-- Sign-up Form (note the various input "types")-->
<form role="form">
<div class="form-group row">
<label for="name-input">Train Name:</label>
<input class="form-control" id="name-input" type="text">
</div>
<div class="form-group row">
<label for="dest-input">Destination:</label>
<input class="form-control" id="dest-input" type="text">
</div>
<div class="form-group row">
<label for="time-input">First Train Time (HH:mm):</label>
<input class="form-control" id="time-input" type="time">
</div>
<div class="form-group row">
<label for="min-input">Frequency (min):</label>
<input class="form-control" id="min-input" type="text">
</div>
<button class="btn btn-block myblock" id="add-train" type="submit">Submit</button>
</form>
</div>
</div>
<!-- A second column for the train table -->
<div class ="col-12 col-md-9 align-self-center table-responsive">
<!-- Train table with all current trains updated every minute -->
<table class="table table-striped table-dark table-hover" style="text-align:center;border: 2px solid black;margin-top:25px;">
<thead>
<tr>
<th scope="col">Train Name</th>
<th scope="col">Destination</th>
<th scope="col">1st Train</th>
<th scope="col">Frequency (min)</th>
<th scope="col">Next Arrival</th>
<th scope="col">Minutes Away</th>
<th scope="col">Control</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<!-- A giphy from API -->
<div class="row" id="gifrow">
</div>
</section>
<!-- Script -->
<!-- Firebase Reference -->
<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/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/momentjs/2.12.0/moment.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.12.0/firebase.js"></script>
<script type="text/javascript" src="assets/javascript/app.js"></script>
</body>
</html>