forked from udacity/mws-restaurant-stage-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (76 loc) · 2.84 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Restaurant Reviews</title>
<meta name="description" content="Restaurant Reviews - Review your favorite restaurant">
<meta name="keywords" content="restaurant, reviews, progressive web app, image responsive">
<!--Mobile Web Friendly-->
<meta name="mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<!--Mobile Theme Header-->
<meta name="theme-color" content="#f3f3f3">
<!--FAVICON-->
<link rel="shortcut icon" href="/favicon.ico">
<!--CUSTOM STYLE-->
<link rel="stylesheet" src="//normalize-css.googlecode.com/svn/trunk/normalize.css" />
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<header>
<nav>
<h1>
<a href="/">Restaurant Reviews</a>
</h1>
</nav>
</header>
<main id="maincontent">
<section id="map-container">
<section id="map-container" aria-labelledby="map-aria-description" role="application">
<div id="map"></div>
</section>
<label id="map-aria-description" class="map-aria-description">Google map application</label>
<section>
<div class="filter-options">
<h2>Filter Results</h2>
<select id="neighborhoods-select" name="neighborhoods" onchange="updateRestaurants()" aria-labelledby="neighborhoods-label">
<option value="all">All Neighborhoods</option>
</select>
<label id="neighborhoods-label" class="filter-label">by neighborhoods</label>
<select id="cuisines-select" name="cuisines" onchange="updateRestaurants()" aria-labelledby="cuisines-label">
<option value="all">All Cuisines</option>
</select>
<label id="cuisines-label" class="filter-label">by cuisines</label>
</div>
<ul id="restaurants-list"></ul>
</section>
</main>
<footer id="footer">
Copyright (c) 2018
<a href="/">
<span>
<strong id="company-name">Restaurant Reviews</strong>
</span>
</a>
All Rights Reserved.
</footer>
<!-- Beginning scripts -->
<script>
if('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js', { scope: '/' })
.then(function(registration) {
console.log('Service Worker Registered');
});
navigator.serviceWorker.ready.then(function(registration) {
console.log('Service Worker Ready');
});
}
</script>
<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 async defer src="https://maps.googleapis.com/maps/api/js?libraries=places&callback=initMap"></script>
<!-- End scripts -->
</body>
</html>