-
Notifications
You must be signed in to change notification settings - Fork 1
/
myPag.html
156 lines (143 loc) · 3.99 KB
/
myPag.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial;
}
/* The grid: Four equal columns that floats next to each other */
.column {
float: left;
width: 5%;
padding: 10px;
}
/* Style the images inside the grid */
.column img {
opacity: 0.8;
cursor: pointer;
}
.column img:hover {
opacity: 1;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
/* The expanding image container */
.container {
margin: auto;
position: relative; /* or absolute */
top: 50%;
left: 50%;
display: none;
}
/* Expanding image text */
#imgtext {
position: absolute;
bottom: 15px;
left: 15px;
color: white;
font-size: 20px;
}
/* Closable button inside the expanded image */
.closebtn {
position: absolute;
top: 10px;
right: 15px;
color: white;
font-size: 35px;
cursor: pointer;
}
</style>
</head>
<body>
<div style="text-align:center">
<h2>Personas detectadas</h2>
<p>Click para agrandar</p>
</div>
<!-- The four columns -->
<div class="row">
<div class="column">
<img src="savedpictures/dummy0.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy1.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy2.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy3.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy4.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy5.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy6.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy7.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy8.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy9.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy10.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy11.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy12.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy13.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy14.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy15.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy16.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy17.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy18.bmp" style="width:100%" onclick="myFunction(this);">
</div>
<div class="column">
<img src="savedpictures/dummy19.bmp" style="width:100%" onclick="myFunction(this);">
</div>
</div>
<div class="container">
<span onclick="this.parentElement.style.display='none'" class="closebtn">×</span>
<img id="expandedImg" style="width:10%">
<div id="imgtext"></div>
</div>
<script>
function myFunction(imgs) {
var expandImg = document.getElementById("expandedImg");
var imgText = document.getElementById("imgtext");
expandImg.src = imgs.src;
imgText.innerHTML = imgs.alt;
expandImg.parentElement.style.display = "block";
}
</script>
</body>
</html>