-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreview.html
119 lines (110 loc) · 4.5 KB
/
review.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>EatMOJI | Review</title>
<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<!-- bootstrap -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy"
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css"
/>
<!-- firebase -->
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/ui/4.8.1/firebase-ui-auth.js"></script>
<link
type="text/css"
rel="stylesheet"
href="https://www.gstatic.com/firebasejs/ui/4.8.1/firebase-ui-auth.css"
/>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-storage.js"></script>
<!-- other libraries and stylesheet -->
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<header id="main-header" class="container">
<nav></nav>
</header>
<main class="flex-grow-1 w-75 mx-auto pb-5 mx-auto">
<h1>
Review for
<span id="restaurant-name-here">restaurant name</span>:
</h1>
<form>
<div class="card-body">
<p>Rate your overall experience:</p>
<span class="material-icons star" id="star1"
>star_outline</span
>
<span class="material-icons star" id="star2"
>star_outline</span
>
<span class="material-icons star" id="star3"
>star_outline</span
>
<span class="material-icons star" id="star4"
>star_outline</span
>
<span class="material-icons star" id="star5"
>star_outline</span
>
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1"
>What did you think of the restaurant?</label
>
<textarea
class="form-control"
id="description"
rows="3"
></textarea>
</div>
<div class="d-flex justify-content-end mt-2 gap-2">
<button
type="button"
class="btn btn-lg btn-outline-danger pull-right"
onclick="clearFields()"
>
Abort
</button>
<button
type="button"
class="btn btn-lg btn-primary pull-right"
onclick="writeReview()"
>
Submit
</button>
</div>
</form>
</main>
<footer class="fixed-bottom"></footer>
<!-- Scripts -->
<script src="scripts/firebaseAPI_DTC08.js"></script>
<script src="scripts/loadSkeleton.js"></script>
<script src="scripts/review.js"></script>
</body>
</html>