forked from vivianhtlee/76_hackUST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·448 lines (406 loc) · 24.1 KB
/
index.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
<!DOCTYPE html>
<html class="no-js">
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" type="image/png" href="images/favicon.png">
<title>Explore a different HK</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
================================================== -->
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Template CSS Files
================================================== -->
<!-- Twitter Bootstrs CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Ionicons Fonts Css -->
<link rel="stylesheet" href="css/ionicons.min.css">
<!-- animate css -->
<link rel="stylesheet" href="css/animate.css">
<!-- Hero area slider css-->
<link rel="stylesheet" href="css/slider.css">
<!-- owl craousel css -->
<link rel="stylesheet" href="css/owl.carousel.css">
<link rel="stylesheet" href="css/owl.theme.css">
<link rel="stylesheet" href="css/jquery.fancybox.css">
<!-- template main css file -->
<link rel="stylesheet" href="css/main.css">
<!-- responsive css -->
<link rel="stylesheet" href="css/responsive.css">
<!-- Template Javascript Files
================================================== -->
<!-- modernizr js -->
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
<!-- jquery -->
<!--<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>-->
<script src="js/jquery.min.js"></script>
<!-- owl carouserl js -->
<script src="js/owl.carousel.min.js"></script>
<!-- bootstrap js -->
<script src="js/bootstrap.min.js"></script>
<!-- wow js -->
<script src="js/wow.min.js"></script>
<!-- slider js -->
<script src="js/slider.js"></script>
<script src="js/jquery.fancybox.js"></script>
<!-- template main js -->
<script src="js/main.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDjTNEDoH-L8d6MIMxc1E4vv4AYAA5wVsw&v=3.exp&sensor=false&libraries=places"></script>
<style>
#menubar{
position: relative;
top:21px;
}
</style>
</head>
<body>
<div id="map" style="display:none;"></div>
<!--
==================================================
Header Section Start
================================================== -->
<header id="top-bar" class="navbar-fixed-top animated-header">
<div class="container">
<div class="navbar-header">
<!-- responsive nav button -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- /responsive nav button -->
<!-- logo -->
<div class="navbar-brand">
<a href="index.html" >
<img src="images/logo.png" style="height:40px" alt="">
</a>
</div>
<!-- /logo -->
</div>
<!-- main menu -->
<nav id = "menubar" class="collapse navbar-collapse navbar-right" role="navigation">
<div class="main-menu">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="index.html" >Home</a>
</li>
<li><a href="upload.html">Upload</a></li>
<li><a href="preference.html">Preference</a></li>
<!--<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Pages <span class="caret"></span></a>
<div class="dropdown-menu">
<ul>
<li><a href="404.html">404 Page</a></li>
<li><a href="gallery.html">Gallery</a></li>
</ul>
</div>
</li>-->
<!--<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Blog <span class="caret"></span></a>
<div class="dropdown-menu">
<ul>
<li><a href="blog-fullwidth.html">Blog Full</a></li>
<li><a href="blog-left-sidebar.html">Blog Left sidebar</a></li>
<li><a href="blog-right-sidebar.html">Blog Right sidebar</a></li>
</ul>
</div>
</li>-->
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
<!-- /main nav -->
</div>
</header>
<!--
==================================================
Global Page Section Start
================================================== -->
<section class="global-page-header">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="block">
<!--<h2>Contact</h2>-->
<!--<ol class="breadcrumb">
<li>
<a href="index.html">
<i class="ion-ios-home"></i>
Home
</a>
</li>
<li class="active">Contact</li>
</ol>-->
</div>
</div>
</div>
<div class="row">
<div class="col-md-3">
</div>
<div class="col-md-6">
<div class="center-block">
<h2 class="subtitle wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".3s">Where are you heading for?</h2>
<!--<p class="subtitle-des wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".5s">
We will find you the best places to stop by along your jouranay.
</p>-->
<div class="contact-form">
<form id="theForm" >
<div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".6s">
<input type="text" placeholder="Starting point" class="form-control" name="start" id="startingPoint">
</div>
<div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".8s">
<input type="text" placeholder="Destination" class="form-control" name="destination" id="endPoint">
</div>
<!--<div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".8s">
<input type="email" placeholder="Your Email" class="form-control" name="email" id="email" >
</div>
<div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay="1s">
<input type="text" placeholder="Subject" class="form-control" name="subject" id="subject">
</div>
<div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay="1.2s">
<textarea rows="6" placeholder="Message" class="form-control" name="message" id="message"></textarea>
</div>-->
<!--<fieldset class="form-group">
<h4>Any preferred tunnel?</h4>
<div class="form-check">
<label class="form-check-label">
<input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios1" value="option1" checked>
None
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios2" value="option2">
Cross-Harbour Tunnel
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios3" value="option2">
Eastern Harbour Tunnel
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios4" value="option2">
Western Harbour Tunnel
</label>
</div>
</fieldset>-->
<select class="form-control form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay="1s" id="tunnel">
<option>No preferred tunnel</option>
<option>Cross-harbour tunnel</option>
<option>Eastern harbour tunnel</option>
<option>Western harbour tunnel</option>
</select>
<br>
<div id="submit" class="wow fadeInDown text-center" data-wow-duration="500ms" data-wow-delay="1.4s">
<input type="submit" id="contact-submit" class="btn btn-default btn-send " style="color:rgb(85,60,144); padding:10px 30px;" value="GO">
</div>
<br>
</form>
</div>
</div>
</div>
<div class="col-md-3">
</div>
</div>
</section><!--/#page-header-->
<!--
==================================================
Contact Section Start
================================================== -->
<section id="contact-section">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="map-area">
<h2 class="subtitle wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".3s">Find Us</h2>
<p class="subtitle-des wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".5s">
Si aute quis eu proident o cupidatat ne anim nescius, et est praesentibus, o quorum vidisse expetendis, nostrud eram quibusdam ad nam nostrud ubi.
</p>
<div class="map">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3651.277552998015!2d90.3678744!3d23.773128800000002!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3755c0ae4adf3cb9%3A0x7f2cf443b764e4a4!2sShishu+Mela!5e0!3m2!1sen!2s!4v1435516022247" width="100%" height="400" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
<div class="row address-details">
<div class="col-md-3">
<div class="address wow fadeInLeft" data-wow-duration="500ms" data-wow-delay=".3s">
<i class="ion-ios-location-outline"></i>
<h5>125 , Kings Street,Melbourne <br>United Kingdom,600562</h5>
</div>
</div>
<div class="col-md-3">
<div class="address wow fadeInLeft" data-wow-duration="500ms" data-wow-delay=".5s">
<i class="ion-ios-location-outline"></i>
<h5>125 , Kings Street,Melbourne <br>United Kingdom,600562</h5>
</div>
</div>
<div class="col-md-3">
<div class="email wow fadeInLeft" data-wow-duration="500ms" data-wow-delay=".7s">
<i class="ion-ios-email-outline"></i>
<p>[email protected]<br>[email protected]</p>
</div>
</div>
<div class="col-md-3">
<div class="phone wow fadeInLeft" data-wow-duration="500ms" data-wow-delay=".9s">
<i class="ion-ios-telephone-outline"></i>
<p>+07 052 245 022<br>+07 999 999 999</p>
</div>
</div>
</div>
</div>
</section>
<!--
==================================================
Call To Action Section Start
================================================== -->
<section id="call-to-action">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="block">
<h2 class="title wow fadeInDown" data-wow-delay=".3s" data-wow-duration="500ms">INTERESTED IN WORKING TOGETHER? ?</h1>
<p class="wow fadeInDown" data-wow-delay=".5s" data-wow-duration="500ms">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis,</br>possimus commodi, fugiat magnam temporibus vero magni recusandae? Dolore, maxime praesentium.</p>
<a href="contact.html" class="btn btn-default btn-contact wow fadeInDown" data-wow-delay=".7s" data-wow-duration="500ms">Contact With Me</a>
</div>
</div>
</div>
</div>
</section>
<!--
==================================================
Footer Section Start
================================================== -->
<footer id="footer">
<div class="container">
<div class="col-md-8">
<p class="copyright">Copyright: <span>2015</span> . Design and Developed by <a href="http://www.Themefisher.com">Themefisher</a></p>
</div>
<div class="col-md-4">
<!-- Social Media -->
<ul class="social">
<li>
<a href="#" class="Facebook">
<i class="ion-social-facebook"></i>
</a>
</li>
<li>
<a href="#" class="Twitter">
<i class="ion-social-twitter"></i>
</a>
</li>
<li>
<a href="#" class="Linkedin">
<i class="ion-social-linkedin"></i>
</a>
</li>
<li>
<a href="#" class="Google Plus">
<i class="ion-social-googleplus"></i>
</a>
</li>
</ul>
</div>
</div>
</footer> <!-- /#footer -->
<script type="text/javascript">
function initialize() {
var currentStartlocation;
var startPoint = document.getElementById('startingPoint');
var startAutocomplete = new google.maps.places.Autocomplete(startPoint);
var endPoint = document.getElementById('endPoint');
var endAutocomplete = new google.maps.places.Autocomplete(endPoint);
var geocoder = new google.maps.Geocoder();
google.maps.event.addListener(startAutocomplete, 'place_changed', function () {
var startPlace = startAutocomplete.getPlace();
var location = "Address: " + startPlace.formatted_address + "<br/>";
location += "Latitude: " + startPlace.geometry.location.lat() + "<br/>";
location += "Longitude: " + startPlace.geometry.location.lng();
});
google.maps.event.addListener(endAutocomplete, 'place_changed', function () {
var endPlace = endAutocomplete.getPlace();
var location2 = "Address: " + endPlace.formatted_address + "<br/>";
location2 += "Latitude: " + endPlace.geometry.location.lat() + "<br/>";
location2 += "Longitude: " + endPlace.geometry.location.lng();
});
$("#theForm").submit(function(e){
event.preventDefault();
var startLat;
var startLng;
try{
startLat = startAutocomplete.getPlace().geometry.location.lat();
startLng = startAutocomplete.getPlace().geometry.location.lng();
}catch(err){
startLat = currentStartlocation.lat();
startLng = currentStartlocation.lng();
}
var endLat = endAutocomplete.getPlace().geometry.location.lat();
var endLng = endAutocomplete.getPlace().geometry.location.lng();
var url = "path.html?start_lat="+startLat+"&&start_lng="+startLng+"&&end_lat="+endLat+"&&end_lng="+endLng;
window.location.href = url;
});
var map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -34.397, lng: 150.644},
zoom: 6
});
var infoWindow = new google.maps.InfoWindow({map: map});
// Try HTML5 geolocation.
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var pos = {
lat: position.coords.latitude,
lng: position.coords.longitude
};
var latlng = {lat: pos.lat, lng: pos.lng};
console.log(latlng);
geocoder.geocode( {'location': latlng}, function(results, status)
{
if (status == google.maps.GeocoderStatus.OK)
{
map.setCenter(results[1].geometry.location);//center the map over the result
//place a marker at the location
$("#startingPoint").val(results[0].formatted_address);
currentStartlocation = results[0].geometry.location;
console.log(currentStartlocation);
var marker = new google.maps.Marker(
{
map: map,
position: results[0].geometry.location
});
} else {
alert('Geocode was not successful for the following reason: ' + status);
}
});
infoWindow.setPosition(pos);
infoWindow.setContent('Location found.');
map.setCenter(pos);
}, function() {
handleLocationError(true, infoWindow, map.getCenter());
});
} else {
// Browser doesn't support Geolocation
handleLocationError(false, infoWindow, map.getCenter());
}
function handleLocationError(browserHasGeolocation, infoWindow, pos) {
infoWindow.setPosition(pos);
infoWindow.setContent(browserHasGeolocation ?
'Error: The Geolocation service failed.' :
'Error: Your browser doesn\'t support geolocation.');
}
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
</body>
</html>