-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDirection.html
177 lines (151 loc) · 6.69 KB
/
Direction.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home</title>
<!-- Google/Custom font -->
<link href='http://fonts.googleapis.com/css?family=Lato:400,100,100italic,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Playfair+Display:400,700,900,400italic,700italic,900italic' rel='stylesheet' type='text/css'>
<!-- Bootstrap css -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Font awesome css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<!-- Favicons -->
<link rel="apple-touch-icon-precomposed" href="img/apple-touch-icon-precomposed.png">
<link rel="shortcut icon" type="image/png" href="img/favi-con.png"/>
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<header class="header_area" style="background-color: white;">
<div class="header_bottom">
<div class="container">
<div class="main_header">
<div class="row">
<div class="col-md-3 col-sm-2">
<div class="logo">
<a href="index.html"><img src="img/logo1.png" alt="Site Logo"></a>
</div>
</div>
<div class="col-md-9 col-sm-10 nav_area">
<nav class="main_menu">
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.html">Home</a></li>
<li><a href="accommodation.html">Accommodation</a></li>
<li><a href="Facilities&Services.html">Facilities</a></li>
<li><a href="Location&ContactUs.html">ContactUs</a></li>
<li><a href="Reservation.html">Reservation</a></li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
</header>
<section>
<div class="container">
<div class="back_nav">
<div class="col-sm-5">
<h2>Contact Us</h2>
</div>
<div class="col-sm-7">
<ul class="text_a_r" style="text-align: right;">
<li><a href="index.html">Home</a></li>
<li>OUR LOCATION</li>
</ul>
</div>
</div>
</div>
</section>
<div style="width: 100%; height:80%;">
<div id="map"></div>
</div>
<footer class="footer_area">
<div class="footer_bottom">
<div class="container">
<div class="row">
<div class="col-sm-4">
<p>© 2017 Lotus Hotel. All rights reserved</p>
</div>
<div class="col-sm-8">
<nav class="footer_menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="accommodation.html">Accommodation</a></li>
<li><a href="Facilities&Services.html">Facilities</a></li>
<li><a href="Location&ContactUs.html">ContactUs</a></li>
<li><a href="Reservation.html">Reservation</a></li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</footer>
<script>
// Note: This example requires that you consent to location sharing when
// prompted by your browser. If you see the error "The Geolocation service
// failed.", it means you probably did not give permission for the browser to
// locate you.
var map, infoWindow;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 3.519863, lng:101.538116},
zoom: 15
});
infoWindow = new google.maps.InfoWindow;
// Try HTML5 geolocation.
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var pos = {
lat: position.coords.latitude,
lng: position.coords.longitude
};
var marker = new google.maps.Marker({
position: pos,
map: map,
title: 'Our Location'
});
var infowindow = new google.maps.InfoWindow({
content: marker
});
infoWindow.open(map,marker);
infoWindow.setContent('Our Current Location');
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.');
infoWindow.open(map);
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC_T-ViJ7PTwpIstemwjrkmB6WN7oJvYrk&callback=initMap">
</script>
</body>
</html>