-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery.html
554 lines (481 loc) · 27.4 KB
/
gallery.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
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Office of the Honorary Consul of The Hashemite Kingdom of Jordan in Nepal</title>
<!-- SEO Meta Tags -->
<meta name="description" content="Official website of the Honorary Consul of The Hashemite Kingdom of Jordan in Nepal. Find information on consular services, visa requirements, and more.">
<meta name="keywords" content="Jordan Consulate, Nepal, Visa Information, Consular Services, Jordanian Embassy, Honorary Consul, Jordan Visa, Travel to Jordan">
<meta name="author" content="Office of the Honorary Consul of The Hashemite Kingdom of Jordan in Nepal">
<!-- Open Graph Meta Tags -->
<meta property="og:title" content="Office of the Honorary Consul of The Hashemite Kingdom of Jordan in Nepal">
<meta property="og:description" content="Official website of the Honorary Consul of The Hashemite Kingdom of Jordan in Nepal. Find information on consular services, visa requirements, and more.">
<meta property="og:image" content="https://jordanconsulate.org.np/assets/images/og-image.jpg">
<meta property="og:url" content="https://jordanconsulate.org.np">
<meta property="og:type" content="website">
<!-- Twitter Card Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Office of the Honorary Consul of The Hashemite Kingdom of Jordan in Nepal">
<meta name="twitter:description" content="Official website of the Honorary Consul of The Hashemite Kingdom of Jordan in Nepal. Find information on consular services, visa requirements, and more.">
<meta name="twitter:image" content="https://jordanconsulate.org.np/assets/images/twitter-card.jpg">
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="assets/images/favicon2.svg">
<!-- CSS Files -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<link href="https://cdn.jsdelivr.net/npm/remixicon/fonts/remixicon.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/swiper-bundle.min.css" />
<link rel="stylesheet" href="assets/css/global.css">
<link rel="stylesheet" href="assets/css/gallery.css">
<!-- Structured Data (JSON-LD) for Local Business/Consulate Schema -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "GovernmentOffice",
"name": "Office of the Honorary Consul of The Hashemite Kingdom of Jordan in Nepal",
"description": "Official website of the Honorary Consul of The Hashemite Kingdom of Jordan in Nepal. Find information on consular services, visa requirements, and more.",
"url": "https://jordanconsulate.org.np",
"logo": "https://jordanconsulate.org.np/assets/images/logo.png",
"contactPoint": {
"@type": "ContactPoint",
"telephone": "+9779851007984",
"contactType": "Customer Service",
"areaServed": "NP",
"availableLanguage": ["English", "Nepali"]
},
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Consulate St",
"addressLocality": "Kathmandu",
"addressRegion": "Bagmati",
"postalCode": "44600",
"addressCountry": "NP"
},
"sameAs": [
"https://www.facebook.com",
"https://www.tiktok.com",
"https://www.instagram.com",
"https://maps.google.com"
]
}
</script>
<!-- Performance and Accessibility -->
<link rel="preconnect" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="preload" href="assets/css/gallery.css" as="style">
<link rel="preload" href="assets/images/logo.png" as="image">
<style>
.navBar .menuList .active {
font-weight: bold;
border-bottom: 2px solid crimson; /* Add a bottom border */
}
</style>
</head>
<body>
<!-- ================ ttopbar ================= -->
<div class="ttopBar width_full">
<div class="ttopBar_content max-width">
<!-- Center: Contact Info -->
<div class="ttopBar_contact_info">
<div class="icon">
<i class="ri-phone-line"></i> +9779851007984
</div>
<div class="icon">
<i class="ri-mail-line"></i> [email protected]
</div>
</div>
<!-- "All in One" Icon -->
<div class="allSocial">
<a href="javascript:void(0);" class="social-icon" id="allSocialIcon">
<i class="ri-links-fill"></i> <!-- "Links" Icon -->
</a>
</div>
<!-- Right: Social Icons -->
<div class="ttopBar_social_icon" id="socialIcons">
<span class="close-icon" id="closeSocialIcons">×</span>
<!-- Facebook Icon -->
<a href="https://www.facebook.com" target="_blank" class="social-icon">
<i class="ri-facebook-fill"></i>
</a>
<!-- TikTok Icon -->
<a href="https://www.tiktok.com" target="_blank" class="social-icon">
<i class="ri-tiktok-fill"></i>
</a>
<!-- Instagram Icon -->
<a href="https://www.instagram.com" target="_blank" class="social-icon">
<i class="ri-instagram-fill"></i>
</a>
<!-- Google Maps Icon -->
<a href="https://maps.google.com" target="_blank" class="social-icon">
<i class="ri-map-pin-fill"></i>
</a>
</div>
</div>
</div>
<!-- ================ topBar ================ -->
<div class="topBarSection align-items-center justify-content-center">
<div class="topBarSpaceLine">
<div class="topBarSpaceLine-1"></div>
<div class="topBarSpaceLine-2"></div>
</div>
<div class="topBar">
<div class="topBarBrandLine max-width px-3">
<div class="topBarBrandContent row justify-content-between align-items-center d-flex">
<div class="topBarLogoTitle col-12 col-md-5 ">
<img src="assets/images/logoTitle.png" alt="topbar Logo Title" class="img-fluid">
</div>
<div class="topBarTimes col-8 col-md-4 ">
<div class="row d-flex align-items-center justify-content-center text-center">
<div class="topBarTimeBox col-auto px-1 align-items-around">
<div class="timePlace d-flex justify-content-start">
<img src="assets/images/nepal-flag.png" alt="Nepal Flag" class="flag img-fluid icon-img">
<div class="city-name mx-2 text-success">Kathmandu</div>
</div>
<div id="nepal-time" class="time">--:--:--</div>
</div>
<div class="topBarTimeBox col-auto">
<div class="timePlace d-flex">
<img src="assets/images/jordan-flag.png" alt="Jordan Flag" class="flag img-fluid icon-img">
<div class="city-name mx-2 text-danger">Amman</div>
</div>
<div id="topBarJordanTime" class="time">--:--:--</div>
</div>
</div>
</div>
<div class="topBarFlags col-4 col-md-3 ">
<img src="assets/images/topBarFlags.png" alt="Nepal Jordan flag" class="img-fluid">
</div>
</div>
</div>
</div>
</div>
<!-- ================ end topBar ================ -->
<!-- ================== navBar ================== -->
<nav class="navBar">
<div class="max-width">
<div class="navLogo">
</div>
<div class="navLinks">
<button class="closeMenu">
<i class="fas fa-times"></i>
</button>
<ul class="menuList">
<li><a href="index.html">Home</a></li>
<li><a href="about.html" >About Us</a></li>
<li class="dropDown">
<a href="#" class="dropDownToggle ">
Services <i class="fas fa-chevron-down"></i>
</a>
<ul class="dropDownMenu">
<li><a href="services.html">Consular Services</a></li>
<li><a href="visa-info.html">Visa Information</a></li>
<li><a href="apply-form.html">Visa Application</a></li>
</ul>
</li>
<li class="dropDown">
<a href="#" class="dropDownToggle active">
Resources <i class="fas fa-chevron-down"></i>
</a>
<ul class="dropDownMenu">
<li><a href="useful-link.html">Useful Links</a></li>
<li><a href="article.html">Articles</a></li>
<li><a href="gallery.html" class="active">Gallery</a></li>
</ul>
</li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<div class="navActions">
<div class="searchContainer">
<input type="text" class="searchInput" placeholder="Search...">
<button class="searchIcon">
<i class="fas fa-search"></i>
</button>
</div>
<button class="menuToggle">
<i class="fas fa-bars"></i>
</button>
</div>
</div>
<a href="https://wa.me/9779851007984" class="whatsappButton" target="_blank" rel="noopener noreferrer">
<i class="fab fa-whatsapp"></i>
</a>
</nav>
<!-- ================== end navBar ================== -->
<!-- =============== Main ================ -->
<div class="container">
<header class="gallery-header">
<h1 class="gallery-title">Jordan Gallery</h1>
<p class="gallery-subtitle">Explore the beauty and culture of Jordan through our curated collection of images</p>
</header>
<div id="gallery" class="gallery-grid"></div>
<div class="pagination">
<button id="prevBtn" onclick="changePage(-1)" disabled>Previous</button>
<ul class="page-numbers" id="pageNumbers"></ul>
<button id="nextBtn" onclick="changePage(1)">Next</button>
</div>
</div>
<div id="imageModal" class="modal">
<span class="close" onclick="closeModal()">×</span>
<span class="prev" onclick="changeImage(-1)">❮</span>
<span class="next" onclick="changeImage(1)">❯</span>
<div class="modal-content">
<img id="modalImage" class="modal-image" src="/placeholder.svg" alt="Full size image">
</div>
</div>
<script>
const imagesPerPage = 12;
let currentPage = 1;
let currentModalImage = 0;
let images = [
{ small: 'assets/images/about.jpg', full: 'assets/images/about.jpg', alt: 'about jordan' },
{ small: 'assets/images/DeadSea.jpg', full: 'assets/images/DeadSea.jpg', alt: 'Dead Sea jordan' },
{ small: 'assets/images/hero-1.jpg', full: 'assets/images/hero-1.jpg', alt: 'hero-1 jordan' },
{ small: 'assets/images/hero-2.jpg', full: 'assets/images/hero-2.jpg', alt: 'hero-2 jordan' },
{ small: 'assets/images/hero-3.jpg', full: 'assets/images/hero-3.jpg', alt: 'hero-3 jordan' },
{ small: 'assets/images/hero-4.jpg', full: 'assets/images/hero-4.jpg', alt: 'hero-4 jordan' },
{ small: 'assets/images/hero-5.jpg', full: 'assets/images/hero-5.jpg', alt: 'hero-5 jordan' },
{ small: 'assets/images/jerash.jpg', full: 'assets/images/jerash.jpg', alt: 'jerash jordan' },
{ small: 'assets/images/National-museum.jpg', full: 'assets/images/National-museum.jpg', alt: 'National-museum jordan' },
{ small: 'assets/images/pass.jpg', full: 'assets/images/pass.jpg', alt: 'pass jordan' },
{ small: 'assets/images/petra.jpg', full: 'assets/images/petra.jpg', alt: 'petra jordan' },
{ small: 'assets/images/services.webp', full: 'assets/images/services.webp', alt: 'services jordan' },
{ small: 'assets/images/Trade-Facilitation-Portal.png', full: 'assets/images/Trade-Facilitation-Portal.png', alt: 'Trade-Facilitation-Portal jordan' },
{ small: 'assets/images/visa-info.jpg', full: 'assets/images/visa-info.jpg', alt: 'visa jordan' },
{ small: 'https://images.unsplash.com/photo-1570214476695-19bd467e6f7a?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8am9yZGFufGVufDB8fDB8fHww', full: 'https://images.unsplash.com/photo-1570214476695-19bd467e6f7a?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8am9yZGFufGVufDB8fDB8fHww', alt: 'Petra, Jordan' },
{ small: 'https://images.unsplash.com/photo-1548588627-f978862b85e1?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8am9yZGFufGVufDB8fDB8fHww', full: 'https://images.unsplash.com/photo-1548588627-f978862b85e1?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8am9yZGFufGVufDB8fDB8fHww', alt: 'Dead Sea, Jordan' },
{ small: 'https://images.unsplash.com/photo-1580834341580-8c17a3a630ca?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8am9yZGFufGVufDB8fDB8fHww', full: 'https://images.unsplash.com/photo-1580834341580-8c17a3a630ca?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8am9yZGFufGVufDB8fDB8fHww', alt: 'Amman Citadel, Jordan' },
{ small: 'https://images.unsplash.com/photo-1562591970-254bc62245c0?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTF8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D', full: 'https://images.unsplash.com/photo-1562591970-254bc62245c0?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTF8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D', alt: 'Aqaba, Jordan' },
{ small: 'https://images.unsplash.com/photo-1552733407-5d5c46c3bb3b?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D', full: 'https://images.unsplash.com/photo-1552733407-5d5c46c3bb3b?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D', alt: 'Roman Theater, Amman' },
{ small: 'https://images.unsplash.com/photo-1565689478170-6624de957899?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTd8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D', full: 'https://images.unsplash.com/photo-1565689478170-6624de957899?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTd8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D', alt: 'Bedouin Camp, Wadi Rum' },
// Additional images to reach over 100
{ small: 'https://picsum.photos/id/1018/400/300', full: 'https://picsum.photos/id/1018/1200/900', alt: 'Jordan Landscape 1' },
{ small: 'https://picsum.photos/id/1015/400/300', full: 'https://picsum.photos/id/1015/1200/900', alt: 'Jordan Landscape 2' },
{ small: 'https://picsum.photos/id/1019/400/300', full: 'https://picsum.photos/id/1019/1200/900', alt: 'Jordan Landscape 3' },
// ... (continue adding more images until you reach over 100)
{ small: 'https://picsum.photos/id/1084/400/300', full: 'https://picsum.photos/id/1084/1200/900', alt: 'Jordan Landscape 100' },
{
small: 'https://images.unsplash.com/photo-1570214476695-19bd467e6f7a?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8am9yZGFufGVufDB8fDB8fHww',
full: 'https://images.unsplash.com/photo-1570214476695-19bd467e6f7a?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8am9yZGFufGVufDB8fDB8fHww',
alt: 'The Treasury at Petra, Jordan'
},
{
small: 'https://images.unsplash.com/photo-1548588627-f978862b85e1?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8am9yZGFufGVufDB8fDB8fHww',
full: 'https://images.unsplash.com/photo-1548588627-f978862b85e1?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8am9yZGFufGVufDB8fDB8fHww',
alt: 'Dead Sea coastline, Jordan'
},
{
small: 'https://images.unsplash.com/photo-1580834341580-8c17a3a630ca?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8am9yZGFufGVufDB8fDB8fHww',
full: 'https://images.unsplash.com/photo-1580834341580-8c17a3a630ca?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8am9yZGFufGVufDB8fDB8fHww',
alt: 'Amman Citadel at sunset, Jordan'
},
{
small: 'https://images.unsplash.com/photo-1562591970-254bc62245c0?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTF8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
full: 'https://images.unsplash.com/photo-1562591970-254bc62245c0?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTF8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
alt: 'Aqaba beach resort, Red Sea'
},
{
small: 'https://images.unsplash.com/photo-1552733407-5d5c46c3bb3b?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
full: 'https://images.unsplash.com/photo-1552733407-5d5c46c3bb3b?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
alt: 'Roman Theater in Amman'
},
{
small: 'https://images.unsplash.com/photo-1565689478170-6624de957899?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTd8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
full: 'https://images.unsplash.com/photo-1565689478170-6624de957899?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTd8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
alt: 'Bedouin camp in Wadi Rum desert'
},
{
small: 'https://images.unsplash.com/photo-1581443459255-e895f2a4222f?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjJ8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
full: 'https://images.unsplash.com/photo-1581443459255-e895f2a4222f?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjJ8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
alt: 'Desert landscape at sunset, Jordan'
},
{
small: 'https://images.unsplash.com/photo-1630673245362-f69d2b93880e?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MzB8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
full: 'https://images.unsplash.com/photo-1630673245362-f69d2b93880e?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MzB8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
alt: 'Traditional Jordanian marketplace'
},
{
small: 'https://images.unsplash.com/photo-1632922267756-9b71242b1592?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mzh8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
full: 'https://images.unsplash.com/photo-1632922267756-9b71242b1592?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mzh8fGpvcmRhbnxlbnwwfHwwfHx8MA%3D%3D',
alt: 'Jordan Valley landscape'
}
];
const totalPages = Math.ceil(images.length / imagesPerPage);
function loadGallery() {
const gallery = document.getElementById('gallery');
gallery.innerHTML = '';
const startIndex = (currentPage - 1) * imagesPerPage;
for (let i = startIndex; i < startIndex + imagesPerPage; i++) {
if (i >= images.length) break;
const item = document.createElement('div');
item.className = 'gallery-item';
const spinner = document.createElement('div');
spinner.className = 'loading-spinner';
item.appendChild(spinner);
const img = document.createElement('img');
img.alt = images[i].alt;
img.style.opacity = '0';
img.onload = () => {
spinner.style.display = 'none';
img.style.opacity = '1';
};
img.src = images[i].small;
item.appendChild(img);
item.onclick = () => openModal(i);
gallery.appendChild(item);
}
updatePagination();
}
function updatePagination() {
const prevBtn = document.getElementById('prevBtn');
const nextBtn = document.getElementById('nextBtn');
const pageNumbers = document.getElementById('pageNumbers');
prevBtn.disabled = currentPage === 1;
nextBtn.disabled = currentPage === totalPages;
pageNumbers.innerHTML = '';
for (let i = 1; i <= totalPages; i++) {
const li = document.createElement('li');
const button = document.createElement('button');
button.textContent = i;
button.onclick = () => goToPage(i);
if (i === currentPage) {
button.classList.add('active');
}
li.appendChild(button);
pageNumbers.appendChild(li);
}
}
function changePage(direction) {
currentPage += direction;
if (currentPage < 1) currentPage = 1;
if (currentPage > totalPages) currentPage = totalPages;
loadGallery();
}
function goToPage(page) {
currentPage = page;
loadGallery();
}
async function openModal(imageIndex) {
const modal = document.getElementById('imageModal');
const modalImg = document.getElementById('modalImage');
modal.style.display = 'block';
modalImg.src = '';
modalImg.alt = 'Loading...';
currentModalImage = imageIndex;
const loadingSpinner = document.createElement('div');
loadingSpinner.className = 'loading-spinner';
modal.querySelector('.modal-content').appendChild(loadingSpinner);
const img = new Image();
img.onload = () => {
loadingSpinner.remove();
modalImg.src = img.src;
modalImg.alt = images[imageIndex].alt;
};
img.src = images[imageIndex].full;
}
function closeModal() {
document.getElementById('imageModal').style.display = 'none';
}
function changeImage(direction) {
currentModalImage += direction;
if (currentModalImage < 0) currentModalImage = images.length - 1;
if (currentModalImage >= images.length) currentModalImage = 0;
openModal(currentModalImage);
}
// Close modal when clicking outside the image
window.onclick = function(event) {
const modal = document.getElementById('imageModal');
if (event.target === modal) {
closeModal();
}
}
// Initialize gallery
loadGallery();
</script>
<!-- =============== Main End ================ -->
<!-- =============== Footer ================ -->
<!-- Footer Section -->
<footer class="footer">
<div class="container">
<div class="row">
<!-- Menu Section -->
<div class="col-md-4">
<h5>Menu</h5>
<ul>
<li><a href="index.html"><i class="bi bi-house-door-fill"></i> Home</a></li>
<li><a href="services.html"><i class="bi bi-briefcase-fill"></i> Consular Services</a></li>
<li><a href="about.html"><i class="bi bi-info-circle-fill"></i>About Us</a></li>
<li><a href="visa-info.html"><i class="bi bi-file-earmark-text-fill"></i> Visa Information</a></li>
<li><a href="useful-link.html"><i class="bi bi-link-45deg"></i> Useful Link</a></li>
<li><a href="article.html"><i class="bi bi-link-45deg"></i> Articles</a></li>
<li><a href="gallery.html"><i class="bi bi-link-45deg"></i> Gallery</a></li>
<li><a href="contact.html"><i class="bi bi-telephone-fill"></i> Contact</a></li>
</ul>
</div>
<!-- Contact Us Section -->
<div class="col-md-4">
<h5>Contact Us</h5>
<ul class="office-details">
<li><i class="bi bi-envelope-fill"></i> Email: <a href="mailto:[email protected]">[email protected]</a>
</li>
<li><i class="bi bi-whatsapp"></i> WhatsApp: <a href="https://wa.me/9779851007984" target="_blank">+9779851007984</a>
</li>
<li><i class="bi bi-telephone-fill"></i> Phone: <a href="tel:+9779851007984">+9779851007984</a>
</li>
<!-- Remixicon CSS CDN -->
<link href="https://cdn.jsdelivr.net/npm/remixicon/fonts/remixicon.css" rel="stylesheet">
<!-- Social Media Icons with Remixicon -->
<li>
<i class="ri-facebook-fill icon facebook" style="font-size: 30px;"></i>
<i class="ri-instagram-fill icon instagram" style="font-size: 30px;"></i>
<i class="ri-youtube-fill icon youtube" style="font-size: 30px;"></i>
<i class="ri-whatsapp-fill icon whatsapp" style="font-size: 30px;"></i>
</li>
<li>
<!-- Modal Trigger Button for Contact Form -->
<a href="#" class="btn-contact" data-bs-toggle="modal" data-bs-target="#contactModal"><i class="bi bi-envelope-paper-fill"></i> Contact Form</a>
</li>
</ul>
</div>
<!-- Office Details Section -->
<div class="col-md-4">
<h5>Office Info</h5>
<ul class="office-details">
<li><i class="bi bi-geo-alt-fill"></i> Address: <br> Office of the Honorary Consul, Kathmandu, Nepal</li>
<li><i class="bi bi-clock-fill"></i> Office Hours: <br> Mon - Fri: 9:00 AM - 5:00 PM</li>
<li><i class="bi bi-calendar-event-fill"></i> Saturday: Closed</li>
</ul>
</div>
</div>
</div>
<!-- Copyright Section -->
<div class="copyright container px-3">
© 2024 Office of the <a><span> Honorary Consul of The Hashemite Kingdom of Jordan</span></a> in Nepal. All rights reserved.
</div>
</footer>
<!-- Contact Form Modal -->
<div class="modal fade" id="contactModal" tabindex="-1" aria-labelledby="contactModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="contactModalLabel"><i class="bi bi-envelope-paper-fill"></i> Contact Form</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<!-- iframe to load external form -->
<iframe src="contactForm.html" style="width: 100%; height: 500px; border: none;"></iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- =============== end Footer ================ -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/swiper-bundle.min.js"></script>
<script src="assets/js/global.js"></script>
<script src="assets/js/gallery.js"></script>
</body>
</html>