-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
190 lines (167 loc) · 7.97 KB
/
Copy pathindex.html
File metadata and controls
190 lines (167 loc) · 7.97 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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!-- Tucker Miles 2020 -->
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!-- Material Design CSS -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/mdb.min.css">
<link rel="stylesheet" href="node_modules/mdbootstrap/css/style.css">
<!-- Just sets background color -->
<style type="text/css">
body {
background: #b8f2e6 !important;
}
/* Changing Table Border Color */
/* https://stackoverflow.com/questions/30573978/what-is-the-best-way-to-change-the-border-color-of-a-bootstrap-table */
.table th {
border: gray solid 1px !important;
}
.table td {
border: gray solid 1px !important;
}
</style>
</head>
<body>
<div class="container col-lg-6">
<!-- Source Input -->
<div class="form-group">
<label class="h3">Source:</label>
<input type="text" class="form-control m-2" id="source" placeholder="Enter Source" />
</div>
<!-- Destination Input -->
<div class="form-group">
<label class="h3">Destinations:</label>
<input type="text" class="form-control m-2" id="destination0" placeholder="Enter Destination 1" />
<input type="text" class="form-control m-2" id="destination1" placeholder="Enter Destination 2" />
<input type="text" class="form-control m-2" id="destination2" placeholder="Enter Destination 3" />
<input type="text" class="form-control m-2" id="destination3" placeholder="Enter Destination 4" />
<input type="text" class="form-control m-2" id="destination4" placeholder="Enter Destination 5" />
<input type="text" class="form-control m-2" id="destination5" placeholder="Enter Destination 6" />
<input type="text" class="form-control m-2" id="destination6" placeholder="Enter Destination 7" />
<input type="text" class="form-control m-2" id="destination7" placeholder="Enter Destination 8" />
</div>
<label class="h3" for="usr">Additional Parameters</label>
<!-- Departure Time Input -->
<div class="form-group row">
<label for="example-time-input" class="col-2 col-form-label">Depart</label>
<div class="col-10">
<input class="form-control" type="time" value="00:00:00" id="timeinput1">
</div>
</div>
<!-- Arrival Time Input -->
<div class="form-group row">
<label for="example-time-input" class="col-2 col-form-label">Arrive</label>
<div class="col-10">
<input class="form-control" type="time" value="00:00:00" id="timeinput2">
</div>
<small class="col-10 text-muted">Enter either a departure time or a destination time, but not both. Departure time
must be current time or later.</small>
</div>
<div class="row m-2">
<!-- Travel Type Radios -->
<label for="set1" class=''>Travel Type: </label>
<div class="form-group col-sm-2" id="set1">
<!-- Default checked -->
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="drivingradio" name="radioset1" checked>
<label class="custom-control-label" for="drivingradio">Driving</label>
</div>
<!-- Default unchecked -->
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="walkingradio" name="radioset1">
<label class="custom-control-label" for="walkingradio">Walking</label>
</div>
<!-- Default unchecked -->
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="cyclingradio" name="radioset1">
<label class="custom-control-label" for="cyclingradio">Cycling</label>
</div>
</div>
<!-- Units Radios -->
<label for="set2" class=''>Units:</label>
<div class="form-group col-sm-2" id="set2">
<!-- Default checked -->
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="imperialradio" name="radioset2" checked>
<label class="custom-control-label" for="imperialradio">Imperial</label>
</div>
<!-- Default unchecked -->
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="metricradio" name="radioset2">
<label class="custom-control-label" for="metricradio">Metric</label>
</div>
</div>
<!-- Avoid Checkboxes -->
<div class="form-group col-sm-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="avoidtollscheck">
<label class="form-check-label" for="avoidtollscheck">
Avoid Tolls
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="avoidhighwayscheck">
<label class="form-check-label" for="avoidhighwayscheck">
Avoid Highways
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="avoidferriescheck">
<label class="form-check-label" for="avoidferriescheck">
Avoid Ferries
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="avoidindoorcheck">
<label class="form-check-label" for="avoidindoorcheck">
Avoid Indoor
</label>
</div>
</div>
</div>
<!-- Submit -->
<button type="button" id="button" class="btn btn-info btn-lg col text-center">Submit</button>
<!-- Empty container where the table will be inserted upon submit -->
<div class="container" id="table">
</div>
<!-- Footer with my name -->
<div id="footer">
<div class="container text-center">
<p class="text-muted credit" style="color:#fff">Tucker Miles 2020</p>
</div>
</div>
<!-- Bootstrap JS -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"></script>
<!-- Material Design JS -->
<script type="text/javascript" src="node_modules/mdbootstrap/js/jquery.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/popper.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="node_modules/mdbootstrap/js/mdb.min.js"></script>
<!-- jsPDF -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js"
integrity="sha384-NaWTHo/8YCBYJ59830LTz/P4aQZK1sS0SneOgAvhsIl3zBu8r9RevNg5lHCHAuQ/"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/jspdf-autotable@3.5.6/dist/jspdf.plugin.autotable.js"></script>
<!-- My scripts -->
<script src="config.js"></script>
<script type="module" src="pdfgen.js"></script>
<script type="module" src="main.js"></script>
</body>
</html>