-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (47 loc) · 2.03 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Map</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/app.css">
<!--响应式、字体-->
</head>
<body>
<!-- All the icon/bg pictures used in this project were drawn by myself. -->
<div class="container">
<div class="leftBar width30" id="mySidenav">
<!-- 开关侧边栏按钮 -->
<div class="sidebarButton">
<a href="javascript:void(0)" onclick="changeNav()">
<img src="img/menu.svg" alt="openButton">
</a>
</div>
<!-- 左侧内容 -->
<div class="padding20">
<h1>Find Food Nearby</h1>
<p class="notes">   Click the listed travel destinations, or type its name below to find food suggestions.</p>
<!--输入框-->
<input type="search" placeholder="Search for names..." data-bind="textInput:filterText">
<!--列表-->
<ul class="placeOfInterests" data-bind="foreach: matchedPlaceList">
<li data-bind="text: title, click: clickMarker"></li>
</ul>
<!--按钮:隐藏餐馆Marker-->
<input id="hide_restaurants" type="button" value="Clear Restaurants">
</div>
</div>
<!--地图-->
<div id="map" class="left330"></div>
</div>
<!--js-->
<script type='text/javascript' src='js/knockout-3.4.2.js'></script>
<script type='text/javascript' src='js/sidebar.js'></script>
<script type='text/javascript' src='js/app.js'></script>
<script type='text/javascript' src='js/data.js'></script>
<script type='text/javascript' src='js/viewModel.js'></script>
<script type='text/javascript' src="js/yelp.js"></script>
<script async defer src= "https://maps.googleapis.com/maps/api/js?libraries=places,geometry,drawing&key=AIzaSyCKpklxpk9j9nVut_L-0jqlrd70HqV0AWk&v=3&callback=initMap" onerror="googleError()">
</script>
</body>
</html>