-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestaurant.html
117 lines (108 loc) · 5.13 KB
/
restaurant.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="#207bbc">
<meta charset="utf-8">
<link rel="stylesheet" src="//normalize-css.googlecode.com/svn/trunk/normalize.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<link rel="manifest" href="./manifest.json">
<link rel="shortcut icon" href="./img/favicon.ico">
<link rel="canonical" href="./restaurant.html">
<title>Restaurant Info</title>
</head>
<body class="inside">
<header role="banner">
<a href="#restaurant-container" id="skip-button" role="button" tabindex="0" title="Skip to Main Content">Skip to Main Content</a>
<nav role="navigation">
<h1><a href="/" title="Restaurant Reviews">Restaurant Reviews</a></h1>
</nav>
<nav role="navigation" aria-label="Breadcrumbs">
<p id="breadcrumb-description">You are here</p>
<ul id="breadcrumb">
<li><a href="/" title="Home">Home</a></li>
</ul>
</nav>
</header>
<main role="main">
<section id="map-container">
<div id="map" role="application" aria-label="Map with restaurants"></div>
</section>
<section id="restaurant-container">
<div id="restaurant-header" tabindex="0">
<h2 id="restaurant-name"></h2>
<button type="button" id="favorite-button" title="Add to favorites" aria-label="Add to favorites">
<i class="far fa-heart"></i>
</button>
</div>
<figure role="presentation">
<img id="restaurant-img" alt="Restaurant">
<figcaption id="restaurant-cuisine"></figcaption>
</figure>
<p id="restaurant-address"></p>
<table id="restaurant-hours"></table>
</section>
<section>
<form id="form" role="form" aria-label="Add a Review" aria-describedby="form-description" tabindex="0">
<div id="form-container">
<h2 id="form-title">Add a Review</h2>
<p id="form-description">To add your own review, please enter your name, rating from 1 to 5 stars, and comments in this form.</p>
<div id="form-inputs-container">
<label for="form-name">Name</label>
<input type="text" id="form-name" name="name" aria-required="true" required>
<label for="form-rating">Rating</label>
<select id="form-rating" name="rating" aria-required="true" required>
<option value="" disabled selected hidden></option>
<option value="1">1 star</option>
<option value="2">2 stars</option>
<option value="3">3 stars</option>
<option value="4">4 stars</option>
<option value="5">5 stars</option>
</select>
<label for="form-comments">Comments</label>
<textarea id="form-comments" name="comments" rows="10" aria-required="true" required></textarea>
<div id="form-buttons-container">
<button id="form-reset-button" type="reset" name="reset-form">Reset</button>
<button id="form-submit-button" type="submit" name="submit-form" onclick="submitReview()">Submit</button>
</div>
</div>
</div>
</form>
</section>
<section id="reviews-container">
<h2>Reviews</h2>
<ul id="reviews-list"></ul>
</section>
</main>
<footer id="copyright" role="contentinfo">
Copyright (c) 2018 <a href="/" aria-describedby="copyright" title="Restaurant Reviews"><strong>Restaurant Reviews</strong></a></br>All Rights Reserved
</footer>
<script type="application/javascript" charset="utf-8" src="js/idb.js"></script>
<script type="application/javascript" charset="utf-8" src="js/dbhelper.js"></script>
<script type="application/javascript" charset="utf-8" src="js/restaurant_info.js"></script>
<script type="application/javascript" charset="utf-8" src="js/lazysizes.js"></script>
<script async type="application/javascript" charset="utf-8" src="js/register.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyByOElG6Eai0CEZ27dYL5Vw6NzJOt9FZAc&libraries=places&callback=initMap"></script>
<script>
const loadDeferredCSS = () => {
const stylesLink = document.createElement("link");
stylesLink.rel = "stylesheet";
stylesLink.type = "text/css";
stylesLink.href = "./css/styles.css";
const head = document.getElementsByTagName('head')[0];head.appendChild(stylesLink);
};
const raf = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
if (raf) {
raf(() => {
window.setTimeout(loadDeferredCSS, 0);
});
} else {
window.addEventListener('load', loadDeferredCSS);
}
</script>
<noscript>
<link rel="stylesheet" type="text/css" href="./css/styles.css"/>
</noscript>
</body>
</html>