-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcyclerally.html
121 lines (109 loc) · 4.13 KB
/
cyclerally.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>cyclerally</title>
<link rel="icon" type="image/png" href="signature.png">
<style media="screen">
html,
body{
margin: 2px;
padding:0;
background-image: radial-gradient(farthest-side at 60% 45%, #FF7F50, #BC8F8F, #DAA520);
}
/* The grid: Four equal columns that floats next to each other */
#thumb3 {
float: left;
width: 150px;
height: auto;
padding: 10px;
opacity: 0.8;
cursor: pointer;
}
/* Style the images inside the grid */
#thumb3:hover {
opacity: 1;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
/* Clear floats after the columns */
.imgrow3:after {
content: "";
display: table;
clear: both;
}
/* The expanding image container (positioning is needed to position the close button and the text) */
.containerimg3 {
position: relative;
display: none;
overflow: auto;
white-space: nowrap;
}
/* Expanding image text */
#imgtext3 {
position: absolute;
bottom: 20px;
left: 120px;
color: white;
background-color: #A9A9A9;
font-size: 20px;
}
/* Closable button inside the image */
.closebtn3 {
position: absolute;
top: 10px;
right: 15px;
color: #FF0000;
font-size: 90px;
cursor: pointer;
}
</style>
</head>
<body>
<h2 style="color: #8A2BE2; text-align: center;">SXC Cycle Rally 2020</h2>
<p style="text-align: center; font-size: 1.5rem;">Volunteered in Cycle Rally program organized by SET club of our own St. Xavier's College(SXC) with the theme 'Ride against Cancer'.</p>
<!-- The grid: four columns -->
<div class="imgrow3" style="margin-left: 50px;">
<div class="columnimg3">
<img src="IMG_20200131_163420.jpg" alt="Am a rider!" onclick="myImgFunction3(this);" id="thumb3">
</div>
<div class="columnimg3">
<img src="IMG_20200131_150531.jpg" alt="Ranjit, me and Bibek!" onclick="myImgFunction3(this);" id="thumb3">
</div>
<div class="columnimg3">
<img src="IMG_20200131_151045.jpg" alt="Me and Bibek!" onclick="myImgFunction3(this);" id="thumb3">
</div>
<div class="columnimg3">
<img src="IMG_20200131_151141.jpg" alt="Bibek, the rider!" onclick="myImgFunction3(this);" id="thumb3">
</div>
<div class="columnimg3">
<img src="IMG_20200201_072006.jpg" alt="Departing for respective places to Volunteer." onclick="myImgFunction3(this);" id="thumb3">
</div>
<div class="columnimg3">
<img src="IMG_20200201_072015.jpg" alt="It's a rush!" onclick="myImgFunction3(this);" id="thumb3">
</div>
</div>
<!-- The expanding image container -->
<div class="containerimg3">
<!-- Close the image -->
<span onclick="this.parentElement.style.display='none'" class="closebtn3">×</span>
<!-- Expanded image -->
<img id="expandedImg3" style="width: 1000px; margin-left: 100px;">
<!-- Image text -->
<div id="imgtext3"></div>
</div>
<script type="text/javascript">
function myImgFunction3(imgs3) {
// Get the expanded image
var expandImg3 = document.getElementById("expandedImg3");
// Get the image text
var imgText3 = document.getElementById("imgtext3");
// Use the same src in the expanded image as the image being clicked on from the grid
expandImg3.src = imgs3.src;
// Use the value of the alt attribute of the clickable image as text inside the expanded image
imgText3.innerHTML = imgs3.alt;
// Show the container element (hidden with CSS)
expandImg3.parentElement.style.display = "block";
}
</script>
</body>
</html>