-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
47 lines (47 loc) · 2.17 KB
/
home.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="home.css">
<title>Delivery</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://rawgit.com/caolan/async/master/lib/async.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCpSSHy2RLV7562BeqzPEoVt5FfFDk3AtY&sensor=false&callback=initMap"></script>
<script src="home.js"></script>
</head>
<body>
<div id="map">
</div>
<div id="single_distance">
Origin:<br><input type="text" id="origin" value="San Francisco, CA"><br>
Destination:<br><input type="text" id="dest" value="Champaign, IL"><br><br>
<button onclick="computeInput()">Submit</button>
</div>
<div id="generate_people">
Number of People:<br><input type="number" id="people" value="2"><br>
<h5>Home Addresses:</h5>
Minumum Latitude:<br><input type="number" id="min_lat" value="40.083963"><br>
Minimum Longitude:<br><input type="number" id="min_lon" value="-88.295229"><br>
Maximum Latitude:<br><input type="number" id="max_lat" value="40.108947"><br>
Maximum Longitude:<br><input type="number" id="max_lon" value="-88.276631"><br><br>
<h5>Work Addresses:</h5>
Parking Lot 1:<br><input type="text" id="parking1" value="Krannert Center for the Performing Arts"><br>
Parking Lot 2:<br><input type="text" id="parking2" value="Grainger Engineering Library"><br>
Parking Lot 3:<br><input type="text" id="parking3" value="Aerodynamics Research Library"><br>
<button onclick="createPeople()">Create People</button>
</div>
<div id="delivery_inputs">
<h4>Delivery to Homes</h4>
<h5>Generate People First!</h5>
Warehouse Address:<br><input type="text" id="warehouse" value="Peoria, IL"><br>
<button onclick="perform_home_delivery()">Perform Delivery</button>
</div>
<div id="outputs">
<p id="total_distance"></p><br>
<p id="total_duration"></p>
<p id="responses"></p>
<p id="people_array"></p>
</div>
<p display="hidden" id="temp1"></p><br>
<p display="hidden" id="temp2"></p>
</body>
</html>