-
Notifications
You must be signed in to change notification settings - Fork 0
/
erasmus-trip.html
175 lines (169 loc) · 9.39 KB
/
erasmus-trip.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<meta name="author" content="Paul Pidou">
<link href='bootstrap/css/bootstrap.min.css' media="screen" rel='stylesheet' type='text/css' />
<link href='bootstrap/font-awesome/css/font-awesome.min.css' media="screen" rel='stylesheet' type='text/css' />
<link href='layout.css' rel='stylesheet' type='text/css' />
<link rel='shortcut icon' type='image/png' href='../../favicon.png' />
<title>Post-Erasmus Trip Project</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body role="document">
<div class="container" id="left-panel">
<div class="page-header text-uppercase text-center"><span class="glyphicon glyphicon-globe" aria-hidden="true"></span> Post-Erasmus Trip Project</div>
<div id="search-panel">
<input id="pac-input" type="text" class="form-control" placeholder="Add a location">
<div id="mode-selector" class="btn-group btn-group-justified controls" role="group" data-toggle="buttons">
<div class="btn-group" role="group">
<label class="btn btn-default active" style="width: 75%;border-top-left-radius:0px" id="changemode-driving">
<input type="radio" name="travel-mode" value="car" checked="checked"><span class="fa fa-car"></span>
</label>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="width: 25%;padding-left:8%;padding-right:8%;">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a href="#" id="toll">Avoid tolls <span class="glyphicon glyphicon-ok pull-right"></span></a></li>
<li><a href="#" id="highway">Avoid highways <span class="glyphicon glyphicon-ok pull-right"></span></a></li>
</ul>
</div>
<div class="btn-group" role="group">
<label class="btn btn-default" style="border-top-right-radius:0px" id="changemode-transit">
<input type="radio" name="travel-mode" value="transit"><span class="fa fa-plane"> <span class='fa fa-train'></span> <span class='fa fa-bus'></span> <span class='fa fa-ship'></span>
</label>
</div>
</div>
<div id="search-warning" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body alert alert-warning">
<p class="text-center"></p>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div id="route-warning" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body alert alert-danger">
<p class="text-center"><span class="glyphicon glyphicon-exclamation-sign"></span> Unable to find a route. Try another travel mode!</p>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<h3>Places</h3>
<div id="waypoints" class="list-group"><p class="text-center">Add some places to visit!</p></div>
<button id="submit" type="submit" class="btn btn-default disabled">Go</button>
</div>
<div id="directions-panel">
<ul class="nav nav-tabs nav-justified">
<li role="presentation" class="active"><a id="tab_cheapest" href="#cheapest"><span class="glyphicon glyphicon-euro"></span></a></li>
<li role="presentation"><a href="#fatest"><span class="glyphicon glyphicon-time"></span></a></li>
<li role="presentation"><a href="#shortest"><span class="glyphicon glyphicon-resize-small"></span></a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="cheapest">
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
<div class="heading"></div>
<div class="routes list-group"></div>
</div>
<div role="tabpanel" class="tab-pane" id="fatest">
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
<div class="heading"></div>
<div class="routes list-group"></div>
</div>
<div role="tabpanel" class="tab-pane" id="shortest">
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
<div class="heading"></div>
<div class="routes list-group"></div>
</div>
</div>
</div>
<div id="gmap_response">
<div class="page-header text-center">
<h3>Summary</h3>
</div>
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
<div class="gmap-content">
<div class="heading"></div>
<div class="routes list-group"></div>
</div>
</div>
<div class="footer text-center">
<a href="https://github.com/PaulPidou/Post-Erasmus-Trip-ATSP-solver" target="_blank"><span class="fa fa-github fa-3x"></span></a><a href="#" data-toggle="modal" data-target="#info"><span class="fa fa-info-circle fa-3x"></span></a><small>Developed by Paul Pidou</small>
<div class="modal fade" id="info" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel"><span class="fa fa-info-circle"></span> About the project</h4>
</div>
<div class="modal-body">
<p class="text-justify">
Hi everyone, I'm Paul, I'm 22 and I came back from my Erasmus in Rome a few months ago.
As most of the Erasmus I really enjoyed this experience and I miss the people I met during it as soon as I came back home.
I wanted to find an easy (and cheap) way to meet them back so I decided to develop this tool in order to help me to schedule my next trips around Europe!
I hope you will find it useful :)
</p>
<h3 class="text-left">Usage</h3>
<p class="text-justify">
To add location to visit, you simply have to search for it thanks to the input field and clic on the place you want on the list.
Once added, a place can be set as <strong>start</strong> and/or <strong>end</strong> point of the trip or it can be removed.
You can choose between two modes: <strong>car</strong> or <strong>transit</strong>.
</p>
<h4 class="text-left">Car mode</h4>
<p class="text-justify">
By selecting the car mode, you would be able to select if you want avoid <strong>highways</strong> and/or <strong>tolls</strong> thanks to the dropdown menu.
Once you have added the places you want to visit, just clic on <strong>'Go'</strong> and the fatest road will be automatically displayed after few seconds.
</p>
<h4 class="text-left">Transit mode</h4>
<p class="text-justify">
In the transit mode, once you have added the places you want to visit, just clic on <strong>'Go'</strong> and it will automatically displayed three tabs after few seconds.
The tabs contains the <strong>cheapest</strong>, <strong>fatest</strong> and <strong>shortest</strong> roads found.
<small class="pull-right">The prices displayed are just indicative!</small>
</p>
<h3 class="text-left">More details</h3>
<p class="text-justify">
You can obtain more details about a specific road just by clicking on the corresponding summary.
</p>
<blockquote class="blockquote-reverse">
"Moments shared here will never return so let's seize them!"
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="map"></div>
<script type="text/javascript" src="../../js/jQuery.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/handleAPI.js"></script>
<script type="text/javascript" src="js/atsp.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=[API-KEY]&libraries=places&callback=initMap" async defer></script>
</body>
</html>