forked from udacity/mws-restaurant-stage-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestaurant.html
74 lines (74 loc) · 3.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#194b6d"/>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css" media="screen">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ==" crossorigin=""/>
<link rel="stylesheet" href="css/styles.css" type="text/css" media="screen">
<link rel="manifest" href="manifest.json">
<link rel="dns-prefetch" href="//localhost:1337">
<title>Restaurant Info</title>
</head>
<body class="inside">
<header>
<nav>
<h1><a href="/">Restaurant Reviews</a></h1>
</nav>
<ul id="breadcrumb" aria-label="Breadcrumb">
<li><a href="/" aria-current="page">Home</a></li>
</ul>
</header>
<main id="maincontent">
<section id="map-container" tabindex="-1" aria-hidden="true">
<div id="map" role="application"></div>
</section>
<section id="restaurant-container">
<h1 id="restaurant-name"></h1>
<button id="add-to-favorites" class="add-to-favorites"><span class="label">Add to favorites</span></button>
<img id="restaurant-img" src="" alt="">
<p id="restaurant-cuisine"></p>
<p id="restaurant-address"></p>
<table id="restaurant-hours">
<caption>Opening Times</caption>
</table>
</section>
<section id="reviews-container">
<div id="notification" aria-live="polite"></div>
<ul id="reviews-list"></ul>
<form id="review-form" action="" method="post">
<fieldset>
<legend>Your Review</legend>
<input type="hidden" name="restaurant_id" id="restaurant_id" value="" required>
<label for="name">Name</label>
<input type="text" name="name" id="name" required>
<p>Rating</p>
<input type="radio" name="rating" id="star1" value="1" required>
<label for="star1">1 Star</label>
<input type="radio" name="rating" id="star2" value="2">
<label for="star2">2 Stars</label>
<input type="radio" name="rating" id="star3" value="3">
<label for="star3">3 Stars</label>
<input type="radio" name="rating" id="star4" value="4">
<label for="star4">4 Stars</label>
<input type="radio" name="rating" id="star5" value="5">
<label for="star5">5 Stars</label>
<br>
<label for="comments">Comments</label>
<textarea name="comments" id="comments" required></textarea>
<input class="button" type="submit" value="Submit">
</fieldset>
</form>
</section>
</main>
<footer id="footer">
Copyright (c) 2018 <a href="/"><strong>Restaurant Reviews</strong></a> All Rights Reserved.
</footer>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw==" crossorigin=""></script>
<script src="js/idb.js"></script>
<script src="js/dbhelper.js"></script>
<script src="js/app.js"></script>
<script src="js/restaurant_info.js"></script>
</body>
</html>