-
Notifications
You must be signed in to change notification settings - Fork 591
/
feedback.html
264 lines (234 loc) · 9.82 KB
/
feedback.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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-pUA-Compatible" content="ie=edge" />
<title>Star Rating</title>
<link rel="icon" type="image/x-icon" href="favicon.ico"/>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style_.css">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="feedback.css">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<!-- FontAwsome-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
<style>
.circle {
position: absolute;
width: 25px;
height: 25px;
border-radius: 50%;
pointer-events: none;
background: radial-gradient(circle, rgba(71, 240, 255, 0.3), rgba(0, 119, 255, 0.3));
transition: transform 0.1s, left 0.1s, top 0.1s;
}
.circle-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
}
@media screen and (max-width: 768px){
.circle-container {
display: none;
}
}
</style>
<script src="Theme.js" defer></script>
</head>
<body>
<div class="circle-container">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
circles.forEach(function (circle) {
circle.x = 0;
circle.y = 0;
});
window.addEventListener("mousemove", function (e) {
coords.x = e.pageX;
coords.y = e.pageY - window.scrollY; // Adjust for vertical scroll position
});
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
circle.style.left = `${x - 12}px`;
circle.style.top = `${y - 12}px`;
circle.style.transform = `scale(${(circles.length - index) / circles.length})`;
const nextCircle = circles[index + 1] || circles[0];
circle.x = x;
circle.y = y;
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});
requestAnimationFrame(animateCircles);
}
animateCircles();
});
</script>
<header class="registration-header">
<div class="nav-container" id="top">
<nav class="newNav">
<div style="display: flex; flex-direction: row; align-items: center;">
<img src="favicon.ico" class="sitelogo">
<a href="#" class="nav__logo" data-aos="fade-right">Tourguide<span>.</span></a>
</div>
<ul class="navLinks">
<li class="link" data-aos="fade-down"><a href="./index.html" >Home</a></li>
<li class="link" data-aos="fade-down"><a href="about.html" >AboutUs</a></li>
<li class="link" data-aos="fade-down"><a href="index.html#Destinations" >Destinations</a></li>
<li class="link" data-aos="fade-down"><a href="index.html#trip" >Pricing</a></li>
<li class="link" data-aos="fade-down"><a href="index.html#ReviewGallery" >Trip Gallery</a></li>
<li class="link" data-aos="fade-down"><a href="index.html#testimo" >Testimonials</a></li>
<li class="link" data-aos="fade-down"><a href="#">Rate Us?</a></li>
<li class="link" data-aos="fade-down"><a href="index.html#cnt-form" >Contact Us</a></li>
</ul>
<a href="./newLogin.html" class="contact-btn"><button class="btn" id="btn-style"
style="margin: 0; box-shadow:1.5px 1.5px 6px red;" data-aos="fade-down">Login</button></a>
<div class="toggle-container" data-aos="fade-down">
<input id="themeToggle" class="toggle" type="checkbox">
</div>
<div class="hamburger" data-aos="fade-down">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
</nav>
</div>
</header>
<div class="sidebyside">
<div class="image">
<!-- <img src="./img/rateus.jpg"></img> -->
</div>
<div class="container">
<div class="glassmorphism-container">
<h1 class="feedback-heading">Rate Our Service</h1><hr>
<!-- <div class="stars" id="stars-container"> -->
<!-- Stars will be added dynamically using JavaScript -->
<!-- </div> -->
<p>How easy was it to navigate through the website?</p>
<div class="rate">
<div class="stars" id="navEase-stars-container"></div>
<p id="navEase-rating-text">Rating: 0</p>
</div><hr>
<p>How much straightforward and easy was the booking process</p>
<div class="rate">
<div class="stars" id="bookingProcess-stars-container"></div>
<p id="bookingProcess-rating-text">Rating: 0</p>
</div><hr>
<p>Did the payment options meet your needs? Were you comfortable with the security measures in place?</p>
<div class="rate">
<div class="stars" id="paymentOptions-stars-container"></div>
<p id="paymentOptions-rating-text">Rating: 0</p>
</div><hr>
<p>How responsive and helpful was the customer support team?</p>
<div class="rate">
<div class="stars" id="customerSupport-stars-container"></div>
<p id="customerSupport-rating-text">Rating: 0</p>
</div><hr>
<p>How much would you recommend this travel website to others?</p>
<div class="rate">
<div class="stars" id="recommendation-stars-container"></div>
<p id="recommendation-rating-text">Rating: 0</p>
</div><hr>
<p>If you've taken a package tour from this website, how was the overall experience?</p>
<div class="rate">
<div class="stars" id="packageTour-stars-container"></div>
<p id="packageTour-rating-text">Rating: 0</p>
</div><hr>
<!-- Feedback input box section -->
<div>
<label for="feedback-input" id="rating-text">Your Feedback:</label>
<br><br>
<textarea id="feedback-input" placeholder="Remember to be nice please!"></textarea>
</div>
<button class="button" onclick="submitFeedback()">Submit</button>
<div><button class="button button2" onclick="location.href = 'index.html';">Return To Home Page</button></div>
</div>
</div>
</div>
<!-- SweetAlert2 -->
<script>
let hamburger = document.querySelector('.hamburger');
hamburger.addEventListener('click', () => {
let list = document.querySelector('.navLinks');
list.classList.toggle('activeHamburger');
})
</script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<script src="feedback.js" defer></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init({
duration: 1500,
offset: 120
});
</script>
<script>
// To highlight active navbar
document.addEventListener("DOMContentLoaded", function () {
const navLinks = document.querySelectorAll('.navLinks a');
function highlightNavLink() {
const scrollPosition = window.scrollY;
navLinks.forEach(link => {
const sectionId = link.getAttribute('href').substring(1);
const section = document.getElementById(sectionId);
// Adjust this value to control when the link should be highlighted
const offsetPercentage = 20;
if (section.offsetTop - window.innerHeight * (offsetPercentage / 100) <= scrollPosition &&
section.offsetTop + section.offsetHeight > scrollPosition) {
link.classList.add('active');
} else {
link.classList.remove('active');
}
});
}
document.addEventListener('scroll', highlightNavLink);
window.addEventListener('resize', highlightNavLink);
// Initialize AOS library
AOS.init();
});</script>
</body>
</html>