forked from udacity/mws-restaurant-stage-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
restaurant.html
69 lines (66 loc) · 2.85 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
<!DOCTYPE html>
<html lang="EN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="Description" content="Mobile Web Specialist - Stage 3">
<meta name="theme-color" content="#317EFB"/>
<link rel="icon" href="img/favicon.ico" type="image/ico" sizes="16x16">
<link rel="manifest" href="manifest.json"/>
<link rel="stylesheet" src="https://normalize-css.googlecode.com/svn/trunk/normalize.css"/>
<link rel="stylesheet" as="style" href="css/styles.css" type="text/css">
<title>Restaurant Info</title>
</head>
<body class="inside">
<header>
<nav>
<h1><a href="/">Restaurant Reviews</a></h1>
</nav>
<ul id="breadcrumb" role="navigation" aria-label="breadcrumb">
<li><a href="/">Home</a></li>
</ul>
</header>
<main id="maincontent">
<section id="map-container">
<div id="map" role="application"></div>
</section>
<section id="restaurant-container">
<input type="hidden" name="restaurant-id" id="restaurant-id">
<button id="isFavorite" onclick="favoriteRestaurant()">Favorite</button>
<h2 id="restaurant-name"> </h2>
<img id="restaurant-img" src="https://via.placeholder.com/350x150">
<p id="restaurant-cuisine"> </p>
<p id="restaurant-address"> </p>
<table id="restaurant-hours"> </table>
</section>
<section id="reviews-container">
<ul id="reviews-list"></ul>
</section>
<section id="review-container">
<h3>Submit your review</h3>
<form action="javascript:void(0);" id="review_form">
<div>
<label for="reviewer-name">Name:</label>
<input id="reviewer-name" type="text" placeholder="your name" required>
</div>
<div>
<label for="rating">Rate:</label>
<input id="rating" type="number" min="1" max="5" required value="3">
</div>
<label for="review">Write your review:</label><br/>
<textarea name="review" id="review" cols="10" rows="10" placeholder="I love it"> </textarea>
<div>
<button id="send_review" onclick="sendReview()">Send</button>
</div>
</form>
</section>
</main>
<footer id="footer">
Copyright © 2018 <a href="/"><strong>Restaurant Reviews</strong></a> All Rights Reserved.
</footer>
<script type="text/javascript" src="js/dbhelper.js"></script>
<script type="text/javascript" src="js/restaurant_info.js"></script>
<script type="application/javascript" charset="utf-8" src="js/lazysizes.min.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAPrO5N-Jgzd9UmwkPypioamztINnsy6yA&libraries=places&callback=initMap"></script>
</body>
</html>