forked from udacity/mws-restaurant-stage-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
restaurant-not-critical.html
120 lines (114 loc) · 5.76 KB
/
restaurant-not-critical.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
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#003175">
<meta name="description" content="Reviews of the best restaurants if New York">
<link rel="manifest" href="/manifest.json">
<link src="//normalize-css.googlecode.com/svn/trunk/normalize.css">
<link rel="stylesheet" src="https://normalize-css.googlecode.com/svn/trunk/normalize.css">
<!-- Main CSS file -->
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/media-queries.css">
<link rel="stylesheet" href="css/snackbar.min.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ==" crossorigin="">
<link rel="preconnect" href="http://localhost:1337">
<title>Restaurant Info</title>
</head>
<body class="inside">
<a class="hidden" href="#maincontent">Skip to main content</a>
<!-- Beginning header -->
<header>
<!-- Beginning nav -->
<nav>
<h1><a href="/">Restaurant Reviews</a></h1>
</nav>
<!-- Beginning breadcrumb -->
<ul id="breadcrumb" role="navigation" aria-label="Breadcrumb">
<li><a href="/">Home</a></li>
</ul>
<!-- End breadcrumb -->
<!-- End nav -->
</header>
<!-- End header -->
<!-- Beginning map -->
<aside id="map-container" aria-hidden="true">
<div id="map" aria-label="Map" role="application"></div>
</aside>
<!-- Beginning main -->
<main id="maincontent">
<!-- End map -->
<div>
<!-- Beginning restaurant -->
<section id="restaurant-container">
<h2 id="restaurant-name" tabindex="0"></h2>
<picture id="restaurant-img-picture" tabindex="0"></picture>
<p id="restaurant-cuisine" tabindex="0"></p>
<p id="restaurant-address" tabindex="0"></p>
<table id="restaurant-hours" tabindex="0"></table>
<form id="fav--form" style="margin-top: 10px;">
<input id="toggle--fav" type="checkbox" name="is_favourite" value="true">
<label for="toggle--fav">Mark as favourite</label>
</form>
</section>
<!-- end restaurant -->
<!-- Beginning reviews -->
<section id="reviews-container">
<h3>Reviews</h3>
<form action="http://localhost:1337/reviews/" method="post" id="review--form">
<fieldset>
<legend>Add a review</legend>
<div class="form--row">
<label for="name">Your name:</label><br>
<input id="name" type="text" name="name" required>
</div>
<div class="form--row">
<fieldset class="starability-basic">
<legend>Default star rating:</legend>
<input type="radio" id="rate1" name="rating" value="1" required>
<label for="rate1" title="Terrible">1 star</label>
<input type="radio" id="rate2" name="rating" value="2" required>
<label for="rate2" title="Not good">2 stars</label>
<input type="radio" id="rate3" name="rating" value="3" required>
<label for="rate3" title="Average">3 stars</label>
<input type="radio" id="rate4" name="rating" value="4" required>
<label for="rate4" title="Very good">4 stars</label>
<input type="radio" id="rate5" name="rating" value="5" required>
<label for="rate5" title="Amazing">5 stars</label>
</fieldset>
</div>
<div class="form--row">
<label for="review">Enter your review:</label><br>
<textarea id="review" name="comments"></textarea>
</div>
<input id="restaurant_id" type="hidden" name="restaurant_id" value="">
<div class="form--row">
<button type="submit">Post</button>
</div>
</fieldset>
</form>
<ul id="reviews-list"></ul>
</section>
<!-- End reviews -->
</div>
<div id="offline--state" hidden role="alert">You are offline</div>
</main>
<!-- End main -->
<!-- Beginning footer -->
<footer id="footer">
Copyright (c) 2017 <a href="/"><strong>Restaurant Reviews</strong></a> All Rights Reserved.
</footer>
<!-- End footer -->
<script defer src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw==" crossorigin=""></script>
<!-- Beginning scripts -->
<!-- Database helpers -->
<script src="js/idb.js"></script>
<script src="js/dbhelper.js"></script>
<!-- Main javascript file -->
<script src="js/common.js"></script>
<script src="js/restaurant_info.js"></script>
<!-- Google Maps -->
<!-- <script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA_tKbW6A5pQ-eupxI56myUnHLqYCzOjKo&libraries=places&callback=initMap"></script> -->
<!-- End scripts -->
</body>
</html>