-
Notifications
You must be signed in to change notification settings - Fork 0
/
galery2.html
98 lines (85 loc) · 4.04 KB
/
galery2.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- bootstrap 5 -->
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="style/gallery.css">
<link rel="stylesheet" href="style/mdb.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Qahiri&display=swap" rel="stylesheet">
<!-- <link rel="stylesheet" href="style2.css"> -->
<title>gallery</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src="" alt="">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" target="" href="https://darulmuqimin.github.io/dm/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">tentang kami</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">project</a>
</li>
<li class="nav-item">
<a class="nav-link" target="__blank" href="https://ponpesdarulmuqimin.blogspot.com/">blog</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
lain-lain
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="#">galery</a></li>
<li><a class="dropdown-item" href="#">info dan pengumuman</a></li>
<li><a class="dropdown-item" href="#">pendaftaran online</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="box">
<img src="image/gallery/BAN.jpg" class="card" type="" style="width: 100%; height: 75%;">
</div>
</div>
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script>
const container = document.querySelector('.container');
const card = document.querySelector('.card');
const thumbs= document.querySelectorAll('.thumb');
container.addEventListener('click', function(e) {
if ( e.target.className == 'thumb' ) {
card.src = e.target.src;
// card.classList.add('fade');
// setTimeout(function() {
// card.classList.remove('fade');
// }, 500);
// thumbs.forEach(function(thumb) {
// if( thumb.classList.contains('active') ) {
// thumb.classList.remove('active');
// }
// });
// e.target.classList.add('active');
}
});
</script>
</body>
</html>