forked from udacity/mws-restaurant-stage-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestaurant.html
127 lines (120 loc) · 4.28 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
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#317EFB"/>
<link rel="manifest" href="/manifest.json">
<!-- 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">
<title>Restaurant Info</title>
</head>
<body class="inside">
<!-- Beginning header -->
<header>
<!-- Beginning nav -->
<nav role="navigation" aria-label="Home Navifation">
<h1>
<a href="/">Restaurant Reviews</a>
</h1>
<!-- Beginning breadcrumb -->
<ul id="breadcrumb" role="navigation" aria-label="Navigation Breadcrumb">
<li>
<a href="/">Home</a>
</li>
</ul>
<!-- End breadcrumb -->
</nav>
<!-- End nav -->
</header>
<!-- End header -->
<!-- Beginning main -->
<main id="maincontent">
<!-- Beginning map -->
<section id="map-container">
<div id="map" role="application" aria-label="Google Map"></div>
</section>
<!-- End map -->
<!-- Beginning restaurant -->
<section id="restaurant-container">
<p tabindex="0" id="restaurant-name"></p>
<img tabindex="0" id="restaurant-img">
<p tabindex="0" id="restaurant-cuisine"></p>
<p tabindex="0" id="restaurant-address"></p>
<table tabindex="0" id="restaurant-hours"></table>
</section>
<!-- end restaurant -->
<!-- Begin with Reviews Form-->
<section id="form-container">
<h3 class="form-name">Add Review</h3>
<form class="form_style" id="review-form">
<div class="row">
<div class="col-25">
<label for="review-author">Author:</label>
</div>
<div class="col-75">
<input id="review-author" name="name" type="text">
</div>
</div>
<div class="row">
<div class="col-25">
<label for="rating_select">Rating:</label>
</div>
<div class="col-75">
<select aria-label="Rating select" id="rating_select" name="Rating">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
</div>
<div class="row">
<div class="col-25">
<label for="review-comments">Comments:</label>
</div>
<div class="col-75">
<textarea id="review-comments" name="comments"></textarea>
</div>
</div>
<div class="row">
<div id="form-error"></div>
</div>
<br/>
<div class="row">
<button class="btn-submit" onclick="addReview()">Add Review</button>
</div>
</form>
</section>
<!-- end with Review Form-->
<!-- Beginning reviews -->
<section id="reviews-container">
<ul tabindex="0" id="reviews-list"></ul>
</section>
<!-- End reviews -->
</main>
<!-- End main -->
<!-- Beginning footer -->
<footer id="footer">
Copyright (c) 2017
<a aria-label="Home Link" href="/">
<strong>Restaurant Reviews</strong>
</a> All Rights Reserved.
</footer>
<!-- End footer -->
<!-- Beginning scripts -->
<!-- Database helpers -->
<script type="text/javascript" src="js/dbhelper.js"></script>
<!-- Main javascript file -->
<script type="text/javascript" src="js/restaurant_info.js"></script>
<!-- <script src="node_modules/echo-js/dist/echo.min.js"></script> -->
<!-- Google Maps -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCCzUMj6bqOPn9oFNWqaDLDliZ_Er5HKWE&libraries=places&callback=initMap"></script>
<!-- End scripts -->
<!-- <script>
echo.init();
</script> -->
</body>
</html>