index.ejs
2.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <% include ../partials/header %> -->
</head>
<!-- Homepage -->
<body>
<div class="container-fluid">
<div class="jumbotron text-center">
<h1>Safe Routes</h1>
<p>The best way to find the safest routes.</p>
</div>
<!--What are for and type for?-->
<!-- current submit button takes you to the landing page -->
<form action="/landing">
<!-- First text field and label above the text field for current location -->
<div class="form-group text-center">
<label for="currentLocation">From</label>
<input type="currentLocation" class="form-control" placeholder="Enter Current Location">
</div>
<!-- Second text field and label above the text field for destination -->
<div class="form-group text-center">
<label for="destination">To</label>
<input type="destination" class="form-control" placeholder="Enter Destination">
</div>
<!-- First travel option button, walking
This contains a row that holds buttons of type button. Buttons are highlighted upon selection.
-->
<div class="row">
<button type="button" class="btn-default img-thumbnail col-xs-4">
<img class="img-responsive" src="images/pedestrian-walking.svg" alt="Walking Option" width="40" height="40">
</button>
<!-- Second travel button, driving -->
<button type="button" class="btn-default img-thumbnail col-xs-4">
<img class="img-responsive" src="images/car-compact.svg" alt="Walking Option" width="40" height="40">
</button>
<!-- Third travel button, bus -->
<button type="button" class="btn-default img-thumbnail col-xs-4" onclick="javascript:autofill();">
<img class="img-responsive" src="images/bus.svg" alt="Walking Option" width="40" height="40">
</button>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary btn-space">Go</button>
</div>
</form>
</div>
</body>
</html>