-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (68 loc) · 2.61 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<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>
<h1><a href="/" tabindex="1">Restaurant Reviews</a></h1>
</nav>
</header>
<main
id="maincontent"
role="main">
<section
role="application"
id="map-container">
<div id="map"></div>
</section>
<section>
<div class="filter-options">
<h2 tabindex="0" aria-labelledby="aria-filterresults-label" >Filter Results</h2>
<div class="form-container">
<div class="form-group">
<label for="neighborhoods-select">Select neighborhood</label>
<select tabindex="0" id="neighborhoods-select" name="neighborhoods" onchange="updateRestaurants()">
<option value="all">All Neighborhoods</option>
</select>
</div>
<div class="form-group">
<label for="cuisines-select">Select cuisine</label>
<select tabindex="0" id="cuisines-select" name="cuisines" onchange="updateRestaurants()">
<option value="all">All Cuisines</option>
</select>
</div>
</div>
</div>
<ul tabindex="0" id="restaurants-list" aria-labelledby="filter-results-list"></ul>
</section>
</main>
<!-- Register SW -->
<script>
window.addEventListener('load', function() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
.then(function(reg) {
// registration worked
console.log('Registration succeeded. Scope is ' + reg.scope);
}).catch(function(error) {
// registration failed
console.log('Registration failed with ' + error);
});
}
});
</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>
<!-- Google Maps -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDkV06KWTh709fFp4UpMCGPNNwYrrVbPNU&libraries=places&callback=initMap"></script>
<footer id="footer" aria-labelledby="aria-footer" tabindex="0">
Copyright (c) 2017 <a href="/"><strong>Restaurant Reviews</strong></a> All Rights Reserved.
</footer>
</body>
</html>