-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (46 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Modal Gallery</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Welcome to my gallery!</h1>
<div class="gallery">
<div class="item">
<img
src="https://mimo.app/i/whispurr.png"
alt="Whispurr"
class="thumbnail"
onclick="showModal(this)"
/>
<h2>Whispurr</h2>
</div>
<div class="item">
<img
src="https://mimo.app/i/babaganoosh.png"
alt="Babaganoosh"
class="thumbnail"
onclick="showModal(this)"
/>
<h2>Babaganoosh</h2>
</div>
<div class="item">
<img
src="https://mimo.app/i/nacho.png"
alt="Nacho"
class="thumbnail"
onclick="showModal(this)"
/>
<h2>Nacho</h2>
</div>
</div>
<div id="modal">
<span id="modal-close-button" onclick="hideModal()">x</span>
<img id="modal-content" alt="">
</div>
</body>
<script src="script.js"></script>
</html>