-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (55 loc) · 2.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Neighborhood Map</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<nav>
<span id="closenav" onclick="toggleNav()">×</span>
<div id="search" class="form">
<p>Search for a place:</p>
<input id="search-text" class="text-input" type="text" placeholder="e.g. Pizza on North Side">
<input id="search-submit" class="button submit" type="button" onclick="searchPlaces()" value="Search">
<input class="button clear" type="button" onclick="clearSearch()" value="Clear">
</div>
<hr>
<div id="filter" class="form">
<p>Filter saved places by name or category:</p>
<input id="filter-text" class="text-input" type="text" placeholder="e.g. Sharetea or supermarket">
<input id="filter-submit" class="button submit" type="button" data-bind="click: filterPlaces" value="Filter">
<input class="button clear" type="button" data-bind="click: showAllPlaces" value="Clear">
</div>
<hr>
<div id="list">
<ul data-bind="foreach: savedPlaces">
<li data-bind="event: { mouseover: $root.highlightPlace($data),
mouseout: $root.undoHighlightPlace($data),
click: $root.getMarkerDetails($data) },
css: { highlighted: details.highlighted() === true,
selected: details.selected() === true },
visible: details.show()">
<div class="list-text">
<p id="list-name" data-bind="text: details.name"></p>
<p id="list-categories" data-bind="text: details.categoryString"></p>
</div>
<span id="delete-place" title="Delete" data-bind="click: $root.deletePlace($data)">×</span>
</li>
</ul>
</div>
</nav>
<main>
<header>
<span id="opennav" onclick="toggleNav()">☰</span>
</header>
<div id="map"></div>
</main>
<script src="js/libs/jquery-3.3.1.min.js"></script>
<script src="js/libs/knockout-3.4.2.js"></script>
<script src="js/app.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyA5poCbxa_NE_Jxm1A06ve5yd2-v2kqQa8&v=3&callback=initMap">
</script>
</body>
</html>