-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (61 loc) · 2.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="style.css" />
<title>Modal window</title>
</head>
<body>
<button class="show-modal" data-model="model1">Show modal 1</button>
<button class="show-modal" data-model="model2">Show modal 2</button>
<button class="show-modal" data-model="model3">Show modal 3</button>
<!-- Modal 1 -->
<div class="modal hidden" id="model1">
<div class="modal-body">
<button class="close-modal">×</button>
<h1>I'm a modal window 1😍</h1>
<div class="modal-desc">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
</p>
</div>
</div>
</div>
<!-- Modal 1 -->
<!-- Modal 2 -->
<div class="modal hidden" id="model2">
<div class="modal-body">
<button class="close-modal">×</button>
<h1>I'm a modal window 2😍</h1>
<div class="modal-desc">
<div class="pic">
<img src="https://via.placeholder.com/200/0000FF/808080 ?Text=Digital.com" alt="" srcset="">
</div>
</div>
</div>
</div>
<!-- Modal 2 -->
<!-- Modal 3 -->
<div class="modal hidden" id="model3">
<div class="modal-body">
<button class="close-modal">×</button>
<h1>I'm a modal window 3😍</h1>
<div class="modal-desc">
<p>
ssss
</p>
</div>
</div>
</div>
<!-- Modal 3 -->
<script src="script.js"></script>
</body>
</html>