forked from hdkw/socialspeed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
99 lines (88 loc) · 3.59 KB
/
index.html
File metadata and controls
99 lines (88 loc) · 3.59 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
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Generalized speed calculator</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="http://andreruffert.github.io/rangeslider.js/assets/rangeslider.js/dist/rangeslider.css" rel="stylesheet">
<link href="app.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-6">
<div>
<input id="origin" name="origin" type="text" placeholder="Origin" class="form-control" />
</div>
<div>
<input id="destination" name="destination" type="text" placeholder="Destination" class="form-control" />
</div>
<div>
<select id="mode" name="mode" class="form-control">
<option value="" disabled selected>Select your mode</option>
<option value="DRIVING">Driving</option>
<option value="WALKING">Walking</option>
<option value="BICYCLING">Bicycling</option>
<option value="TRANSIT">Transit</option>
<option value="DRIVING_HITCH">Hitchhiking</option>
<option value="DRIVING_SHARE2">Rideshare 2 Persons</option>
<option value="DRIVING_SHARE3">Rideshare 3 Persons</option>
<option value="DRIVING_SHARE4">Rideshare 4 Persons</option>
<option value="DRIVING_SHARE5">Rideshare 5 Persons</option>
</select>
</div>
</div>
<div class="col-md-6">
<div>
<label for="hourly">Hourly wage : <span class="output" id="wageout">0</span>$</label>
<input name="hwage" id="wage" type="range" min="5" max="100" step="1" value="10">
</div>
<div class="spacer">
<div class="transport option driving">
<label for="cost">Cost of transport per Km : <span class="output" id="costout">0</span>$</label>
<input name="tcost" id="cost" type="range" min="0.1" max="10" step="0.1" value="1">
</div>
<div class="transport option walking">
walking
</div>
<div class="transport option bicycling">
bicycling
</div>
<div class="transport option transit">
<input id="transitprice" name="transitprice" type="text" placeholder="Price ($)" class="form-control" />
</div>
<div class="transport option driving_hitch">
<label for="cost">Waiting time : <span class="output" id="waintingout">0</span>min</label>
<input name="twaiting" id="waiting" type="range" min="0" max="180" step="1" value="0">
</div>
<div class="transport option driving_share2 driving_share3 driving_share4 driving_share5">
rideshare
</div>
</div>
</div>
</div>
<div class="row spacer">
<div class="col-md-12">
Generalized time: <span id="socialtime">0</span>min<br/>
Generalized speed: <span id="socialspeed">0</span>km/h
</div>
</div>
<div class="row spacer">
<div class="col-md-12">
<div id="outputDiv"></div>
</div>
</div>
<div class="row spacer">
<div class="col-md-12">
<div id="map-canvas"></div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="http://andreruffert.github.io/rangeslider.js/assets/rangeslider.js/dist/rangeslider.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&libraries=places"></script>
<script src="app.js"></script>
</body>
</html>