-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
475 lines (449 loc) · 24.1 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
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
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="qxxwyhv557KH5PC2ALgSdZUGbgQUGSyrF4jRffgbR2c" />
<meta property="og:title" content="Explore With Ladini | Traveling & More | Blog" />
<meta property="og:description" content="Welcome to 'Explore with Ladini'! Join me on this journey as we explore new cultures, beautiful landscapes, and all the wonders our world has to offer. Let's discover together!" />
<meta property="og:image" content="https://explore-with-ladini.web.app/images/explore-logo.png" />
<meta property="og:url" content="https://explore-with-ladini.web.app/" />
<meta property="og:type" content="website" />
<link rel="shortcut icon" type="image/png" href="images/explore-logo.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/scrool-bar.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/main-menu-bar.css">
<link rel="stylesheet" href="css/index.css">
<title>Explore | Traveling & More | Blog</title>
<style>
.notification{
position: fixed;
bottom: 10px;
left: 10px;
padding: 20px;
border-radius: 10px;
display: inline-flex;
background-color: #ffffffbb;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
backdrop-filter: blur(5px);
display: none;
}
.notification::after {
content: url(/images/svg/close-outline.svg);
display: inline-block;
width: 20px;
height: 20px;
padding: 1px;
border-radius: 10px;
background-color: #eeeeee59;
margin-left: 10px;
cursor: pointer;
}
a::after{
content: none;
}
</style>
</head>
<body>
<div class="notification">
</div>
<div id="mySidenav" class="sidenav">
<div class="side-contanier">
<a tabindex="0" onclick="window.location.href='#what\'s-new';closeNav();navOpen = false;myFunction(document.getElementById('conta'));" onkeydown="if(event.keyCode === 13) {window.location.href = '#what\'s-new';closeNav();navOpen = false;}">Highlights</a>
<a tabindex="0" onclick="window.location.href='#contact_us';closeNav();navOpen = false;myFunction(document.getElementById('conta'));" onkeydown="if(event.keyCode === 13) {window.location.href = '#contact_us';closeNav();navOpen = false;}">Contact Us</a>
</div>
</div>
<script>
var navOpen = false;
function toggleNav() {
if (navOpen) {
closeNav();
navOpen = false;
} else {
openNav();
navOpen = true;
}
}
function openNav() {
document.getElementById("mySidenav").style.width = "300px";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}
/* Listen for window resize events and adjust the side navigation width */
function handleResize() {
const screenWidth = window.innerWidth;
if (screenWidth > 600) {
document.getElementById("mySidenav").style.width = "0";
} else {
if(navOpen){
document.getElementById("mySidenav").style.width = "300px";
}
}
}
window.addEventListener("resize", handleResize);
</script>
<div class="menu">
<div class="container" onclick="myFunction(this);toggleNav()" id="conta" tabindex="0" onkeydown="if(event.keyCode === 13) {myFunction(this);toggleNav()}">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<script>
function myFunction(x) {
x.classList.toggle("change");
}
</script>
<div class="menu-logo" onclick="window.location.href='#'" tabindex="0" onkeydown="if(event.keyCode === 13) {window.location.href = '#';}">
<img src="images/explore-logo.png" alt="logo">
</div>
<div class="menu-list">
<ul>
<li tabindex="0" onclick="window.location.href='#what\'s-new'" onkeydown="if(event.keyCode === 13) {window.location.href = '#what\'s-new';}">Highlights</li>
<!-- <li tabindex="0" onclick="window.location.href='#categories'" class="drop-down" onkeydown="if(event.keyCode === 13) {window.location.href = '#categories';}">categories <img src="images/svg/chevron-down-outline.svg" alt=""></li> -->
<li tabindex="0" onclick="window.location.href='#contact_us'" class="drop-down" onkeydown="if(event.keyCode === 13) {window.location.href = '#contact_us';}">Contact_Us</li>
<!--<li onclick="window.location.href='#about'">About</li>-->
</ul>
</div>
<!--
<div class="container" onclick="myFunction(this)">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
-->
<div class="space">
</div>
<div class="menu-f-icons">
<div class="f-icon" tabindex="0">
<img src="images/svg/search-outline.svg" alt="">
</div>
<div class="f-icon profile" title="authers information" tabindex="0" onclick="window.location.href='#authors-info'" class="drop-down" onkeydown="if(event.keyCode === 13) {window.location.href = '#authors-info';}">
<img src="images/profile.jpg" alt="">
</div>
</div>
</div>
<div class="main-body">
<!--code from - https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_slideshow -->
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">Welcome</div>
<img src="images/slideshow/001.jpg"
style="width:100%">
<div class="text-title">Welcome
<div class="sub-text-title">Welcome to 'Explore with Ladini'! Join me on this journey as we explore new cultures, beautiful landscapes, and all the wonders our world has to offer. Let's discover together!</div>
</div>
</div>
<div class="mySlides fade">
<div class="numbertext">2 / 3</div>
<img src="images/articles/traveling-solo-in-Japan-6.jpg"
style="width:100%">
<div class="text">My Solo Adventure in Japan
<div class="sub-text">Japan travel: Rich culture, bustling cities, serene temples, stunning landscapes</div>
</div>
</div>
<div class="mySlides fade">
<div class="numbertext">3 / 3</div>
<img src="images/articles/Different-Types-Of-Travel.jpg"
style="width:100%">
<div class="text">Different Types Of Travel
<div class="sub-text">Leisure travel | Adventure travel | Cultural travel | Luxury travel</div>
</div>
</div>
<a class="prev" onclick="plusSlides(-1)" tabindex="0">❮</a>
<a class="next" onclick="plusSlides(1)" tabindex="0">❯</a>
<div class="dot-containser">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
</div>
<script>
let slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
let i;
let slides = document.getElementsByClassName("mySlides");
let dots = document.getElementsByClassName("dot");
if (n > slides.length) { slideIndex = 1 }
if (n < 1) { slideIndex = slides.length }
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex - 1].style.display = "block";
dots[slideIndex - 1].className += " active";
}
</script>
</div>
</div>
<div class="whats-new" id="what's-new">
<div class="title">
<img src="images/svg/journal-outline.svg" alt="">
<h1>Highlights</h1>
</div>
<div class="blog-posts">
<div class="blog-post-container">
<div class="blog-post" tabindex="0" onclick="window.open('Journey-to-a-Foreign-Land.html', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('Journey-to-a-Foreign-Land.html', '_blank')}">
<div class="image">
<img src="images/articles/Journey-to-a-Foreign-Land.jpg" alt="">
</div>
<div class="more-info">
<div class="blog-title">Journey to a Foreign Land</div>
<p>An exhilarating travel experience, filled with rich cultural discoveries and a newfound sense of freedom.</p>
<button class="read-more">Read More</button>
</div>
</div>
<div class="blog-post" tabindex="0" onclick="window.open('Exploring-Near-and-Far.html', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('Exploring-Near-and-Far.html', '_blank')}">
<div class="image">
<img src="images/articles/Exploring-Near-and-Far.jpg" alt="">
</div>
<div class="more-info">
<div class="blog-title">Exploring Near and Far</div>
<p>A Personal Perspective on Travel | Comparing benefits of local and foreign travel</p>
<button class="read-more">Read More</button>
</div>
</div>
<div class="blog-post" tabindex="0" onclick="window.open('A-Transformative-Journey.html', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('A-Transformative-Journey.html', '_blank')}">
<div class="image">
<img src="images/articles/A-Transformative-Journey.jpg" alt="">
</div>
<div class="more-info">
<div class="blog-title">A Transformative Journey</div>
<p>Exploring New Cultures | A vivid account of a traveler's journey across the world, experiencing new sights, sounds, and cultures...</p>
<button class="read-more">Read More</button>
</div>
</div>
<div class="blog-post" onclick="window.open('The-Art-of-Travel.html', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('The-Art-of-Travel.html', '_blank')}">
<div class="image">
<img src="images/articles/The-Art of-Travel.jpg" alt="">
</div>
<div class="more-info">
<div class="blog-title">The Art of Travel</div>
<p>"The Art of Travel" is a non-fiction book that explores the concept of travel and its impact on our lives...</p>
<button class="read-more">Read More</button>
</div>
</div>
<div class="blog-post" tabindex="0" onclick="window.open('The-Grand-Budapest-Hotel-2014.html', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('The-Grand-Budapest-Hotel-2014.html', '_blank')}">
<div class="image">
<img src="images/articles/The-Grand-Budapest-Hotel-2014.jpg" alt="">
</div>
<div class="more-info">
<div class="blog-title">The Grand Budapest Hotel (2014)</div>
<p>One potential movie that comes to mind is "The Grand Budapest Hotel" (2014), directed by Wes Anderson...</p>
<button class="read-more">Read More</button>
</div>
</div>
<div class="blog-post" tabindex="0" onclick="window.open('My-Solo-Adventure-in-Japan-j-of-s-d.html', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('My-Solo-Adventure-in-Japan-j-of-s-d.html', '_blank')}">
<div class="image">
<img src="images/articles/traveling-solo-in-Japan-6.jpg" alt="">
</div>
<div class="more-info">
<div class="blog-title">A Solo Adventure in Japan</div>
<p>Journey of Self-Discovery: A Solo Adventure in Japan</p>
<button class="read-more">Read More</button>
</div>
</div>
<div class="blog-post" tabindex="0" onclick="window.open('Different-Types-Of-Travel.html', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('Different-Types-Of-Travel.html', '_blank')}">
<div class="image">
<img src="images/articles/Different-Types-Of-Travel.jpg" alt="">
</div>
<div class="more-info">
<div class="blog-title">Different Types Of Travel</div>
<p>Leisure travel | Adventure travel | Cultural travel | Luxury travel</p>
<button class="read-more">Read More</button>
</div>
</div>
</div>
</div>
<button class="view-all" class="blog-post" onclick="window.open('all-articles.html', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('all-articles.html', '_blank')}">View all blogs</button>
</div>
<div class="subscribe" id="subscribe">
<div class="title">
<img src="images/svg/chatbox-ellipses-outline.svg" alt="">
<h1>Never miss a beat</h1>
</div>
<div class="holder">
<input name="Email" type="email" placeholder="subscribe from your email" id="sub-email" required>
<button type="submit" onclick="subscribe()" id="sub-button">Subscribe</button>
<script>
function showNotification(notifi, color) {
var audio = new Audio('/mp3/Sound-effect-text-pop-up.mp3');
audio.play();
var notification = document.querySelector('.notification');
notification.innerHTML = notifi;
notification.style.backgroundColor = color;
notification.style.display = 'inline-flex';
notification.animate([
{bottom: '-100px', opacity: 0},
{bottom: '10px', opacity: 1}
], {
duration: 500,
easing: 'ease-in-out'
});
notification.addEventListener('click', function() {
notification.animate([
{bottom: '10px', opacity: 1},
{bottom: '-100px', opacity: 0},
], {
duration: 500,
easing: 'ease-in-out'
});
setTimeout(function() {
notification.style.display = "none";
}, 500);
});
setTimeout(function() {
notification.animate([
{bottom: '10px', opacity: 1},
{bottom: '-100px', opacity: 0},
], {
duration: 500,
easing: 'ease-in-out'
});
setTimeout(function() {
notification.style.display = "none";
}, 500);
}, 8000);
}
function subscribe(){
var sub_button = document.getElementById("sub-button");
var sub_email = document.getElementById('sub-email').value;
if (sub_email.length === 0) {
notifi = "Enter your email befor you go 🧐";
color = 'peachpuff';
showNotification(notifi, color);
return;
}
sub_button.disabled = true;
sub_button.innerHTML = 'subscribed';
sub_button.style.color = 'rgb(78, 77, 79)';
sub_button.style.border = '3px solid rgb(78, 77, 79)';
sub_button.style.backgroundColor = 'rgba(128, 128, 128, 0.232)';
sub_button.style.backdropFilter = 'blur(5px)';
var form = new FormData();
form.append('Email', sub_email);
var request = new XMLHttpRequest();
request.open('POST', 'https://script.google.com/macros/s/AKfycbyXtWULh1JaHJVhtufA2mYTpoh8pu4VSgPVZj57jyQXQ2JJwRPmLtlXSm7TUMwm1SZl/exec');
request.send(form);
request.onreadystatechange = function(){
if (this.readyState === XMLHttpRequest.DONE && this.status === 200){
var response = JSON.parse(request.responseText);
if (response.result === "success") {
notifi = "You've subscribed successfully ✌️";
color = "#ffffffbb";
} else {
notifi = "Opps! someting went wrong 🫥";
color = 'peachpuff';
}
showNotification(notifi, color);
}
}
}
</script>
</div>
</div>
<div class="authors-info" id="authors-info">
<div class="title">
<img src="images/svg/person-outline.svg" alt="">
<h1>The Explorer's Log</h1>
</div>
<div class="info-pannel" tabindex="0">
<div class="profile">
<img src="images/profile.jpg" alt="">
</div>
<div class="other-info">
<div class="name">Ladini Wijerathna</div>
<div class="dis">I'm a travel enthusiast, beauty lover, and music aficionado with a background in International Business Management. Follow along as I share my personal travel experiences, tips, and recommendations for exploring the world. Join me on this adventure to make your own journeys unforgettable.</div>
</div>
<div class="social-media">
<img src="images/svg/logo-facebook.svg" alt="facebook" onclick="window.open('https://www.facebook.com/ladini.wijerathna.9', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('https://www.facebook.com/ladini.wijerathna.9', '_blank')}">
<img src="images/svg/logo-instagram.svg" alt="instergram" onclick="window.open('https://www.instagram.com/ladiii_0105/', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('https://www.instagram.com/ladiii_0105/', '_blank')}">
<img src="images/svg/logo-snapchat.svg" alt="snapchat" onclick="window.open('https://www.snapchat.com/add/ladiiwijerathna?share_id=QU1SMxkbyNo&locale=en-GB', '_blank')" tabindex="0" onkeydown="if(event.keyCode === 13) {window.open('https://www.snapchat.com/add/ladiiwijerathna?share_id=QU1SMxkbyNo&locale=en-GB', '_blank')}">
</div>
</div>
</div>
<div class="title"></div>
<div class="contact_us" id="contact_us">
<div class="title">
<img src="images/svg/chatbox-ellipses-outline.svg" alt="">
<h1>Contact Us</h1>
</div>
<div class="c-pannel">
<div class="inp">
<img src="/images/svg/person-outline.svg" alt="">
<input type="text" placeholder="name" id="submit-name">
</div>
<div class="inp">
<img src="/images/svg/mail-outline.svg" alt="">
<input type="email" placeholder="email" id="submit-email">
</div>
<div class="inp">
<img src="/images/svg/file-tray-full-outline.svg" alt="">
<input type="text" placeholder="subject/title" id="submit-sub">
</div>
<div class="inp">
<img src="/images/svg/chatbox-ellipses-outline.svg" alt="" style="top:7px">
<textarea name="submit-text" placeholder="Your' message" id="submit-text"></textarea>
</div>
<button id="submit-button" onclick="submit()">Submit <img src="images/svg/send-outline.svg" alt=""></button>
</div>
<script>
function submit(){
var submit_button = document.getElementById("submit-button");
var submit_email = document.getElementById('submit-email').value;
var submit_name = document.getElementById('submit-name').value;
var submit_sub = document.getElementById('submit-sub').value;
var submit_text = document.getElementById('submit-text').value;
if (submit_email === '' || submit_name === '' || submit_sub === '' || submit_text === '') {
// If any of the values are empty, display an error message
notifi = "All fields must be filled. 🧐";
color = 'peachpuff';
showNotification(notifi, color);
return;
}
submit_button.disabled = true;
submit_button.innerHTML = 'sent';
submit_button.style.color = '#3c7880ec';
submit_button.style.border = '3px solid #3c7880ec';
submit_button.style.backgroundColor = 'rgba(128, 128, 128, 0.232)';
submit_button.style.backdropFilter = 'blur(5px)';
var form1 = new FormData();
form1.append('name', submit_name);
form1.append('email', submit_email);
form1.append('sub', submit_sub);
form1.append('msg', submit_text);
var request = new XMLHttpRequest();
request.open('POST', 'https://script.google.com/macros/s/AKfycbzG3yBG0MgYKu5XNTBHCBYtpgwKpRJ5PpPFkKTsDOMyg0MbuHgfImxgYsdt7lCLUV_XHA/exec');
request.send(form1);
request.onreadystatechange = function(){
if (this.readyState === XMLHttpRequest.DONE && this.status === 200){
var response = JSON.parse(request.responseText);
if (response.result === "success") {
notifi = "We recived your message. ✌️";
color = "#ffffffbb";
} else {
notifi = "Opps! someting went wrong.";
color = 'peachpuff';
}
showNotification(notifi, color);
}
}
}
</script>
<div class="title"></div>
</div>
<div class="art-footer">
<img src="/images/explore-logo.png" alt="">
<div class="text-001">With Ladini</div>
</div>
</body>
</html>