-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
89 lines (87 loc) · 4.51 KB
/
main.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/3.4.1/firebaseui.css" />
<link rel='stylesheet' href='assets/css/style.css'>
</head>
<body>
<!-- <div id="firebaseui-auth-container"></div> -->
<div class='container'>
<div class="jumbotron text-center">
<h1 class="display-4 text-primary">Train Scheduler</h1>
<p class="lead">All Aboard the Hype Train</p>
</div>
<div class='row'>
<div class='col-lg-12'>
<h6 class='text-secondary'>Current User:</h6>
</div>
</div>
<div class='row mx-0 px-0 mb-3' id='row_user_info'>
<div class='col-lg-1 px-0'>
<img src='assets/images/user-placeholder.jpg' id='img_user_photo'>
</div>
<div class='col-lg-1 lg-mr-5 lg-pt-4 pt-0'>
<h6 id='out_username'></h6>
<h6 id='out_user_email'></h6>
<h6 id='signout' class='text-primary'>Sign out</h6>
</div>
</div>
<div class="card">
<div class="card-header bg-secondary text-white">
Current Train Schedule (Updates Automatically Every 30 seconds)
</div>
<div class="card-body">
<table class="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">Remove</th>
</tr>
</thead>
<tbody id='table_body'>
</tbody>
</table>
</div>
</div>
<div class="card mt-4 mb-4">
<div class="card-header bg-secondary text-white">
Add a Train:
</div>
<div class="card-body">
<form>
<div class="form-group">
<label for="in_name">Name:</label>
<input type="text" class="form-control" id="in_name">
</div>
<div class="form-group">
<label for="in_role">Destination:</label>
<input type="text" class="form-control" id="in_destination">
</div>
<div class="form-group">
<label for="in_start_date">First Train Time: (HH:mm - military time):</label>
<input type="text" class="form-control" id="in_first_train_time">
</div>
<div class="form-group">
<label for="in_start_date">Frequency:</label>
<input type="number" class="form-control" id="in_frequency" min='1'>
</div>
<button type="submit" class="btn btn-primary" id='btn_submit'>Submit</button>
</form>
</div>
</div>
</div>
<!-- Firebase App is always required and must be first -->
<script src="https://www.gstatic.com/firebasejs/5.5.7/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/firebaseui/3.4.1/firebaseui.js"></script>
<script src="https://cdn.jsdelivr.net/momentjs/2.12.0/moment.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src='assets/js/Train.js'></script>
<script src='assets/js/app.js'></script>
</body>
</html>