-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (108 loc) · 7.41 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>GALLERY</title>
<link rel="icon" type="images/x-icon" href="fav.png">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/all.min.css">
<link rel="stylesheet" type="text/css" href="css/brands.min.css">
<link rel="stylesheet" type="text/css" href="css/fontawesome.min.css">
<link rel="stylesheet" type="text/css" href="css/regular.min.css">
<link rel="stylesheet" type="text/css" href="css/solid.min.css">
</head>
<body>
<div>
<button class="btn btn-outline-primary p-3 m-4" onclick="sall()"> ALL </button>
<button class="btn btn-outline-danger p-3 m-4" onclick="books()"> BOOKS </button>
<button class="btn btn-outline-success p-3 m-4 " onclick="places()"> PLACES </button>
</div>
<div id="sall">
<img src="images/1.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/2.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/3.webp" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/4.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/5.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/6.jfif" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/7.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/8.jfif" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/a.webp" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/c.webp" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/d.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/e.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/f.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/g.webp" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/h.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
<img src="images/b.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoom(this.src)">
</div>
<div id='books'>
<img src="images/1.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoome(this.src)">
<img src="images/2.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoome(this.src)">
<img src="images/3.webp" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoome(this.src)">
<img src="images/4.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoome(this.src)">
<img src="images/5.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoome(this.src)">
<img src="images/6.jfif" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoome(this.src)">
<img src="images/7.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoome(this.src)">
<img src="images/8.jfif" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoome(this.src)">
</div>
<div id="places">
<img src="images/a.webp" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoomr(this.src)">
<img src="images/c.webp" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoomr(this.src)">
<img src="images/d.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoomr(this.src)">
<img src="images/e.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoomr(this.src)">
<img src="images/f.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoomr(this.src)">
<img src="images/g.webp" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoomr(this.src)">
<img src="images/h.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoomr(this.src)">
<img src="images/b.jpg" alt="gallery" class="img-fluid img-thumbnail mx-4 my-4 border-5" onclick="zoomr(this.src)">
</div>
<div id="cbox">
<i class="fa-solid fa-xmark icon" onclick="wclose()"></i>
<img src="" id="ebox"></img>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script>
document.getElementById('books').style.cssText="display:none;";
document.getElementById('places').style.cssText="display:none;";
document.getElementById('sall').style.cssText="display:block;";
function books(){
document.getElementById('books').style.cssText="display:block;width:70%;float:left";
document.getElementById('places').style.cssText="display:none;";
document.getElementById('sall').style.cssText="display:none;";
}
function places(){
document.getElementById('books').style.cssText="display:none;";
document.getElementById('places').style.cssText="display:block;width:70%;float:left";
document.getElementById('sall').style.cssText="display:none;";
}
function sall(){
document.getElementById('books').style.cssText="display:none;";
document.getElementById('places').style.cssText="display:none;";
document.getElementById('sall').style.cssText="display:block;width:70%;float:left";
}
function zoom(asource){
document.getElementById('ebox').src=asource;
document.getElementById('cbox').style.cssText="transform:scale(1.5);";
document.getElementsByTagName('div')[0].style.cssText="width:100%;float:left"
document.getElementsByTagName('div')[1].style.cssText="width:70%;float:left; "
}
function zoome(bsource){
document.getElementById('ebox').src=bsource;
document.getElementById('cbox').style.cssText="transform:scale(1.5);";
}
function zoomr(csource){
document.getElementById('ebox').src=csource;
document.getElementById('cbox').style.cssText="transform:scale(1.5);";
}
function wclose(){
document.getElementById('cbox').style.cssText=" transform:scale(0);";
}
</script>
<script src="js/all.min.js"></script>
<script src="js/brands.min.js"></script>
<script src="js/fontawesome.min.js"></script>
<script src="js/regular.min.js"></script>
<script src="js/solid.min.js"></script>
</body>
</html>