-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (65 loc) · 2.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Neighborhood Map</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.0/knockout-min.js"></script>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
<div id="mySidenav" class="sidenav">
<span style="display:block">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<input id="places-search" class="search-field" type="text" data-bind="value: searchPlace ,valueUpdate: 'afterkeydown', event: { keyup: mrkers }" placeholder="Enter the place to search">
</span>
<br><br>
<ul id="myUL" type="none">
<!-- ko foreach: markers -->
<!--ko if: visiblity -->
<br> <li class="list-location" data-bind="text: title.toUpperCase(), click: $parent.showWindow"> <br>
<!-- /ko -->
<!-- /ko -->
</ul>
</div>
<div id="main">
<div class="fluid-container">
<div id="nbh-map" class="row">
<span onclick="openNav()"><i class="material-icons">menu</i>
<h3>Neighborhood Map</h3>
</span>
</div>
<div row>
<div id="map" class="col-md-12"></div>
</div>
</div>
</div>
<script>
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {
lat: 28.5677,
lng: 77.2433,
},
draggable: true,
styles: styles,
zoom: 11
});
ko.applyBindings(new viewModel());
}
function errorMap(){
window.alert("Ooops! Something went wrong with google maps API")
};
</script>
<script src="js/map-style.js"></script>
<script src="js/map-data.js"></script>
<script src="js/app.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDFGG_lPHLHiWYZI1tFo9zmMReVB6QmYNE&v=3&callback=initMap" onerror="errorMap()">
</script>
</body>
</html>