forked from udacity/mws-restaurant-stage-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (68 loc) · 2.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#317EFB"/>
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="manifest" href="/restaurants/manifest.json">
<link rel="stylesheet" src="//normalize-css.googlecode.com/svn/trunk/normalize.css" />
<link rel="stylesheet" href="css/styles.css">
<title>Restaurant Reviews</title>
</head>
<body>
<header>
<nav role="navigation" aria-label="Home Navigation">
<h1><a aria-label="Restaurant Reviews" href="/">Restaurant Reviews</a></h1>
<button style="font-size:15px;position: absolute;top: 15px;right: 30px;" onclick="toggleMap()" title="Toggle Restaurants map" id="toggleMap">🌎</button>
</nav>
</header>
<main id="maincontent">
<section id="map-container" >
<div style="display: none;" id="map" role="application" aria-label="Google Map"></div>
</section>
<section>
<div class="filter-options">
<h2>Filter Results</h2>
<select id="neighborhoods-select" aria-label="Select Neighbourhood" name="neighborhoods" onchange="updateRestaurants()">
<option value="all">All Neighborhoods</option>
</select>
<select id="cuisines-select" name="cuisines" aria-label="Select Cuisine" onchange="updateRestaurants()">
<option value="all">All Cuisines</option>
</select>
</div>
<ul id="restaurants-list"></ul>
</section>
</main>
<script type="application/javascript" charset="utf-8" src="js/dbhelper.js"></script>
<script type="application/javascript" charset="utf-8" src="js/main.js"></script>
<!-- <script src="node_modules/echo-js/dist/echo.min.js"></script> -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCCzUMj6bqOPn9oFNWqaDLDliZ_Er5HKWE&libraries=places&callback=initMap"></script>
<!-- <script>
echo.init({
callback: function(element, op) {
if(op === 'load') {
element.classList.add('loaded');
} else {
element.classList.remove('loaded');
}
}
});
</script> -->
<footer id="footer">
Copyright (c) 2017 <a aria-label="Home Link" href="/"><strong>Restaurant Reviews</strong></a> All Rights Reserved.
</footer>
<script>
var isShown = false;
toggleMap = ()=>{
if(!isShown){
document.getElementById("map").style.display = "block";
isShown = true;
}
else{
document.getElementById("map").style.display = "none"
isShown = false;
}
}
</script>
</body>
</html>