-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
109 lines (91 loc) · 2.04 KB
/
index.html
File metadata and controls
109 lines (91 loc) · 2.04 KB
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
<!DOCTYPE html>
<html>
<comment https://www.w3schools.com/howto/howto_css_image_grid_responsive.asp ></comment>
<style>
.row {
display: flex;
flex-wrap: wrap;
padding: 0 4px;
}
.column {
flex: 24.2%;
max-width: 24.2%;
padding: 0 4px;
}
.column img {
margin-top: 8px;
vertical-align: middle;
width: 100%;
}
.image-wrapper {
position: relative;
display: inline-block;
}
.image-wrapper img {
max-width: 100%;
height: auto;
display: block; /* Remove space below images */
}
.image-tooltip {
position: absolute;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
color: white;
width: 100%;
text-align: center;
padding: 10px;
box-sizing: border-box;
display: none;
}
.image-wrapper:hover .image-tooltip {
display: block;
}
/* Style for the modal */
.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.9);
}
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
}
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
cursor: pointer;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script>
<script src="script.js"></script>
<body>
<div class="row">
<div class="column">
</div>
<div class="column">
</div>
<div class="column">
</div>
<div class="column">
</div>
</div>
<div id="myModal" class="modal">
<span class="close">×</span>
<img class="modal-content" id="modalImage">
<div id="caption"></div>
</div>
</body>
</html>