-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
287 lines (261 loc) · 13.5 KB
/
index.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place this data between the <head> tags of your website -->
<title>eatery note | Welcome</title>
<meta name=" description"
content="eatery-app is a simple service that provides reviews of restaurants around you." />
<!--Tab icon-->
<link rel="icon" href="./assets/icons/eaterynoteLogo.png">
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:title" content="eatery note | Welcome">
<meta name="twitter:description"
content="eatery-app is a simple service that provides reviews of restaurants around you." <meta
name="twitter:creator" content="@author_handle">
<meta name="twitter:image" content="./assets/imgs/seo.PNG">
<!-- Open Graph data for Facebook-->
<meta property="og:title"
content="eatery-app is a simple service that provides reviews of restaurants around you." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://noutijo.github.io" />
<meta property="og:image" content="./assets/imgs/seo.PNG" />
<meta property="og:description"
content="eatery-app is a simple service that provides reviews of restaurants around you." />
<meta property="og:site_name" content="eatery note | Welcome" />
<meta property="fb:admins" content="Facebook numeric ID" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<!-- Font CSS -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet">
<!--FontAwesome for icons-->
<link rel="stylesheet" type="text/css"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans&display=swap" rel="stylesheet">
<!-- animate CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<!-- Custum CSS -->
<link rel="stylesheet" href="./assets/css/index.css">
</head>
<body>
<!-- Modal restaurant-->
<div class="modal fade" id="staticBackdropRestau" data-backdrop="static" data-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel"> <i class="fa fa-map"></i> Add new
Restaurant</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div id="addRestauError"> Check your entries.</div>
<div class="form-group">
<label for="exampleFormControlInput1">Restauant name:</label>
<input id="restaurantName" class="form-control form-control-lg" type="text"
placeholder="Restauant name">
</div>
<div class="form-group">
<label for="exampleFormControlInput1">Restauant Address:</label>
<input id="restaurantAddreess" class="form-control form-control-lg" type="text"
placeholder="Restauant Address">
</div>
</form>
</div>
<div class="modal-footer">
<button id="AddNewRestaurantButton" type="button" style="background-color:#0c1324; border: none;"
class="btn btn-primary">Add Restaurant</button>
</div>
</div>
</div>
</div>
<!-- Modal comment-->
<div class="modal fade" id="staticBackdrop" data-backdrop="static" data-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel"> <i class="fa fa-comment"></i> Add new comment</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div id="addCommentError"> You've to enter the comment in textarea below.</div>
<div class="form-group">
<label for="exampleFormControlSelect1">Rating:</label>
<select class="form-control" id="userRating">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1">Comment:</label>
<textarea class="form-control" id="userComment" rows="3"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button id="AddNewCommentButton" type="button" style="background-color:#0c1324; border: none;"
class="btn btn-primary">Add Comment</button>
</div>
</div>
</div>
</div>
<!-- Navbar -->
<nav id="navbar_top" class="navbar navbar-expand-lg make-navbar-bg">
<a class="navbar-brand" href="https://eatery-note.netlify.app">
<img width="50" height="50" src="./assets/icons/eaterynoteLogo.png" alt="noutijoLogo"
class="img-fluid" /></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<!-- i class="fa fa-bars" style="color:#fff; font-size:24px;"></i -->
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav text-lg-center">
<li class="nav-item active">
</ul>
</div>
</nav>
<!-- body -->
<div class="container-fluid mt-3 mb-3 main main-part">
<div class="row">
<div class="col-12 col-md-12 col-lg-9">
<div id="map"> </div>
</div>
<div class="col-12 col-md-12 col-lg-3">
<div class="row">
<div class="col-12">
<div class="row">
<diiv class="col-4 mt-5 mt-lg-3 mt-4">
<div class="form-group">
<label for="exampleFormControlSelect1">Min</label>
<select class="form-control" id="minRate">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
</diiv>
<diiv class="col-4 mt-5 mt-lg-3 mt-4">
<div class="form-group">
<label for="exampleFormControlSelect1">Max</label>
<select class="form-control" id="maxRate">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
</diiv>
<diiv class="col-6 col-lg-4 mt-lg-5 mt-lg-6">
<button type="submit" class="btn btn-primary btn-sort" onclick="sortRestaurent()"><i
class="fa fa-undo"></i></button>
</diiv>
<div class="col-12">
<div class="row ml-2 ml-lg-0 mr-2" id="restaurantsList"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="container-fluid footer mt-3">
<div class="row">
<div class="col-12 col-lg-1"></div>
<div class="col-12 col-md-12 col-lg-10 my-5">
<div class="row">
<div class="col-12 col-md-1 col-lg-2"></div>
<div class="col-12 my-2 col-md-3 col-lg-4">Copyright ©
<script>
document.write(new Date().getFullYear());
</script> EATERY NOTE <span class="hearts">♥</span> by <a target="_blank" href="#">
@eateryNote</a>
</div>
<div class="col-12 my-2 text-left col-md-3 col-lg-2">
<h6>Follow us</h6>
<p><a href="#"><i class="fa fa-instagram mr-2"></i></a></p>
<p><a href="#"><i class="fa fa-facebook mr-2"></i></a></p>
<p><a href="#"><i class="fa fa-twitter mr-2"></i></a></p>
</div>
<div class="col-12 text-left col-md-3 col-lg-2">
<p><img width="100" height="100" src="./assets/icons/eaterynoteLogo.png" alt="noutijoLogo"
class="img-fluid"></p>
</div>
<div class="col-12 col-md-1 col-lg-2"></div>
</div>
</div>
<div class="col-12 col-lg-1"></div>
</div>
</div>
<!-- toast noticed that user can add new restaurant-->
<div class="container text-center">
<div class="row text-center">
<div id="toast-info" class="toast toast-info animate__animated animate__fadeInDown animate__delay-2s shadow"
role="alert" aria-live="assertive" aria-atomic="true" data-autohide=false data-animate=true>
<div class="toast-header">
<i class="fa fa-note mr-2"></i>
<strong class="mr-auto">Note that</strong>
<small></small>
<button style="outline-style: none;" type="button" class="ml-2 mb-1 close" data-dismiss="toast"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="toast-body">
You can add your own restaurant anywhere on the map using the right click of your mouse or hold on
the map if you are
using another device.
</div>
</div>
</div>
</div>
<!-- toast success add restaurant or comment-->
<div id="toast-sucessRestau" role="alert" aria-live="assertive" aria-atomic="true"
class="toast hide toast-sucessRestau animate__animated animate__fadeInDown animate__delay-0.5s shadow"
data-autohide="true" data-animation="true" data-delay="7000">
<div class="toast-header">
<strong class="mr-auto">Success added</strong>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="toast-body">
<img width="50" heigh="50" class="img-fluid" src="./assets/icons/success.gif" alt="" srcset="">
</div>
</div>
</body>
<!-- -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=`YOUR API KEY`&libraries=places&callback=init"
type="text/javascript">
</script>
<script src="./assets/js/List.js"></script>
<script src="./assets/js/Restaurant.js"></script>
<script src="./assets/js/MapContent.js"></script>
<script src="./assets/js/index.js"></script>
</html>