forked from udacity/mws-restaurant-stage-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (77 loc) · 3.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/icons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<title>Restaurant Reviews</title>
<!-- Icons -->
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
<link rel="mask-icon" href="/icons/safari-pinned-tab.svg" color="#da532c">
<link rel="shortcut icon" href="/icons/favicon.ico">
<!-- Manifest -->
<link rel="manifest" href="manifest.webmanifest">
<!-- Roboto Font -->
<link rel="preload" href="https://fonts.googleapis.com/css?family=Roboto:400,500" onload="this.rel='stylesheet'">
<!-- Normalize.css for better cross-browser consistency -->
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css" onload="this.rel='stylesheet'" />
<!-- Main CSS file -->
<link rel="preload" as="style" href="css/styles.css" onload="this.rel='stylesheet'">
</head>
<body class="page page--index">
<a href="#restaurants-section" class="u-skip-link" tabindex="1">Skip to main content</a>
<header class="c-header">
<h1 id="logo" class="c-header__brand">
<img src="svg/star.svg" alt="" />
<a href="/">Restaurant Reviews</a>
</h1>
</header>
<main id="maincontent" class="c-main c-main--hide-map">
<section id="map-container" class="c-main__map" role="application">
<div id="map" class="c-map"></div>
</section>
<section id="restaurants-section" class="c-main__restaurant-list">
<div class="c-filters">
<div class="o-container">
<div class="c-filters__inner">
<h2 class="c-filters__title">Filter Results</h2>
<div class="c-filters__form">
<select id="neighborhoods-select" name="neighborhoods" aria-label="Neighborhoods filter" onchange="updateRestaurants()">
<option value="all">All Neighborhoods</option>
</select>
<select id="cuisines-select" name="cuisines" aria-label="Cuisines filter" onchange="updateRestaurants()">
<option value="all">All Cuisines</option>
</select>
</div>
</div>
</div>
</div>
<div class="o-container">
<div id="restaurants-list" class="c-restaurants"></div>
</div>
</section>
</main>
<footer class="c-footer">
Copyright (c) 2018 <a href="/"><strong>Restaurant Reviews</strong></a> All Rights Reserved.
</footer>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('./sw.js').then(function(registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>
<!-- Beginning scripts -->
<!-- Main javascript file -->
<script async defer src="dist/index.js"></script>
</body>
</html>