forked from SofyanWB/smartrdtr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
infografis.html
117 lines (97 loc) · 2.93 KB
/
infografis.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.modal {
z-index: 1;
display: none;
padding-top: 10px;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.8)
}
.modal-content {
margin: auto;
display: block;
position: absolute;
top: 75%;
left: 50%;
transform: translate(-50%, -50%);
}
.modal-hover-opacity {
opacity: 1;
filter: alpha(opacity=100);
-webkit-backface-visibility: hidden
}
.modal-hover-opacity:hover {
opacity: 0.60;
filter: alpha(opacity=60);
-webkit-backface-visibility: hidden
}
.close {
text-decoration: none;
float: right;
font-size: 24px;
font-weight: bold;
color: white
}
.container1 {
width: 350px;
display: inline-block;
}
.modal-content,
#caption {
-webkit-animation-name: zoom;
-webkit-animation-duration: 0.6s;
animation-name: zoom;
animation-duration: 0.6s;
}
@-webkit-keyframes zoom {
from {
-webkit-transform: scale(0)
}
to {
-webkit-transform: scale(0.5)
}
}
@keyframes zoom {
from {
transform: scale(0)
}
to {
transform: scale(0.5)
}
}
</style>
<script>
function onClick(element) {
document.getElementById("img01").src = element.src;
document.getElementById("modal01").style.display = "block";
}
</script>
</head>
<body>
<div class="container1">
<img src="https://jakartasatu.jakarta.go.id/portal/sharing/rest/content/items/926f732b9b1a4da7ae80d0bb88db537d/data"
style="max-width:100%;cursor:pointer" onclick="onClick(this)" class="modal-hover-opacity">
</div>
<div class="container1">
<img src="https://jakartasatu.jakarta.go.id/portal/sharing/rest/content/items/1834ae3afd994e398d7f553c3d7b5857/data"
style="max-width:100%;cursor:pointer" onclick="onClick(this)" class="modal-hover-opacity">
</div>
<div id="modal01" class="modal" onclick="this.style.display='none'">
<span class="close">× </span>
<div class="modal-content">
<img id="img01" style="max-width:100%">
</div>
</div>
</body>
</html>