-
Notifications
You must be signed in to change notification settings - Fork 214
/
fcdoTravel.html
428 lines (389 loc) · 13.6 KB
/
fcdoTravel.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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FCDO Travel Advice</title>
<style>
/* CSS Styling */
.circle {
height: 24px;
width: 24px;
border-radius: 24px;
background-color: black;
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 99999999;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f1f5f9;
color: #333;
}
.container {
max-width: 700px;
margin: 3rem auto;
padding: 2rem;
background: white;
border-radius: 15px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
animation: slideDown 0.6s ease-in-out;
}
h1 {
color: #1d4ed8;
text-align: center;
font-size: 2.5rem;
font-weight: bold;
margin-bottom: 1rem;
transition: color 0.3s ease;
}
h1:hover {
color: #1e40af;
}
.form-group {
margin-bottom: 1.5rem;
text-align: center;
}
label {
display: block;
margin-bottom: 0.5rem;
font-weight: bold;
color: #475569;
font-size: 1.2rem;
}
select {
width: 100%;
padding: 0.75rem;
border: 1px solid #cbd5e1;
border-radius: 8px;
font-size: 1rem;
transition: all 0.3s ease;
outline: none;
}
select:focus {
border-color: #1d4ed8;
box-shadow: 0 0 10px rgba(29, 78, 216, 0.3);
}
.btn {
display: inline-block;
background: #1d4ed8;
color: white;
padding: 0.75rem;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
font-weight: bold;
width: 100%;
text-align: center;
transition: background 0.3s ease, transform 0.2s ease;
}
.btn:hover {
background: #1e3a8a;
transform: translateY(-2px);
}
.advice-box {
margin-top: 1.5rem;
padding: 1.5rem;
background: #e0f2fe;
border: 1px solid #7dd3fc;
border-radius: 10px;
animation: fadeIn 0.8s ease forwards;
}
.advice-box h3 {
color: #0c4a6e;
font-size: 1.75rem;
font-weight: bold;
margin-bottom: 0.75rem;
}
.advice-box p {
color: #334155;
font-size: 1.1rem;
line-height: 1.6;
margin: 0.5rem 0;
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
<link rel="stylesheet" href="footer.css">
<link rel="stylesheet" href="index.css">
</head>
<body>
<header>
<!-- cursor -->
<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>
<!-- cursor ends -->
<nav class="navbar">
<img src="https://ticket-booking-blue.vercel.app/images/4.jpeg" alt="" style="border-radius: 50%; height: 35px; width: 35px;">
<div class="logo" style="margin-right: 200px; font-size: 20px;">Ticket Marketplace</div>
<div>
<a href="index.html"><i class="fas fa-home"></i> Home</a>
<a href="about.html"><i class="fas fa-info-circle"></i> About</a>
<a href="buy.html"><i class="fas fa-ticket-alt"></i> Buy Ticket</a>
<a href="sell.html"><i class="fas fa-tags"></i> Sell</a>
<a href="#contact"><i class="fas fa-envelope"></i> Contact</a>
<a href="contributor.html"><i class="fas fa-users"></i> Contributors</a>
<a href="register.html"><i class="fas fa-sign-in-alt"></i> Login</a>
</div>
<button id="darkModeToggle" style="width: 40px; height: 40px;">🌙</button>
</nav>
</header>
<div class="container">
<h1>FCDO Travel Advice</h1>
<div class="form-group">
<label for="city">Select City</label>
<select id="city">
<option value="Mumbai">Mumbai</option>
<option value="Delhi">Delhi</option>
<option value="Bengaluru">Bengaluru</option>
<option value="Chennai">Chennai</option>
<option value="Kolkata">Kolkata</option>
<option value="Hyderabad">Hyderabad</option>
<option value="Pune">Pune</option>
<option value="Ahmedabad">Ahmedabad</option>
<option value="Jaipur">Jaipur</option>
<option value="Lucknow">Lucknow</option>
<option value="Goa">Goa</option>
<option value="Chandigarh">Chandigarh</option>
<option value="Shimla">Shimla</option>
<option value="Udaipur">Udaipur</option>
<option value="Agra">Agra</option>
<option value="Varanasi">Varanasi</option>
<option value="Mysuru">Mysuru</option>
<option value="Amritsar">Amritsar</option>
<option value="Rishikesh">Rishikesh</option>
<option value="Bhopal">Bhopal</option>
</select>
</div>
<button class="btn" onclick="getTravelAdvice()">Get Travel Advice</button>
<div class="advice-box" id="adviceBox" style="display:none;">
<h3 id="adviceTitle"></h3>
<p id="adviceGeneral"></p>
<p><strong>Weather Considerations:</strong> <span id="adviceWeather"></span></p>
<p><strong>What to Pack:</strong> <span id="advicePacking"></span></p>
<p><strong>Local Tips:</strong> <span id="adviceLocal"></span></p>
</div>
</div>
<footer class="footer-container">
<div class="footer-top">
<!-- Logo and Tagline -->
<div class="footer-logo-section">
<img src="./images/3.jpeg" alt="easyJet holidays logo" class="footer-logo">
<p style="color: #b5fdf4;">Affordable adventures, unforgettable memories—explore with ease.</p>
<p style="color: #dcfffa;" class="follow-us">FOLLOW US ON HERE:</p>
<!-- Social Media Icons -->
<div class="social-icons">
<a href="https://www.facebook.com"><i class="fab fa-facebook"></i></a>
<a href="https://www.instagram.com"><i class="fab fa-instagram"></i></a>
<a href="https://www.twitter.com" ><i class="fab fa-twitter"></i></a>
<a href="https://www.linkedin.com"><i class="fab fa-linkedin"></i></a>
<a href="https://www.youtube.com"><i class="fab fa-youtube"></i></a>
</div>
</div>
<!-- Links Sections -->
<div class="footer-links">
<div class="footer-column">
<h4>HELPFUL LINKS</h4>
<ul>
<li><a href="#">Help Centre</a></li>
<li><a href="#">Special Assistance</a></li>
<li><a href="#">Download The App</a></li>
<li><a href="#">Booking Conditions</a></li>
</ul>
</div>
<div class="footer-column">
<h4>ABOUT US</h4>
<ul>
<li><a href="#">Media Center</a></li>
<li><a href="#">Investors</a></li>
<li><a href="#">Modern Slavery Act</a></li>
<li><a href="#">Terms Of Use</a></li>
</ul>
</div>
<div class="footer-column">
<h4>KEEPING SAFE</h4>
<ul>
<li><a href="#">ATOL Protected</a></li>
<li><a href="#">Travel Aware</a></li>
<li><a href="fcdoTravel.html">FCDO Travel Advice</a></li>
<li><a href="#">ABTA</a></li>
</ul>
</div>
<div class="footer-column">
<h4>FIND US</h4>
<ul>
<li><a href="contactus.html">Contact Us</a></li>
<li><a href="#">Group Cookie Notice</a></li>
<li><a href="#">Privacy And Policy</a></li>
<li><a href="#">Sitemap</a></li>
</ul>
</div>
</div>
</div>
<!-- Additional Links Section -->
<div class="footer-bottom">
<ul>
<li><a href="#">Holiday Type</a></li>
<li><a href="#">Holiday Deals</a></li>
<li><a href="#">Popular Counters</a></li>
<!-- <li><a href="#">Flight Only</a></li> -->
<li><a href="tophotels.html">Top Hotels</a></li>
</ul>
</div>
</footer>
<script>
// JavaScript for fetching travel advice
// JavaScript for fetching travel advice
const adviceData = {
"Mumbai": {
general: "Heavy monsoon rains may cause disruptions. Avoid low-lying areas during peak rains.",
weather: "Hot and humid year-round, with intense rains from June to September.",
packing: "Raincoat, umbrella, comfortable shoes, light and breathable clothing.",
local: "Use local trains or metro for faster commute during peak hours."
},
"Delhi": {
general: "Air quality may be poor, especially in winter. Masks and air purifiers are recommended.",
weather: "Hot summers, chilly winters. Air pollution spikes in November and December.",
packing: "Mask, light clothing for summer, jackets for winter, comfortable shoes.",
local: "Avoid peak traffic times; use the metro for faster travel."
},
"Varanasi": {
general: "Be mindful of crowds around the Ganges, especially during festivals.",
weather: "Hot in summer, mild in winter, with a wet monsoon season.",
packing: "Comfortable walking shoes, light clothes, and a water bottle.",
local: "Experience the Ganga Aarti ceremony at Dashashwamedh Ghat."
},
"Mysuru": {
general: "Best visited during Dasara when the city comes alive with festivities.",
weather: "Warm year-round, with a slightly cooler winter season.",
packing: "Comfortable clothing, sunscreen, and a hat for sunny days.",
local: "Visit the Mysore Palace and Chamundi Hill for scenic views."
},
"Amritsar": {
general: "Golden Temple can be crowded, especially during weekends.",
weather: "Hot summers, cold winters, mild monsoon.",
packing: "Modest clothing for temple visits, comfortable shoes.",
local: "Do not miss the Wagah Border ceremony nearby."
},
"Rishikesh": {
general: "Popular for yoga retreats and adventure sports.",
weather: "Cooler in winter; hot and humid during summer.",
packing: "Activewear for trekking or rafting, yoga mats if needed.",
local: "Visit the iconic Laxman Jhula and Ram Jhula bridges."
},
"Bhopal": {
general: "Known as the city of lakes with rich Mughal history.",
weather: "Hot summers, cooler winters, mild rains.",
packing: "Comfortable walking shoes, light clothing.",
local: "Explore both upper and lower lakes, and the tribal museum."
}
};
function getTravelAdvice() {
const citySelect = document.getElementById("city");
const selectedCity = citySelect.value;
const adviceBox = document.getElementById("adviceBox");
const adviceTitle = document.getElementById("adviceTitle");
const adviceGeneral = document.getElementById("adviceGeneral");
const adviceWeather = document.getElementById("adviceWeather");
const advicePacking = document.getElementById("advicePacking");
const adviceLocal = document.getElementById("adviceLocal");
// Check if selected city exists in the adviceData
if (adviceData[selectedCity]) {
const cityAdvice = adviceData[selectedCity];
// Update advice content
adviceTitle.innerText = `Travel Advice for ${selectedCity}`;
adviceGeneral.innerText = cityAdvice.general;
adviceWeather.innerText = cityAdvice.weather;
advicePacking.innerText = cityAdvice.packing;
adviceLocal.innerText = cityAdvice.local;
// Display the advice box
adviceBox.style.display = "block";
} else {
adviceTitle.innerText = "No advice available for this city.";
adviceGeneral.innerText = "";
adviceWeather.innerText = "";
advicePacking.innerText = "";
adviceLocal.innerText = "";
}
}
//cursor
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
const colors = [
"#BCE954", "#98FF98", "#9CB071", "#90C209", "#B2C248",
"#85BB65", "#99C68E", "#6CBB3C", "#3ea055", "#41a317",
"#4AA02C", "#6AA121", "#347C2C", "#387C44", "#437C17",
"#306754", "#254117", "#667C26", "#728C00", "#008000"
];
circles.forEach(function (circle, index) {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});
window.addEventListener("mousemove", function(e){
coords.x = e.clientX;
coords.y = e.clientY;
});
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
circle.style.left = x - 12 + "px"; // Center the circle on the mouse
circle.style.top = y - 12 + "px"; // Center the circle on the mouse
circle.style.transform = `scale(${(circles.length - index) / circles.length})`; // Correct scale setting
circle.x = x;
circle.y = y;
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.6;
});
requestAnimationFrame(animateCircles);
}
animateCircles();
</script>
</body>
</html>