forked from udacity/mws-restaurant-stage-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrestaurant.html
More file actions
126 lines (114 loc) · 5.14 KB
/
restaurant.html
File metadata and controls
126 lines (114 loc) · 5.14 KB
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
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Normalize.css for better cross-browser consistency -->
<link rel="stylesheet" src="//normalize-css.googlecode.com/svn/trunk/normalize.css" />
<!-- Main CSS file -->
<link rel="stylesheet" href="css/styles.css" type="text/css">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css" integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
crossorigin="" />
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#252831">
<link rel="icon" type="image/png" href="img/icon/icon-48_x_48.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Restaurant Info</title>
</head>
<body class="inside">
<div id="network-offline" class="network offline hidden">
<p>
You are offline!
</p>
<button onclick="document.getElementById('network-offline').classList.toggle('hidden')">Dismiss</button>
</div>
<div id="network-online" class="network online hidden">
<p>
Reconnected! Refresh the page?
</p>
<button onclick="location.reload()">Refresh</button>
<button onclick="document.getElementById('network-online').classList.toggle('hidden')">Dismiss</button>
</div>
<!-- Beginning header -->
<header>
<!-- Beginning nav -->
<nav>
<h1>
<a href="/">Restaurant Reviews</a>
</h1>
</nav>
<!-- Beginning breadcrumb -->
<ul id="breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<li>
<div>
<a href="/">Home</a>
</div>
</li>
</ul>
<label id="breadcrumb-label" class="breadcrumb-label">Breadcrumb</label>
<!-- End breadcrumb -->
<!-- End nav -->
</header>
<!-- End header -->
<!-- Beginning main -->
<main id="maincontent">
<!-- Beginning restaurant -->
<section id="restaurant-container">
<h1 id="restaurant-name"></h1>
<div>
<button id="restaurant-favorite" class="favorite" role="switch"></button>
</div>
<p id="restaurant-address" aria-labelledby="restaurant-address-label"></p>
<label id="restaurant-address-label">Address of the restaurant</label>
<!-- Beginning map -->
<section id="map-container">
<div id="map"></div>
</section>
<!-- End map -->
<div>
<img id="restaurant-img">
</div>
<p id="restaurant-cuisine"></p>
<table id="restaurant-hours" aria-labelledby="restaurant-hours-label"></table>
<label id="restaurant-hours-label">Opening hours of the restaurant</label>
</section>
<!-- end restaurant -->
<!-- Beginning reviews -->
<section id="reviews-container">
<h2>Reviews</h2>
<ul id="reviews-list"></ul>
<form id="new-review-form" method="post" class="new-review">
<div>
<h3>Add review</h3>
</div>
<input type="text" placeholder="Your name" name="name" id="name" class="new-review reviewer" required>
<label for="name">Your name</label>
<input type="number" min="1" max="5" placeholder="Rating" name="rating" id="rating" class="new-review rating" required>
<label for="rating">Rating</label>
<textarea rows="5" placeholder="Comments" name="comments" id="comments" class="new-review comments" required></textarea>
<label for="comments">Comments</label>
<button type="submit" class="new-review submit">Add review</button>
</form>
</section>
<!-- End reviews -->
</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 src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js" integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw=="
crossorigin=""></script>
<!-- Beginning scripts -->
<script type="application/javascript" charset="utf-8" src="js/idb.js"></script>
<script type="application/javascript" charset="utf-8" src="js/private.js"></script>
<script type="application/javascript" charset="utf-8" src="js/idbhelper.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/register.js"></script>
<!-- End scripts -->
</body>
</html>