-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.html
273 lines (234 loc) · 9.69 KB
/
gallery.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!DOCTYPE HTML>
<!--
Broadcast by TEMPLATED
templated.co @templatedco
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
-->
<html>
<head>
<title>AHS SciOly | Gallery</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="assets/css/main.css" />
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<script>
var cnt = 0;
function chng() {
var rotator = document.getElementById('rr');
var images = ['https://lh3.googleusercontent.com/0AuVmVEU0BRX70-GCdtK9P7913WuPVzE_KExtt9f5_G1Xv9V97TNZVDLv9vyvftJIYEXqx8PTR7u8AxtU0HXcbWuzTRI2FPSmUu4_0g2WY2Ef3nNmVVb-nueF4KEbaiQS7RDGkEdwi4=w2400?source=screenshot.guru', 'https://lh3.googleusercontent.com/L7mKcVIsEPs-QgEprItYQGUEN3KPzcGnFVk_KKWMw5f0fAIRJdIrKc-K4JXQvbchk5ysG8YHbjZV-QD2jAAwu7RumQLfS0eVvVP5nIazoYjLZOtAGJpNhSR3GX0PnVI_lvcf7tajmAk=w2400?source=screenshot.guru','https://lh3.googleusercontent.com/JCvvq1fOCIUKJghpu0c6O-uLALCj9KR61gGQhwzk8rBq-bWLADsoH7S79u1O6-orFsrslJvFY_FkVagLs5zreP8_YgTBC6S-fEylXZ_R0lnCALo7AR9m8IS49hTrEOlnvPu5aMWiytM=w2400?source=screenshot.guru','memes/science4.jpeg','memes/science5.png','memes/science6.png','https://lh3.googleusercontent.com/ncplL6PhMrdwzL9cEAyUpiyExX_c67FK5vY4J5CpdQnrJk7xDBJp7AwqMqOc105mBZ-0fj-Mgh9Q2TihqC_f5aXPG-xzGVPZ5LpD2MhBmPExi27_q1CuGEx271byX66rzoy5qxzTt4E=w2400?source=screenshot.guru'];
rr.src = images[cnt]
cnt++;
//window.alert(cnt);
if (cnt > images.length-1)
{
cnt = 0;
}
}
</script>
</head>
<body class="subpage">
<!-- Header -->
<header id="header">
<h1><a href="index.html">Science Olympiad <span>American High School</span></a></h1>
<a href="#menu">Menu</a>
</header>
<!-- Nav -->
<nav id="menu">
<ul class="links">
<li><a href="index.html">Home</a></li>
<li><a href="index.html#main">About Us</a></li>
<li><a href="teammembers.html">Team Members</a></li>
<li><a href="sponsors.html">Sponsors</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="timeline.html">Past, Present, and Future</a></li>
<li><a href="resources.html">Resources</a></li>
<li><a href="contact.html">Contact Us!</a></li>
</ul>
</nav>
<!-- Main -->
<div id="main">
<!-- One -->
<section class="wrapper style2" id = "titles">
<div class="inner">
<header class="align-center">
<h2>Gallery</h2>
</header>
</div>
</section>
<!-- videos -->
<section class="wrapper style1">
<div class="inner">
<header class="align-center">
<h2>Videos</h2>
</header>
<div class = "flex flex-3">
<div class = "col">
<iframe src="https://www.youtube.com/embed/ntCA69_15z0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class = "col">
<iframe src="https://www.youtube.com/embed/ss4WP0MX5hM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class = "col">
<iframe src="https://www.youtube.com/embed/uwOIlo_eL9A" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
</div>
</section>
<!-- images -->
<section class="wrapper ">
<div class="inner">
<header class="align-center">
<h2>Images</h2>
<p>Click to enlarge images. Navigate using left/ right arrow keys.</p>
</header>
<!-- 3 Column Video Section -->
<div class="flex flex-3">
<div class="video col" data-aos="fade-up">
<div class="image fit">
<img src="images/pic1.png" alt="" onclick='zoom(0)'/>
</div>
</div>
<div class="video col" data-aos="fade-up">
<div class="image fit">
<img src="images/pic2.jpg" alt="" onclick='zoom(1)'/>
</div>
</div>
<div class="video col" data-aos="fade-up">
<div class="image fit">
<img src="images/pic3.jpg" alt="" onclick='zoom(2)'/>
</div>
</div>
<div class="video col" data-aos="fade-up">
<div class="image fit tall">
<img src="images/pic6.png" alt="" onclick='zoom(3)'/>
</div>
</div>
<div class="video col" data-aos="fade-up">
<div class="image fit">
<img src="images/pic5.jpg" alt="" onclick='zoom(4)'/>
</div>
</div>
<!--<div class="video col">
<div class="image fit">
<img src="images/pic6.png" alt="" />
</div>
</div>-->
<div class="video col" data-aos="fade-up">
<div class="image fit tall">
<img src="images/pic7.png" alt="" onclick='zoom(5)'/>
</div>
</div>
<div class="video col" data-aos="fade-up">
<div class="image fit">
<img src="images/pic8.jpg" alt="" onclick='zoom(6)'/>
</div>
</div>
<div class="video col" data-aos="fade-up">
<div class="image fit">
<img src="images/pic9.png" alt="" onclick='zoom(7)'/>
</div>
</div>
<div class="video col" data-aos="fade-up">
<div class="image fit">
<img src="images/award.jpg" alt="" onclick='zoom(8)'/>
</div>
</div>
<!-- The Modal DO NOT EDIT THIS-->
<div id="myModal" class="modal">
<!-- The Close Button -->
<span class="close2">×</span>
<!-- Modal Content (The Image) -->
<img class="modal-content" id="img01">
<!-- Modal Caption (Image Text) -->
<div id="caption"></div>
<!-- The Left Button -->
<span class="lbutton"><</span>
<!-- The Right Button -->
<span class="rbutton">></span>
</div>
</div>
</div>
</section>
<section class="wrapper memes">
<div class="inner">
<header class="align-center">
<h2>Memes</h2>
<img src="https://lh3.googleusercontent.com/ncplL6PhMrdwzL9cEAyUpiyExX_c67FK5vY4J5CpdQnrJk7xDBJp7AwqMqOc105mBZ-0fj-Mgh9Q2TihqC_f5aXPG-xzGVPZ5LpD2MhBmPExi27_q1CuGEx271byX66rzoy5qxzTt4E=w2400?source=screenshot.guru" id="rr" height="500">
<div>
<input type="button" value=" Next" onclick="chng()"
button style="width: 200px; height: 50px;">
</header>
</section>
</div>
</div>
<!-- Footer -->
<footer id="footer">
<div class="copyright">
© AHS SciOly. Design: <a href="https://templated.co">TEMPLATED</a>.
</div>
</footer>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script>
var index = 0;
var pics = ["pic1.png", "pic2.jpg", "pic3.jpg", "pic6.png", "pic5.jpg", "pic7.png", "pic8.jpg", "pic9.png", "award.jpg"];
var captions = ["Two of our team members were featured in a video by YouTube star Mark Rober!", "Wright Stuff", "Helicopters", "Boomilever", "Sweet Tomatoes Team Bonding Event 2020", "Stuffed eagle thrown at Rhea (and dropped on ground).", "Officer team 2019-2020", "Sweet Tomatoes Team Bonding Event 2020", "The team receiving the trophy at 2020 BARSO Regionals."]
// code for zooming in on images
var modal = document.getElementById("myModal");
var modalImg = document.getElementById("img01");
var captionText = document.getElementById("caption");
function change_image(ind) {
modalImg.src = "images/"+pics[ind];
captionText.innerHTML = captions[index];
}
function zoom(imag, caption) {
modal.style.display = "block";
index = imag;
change_image(index);
}
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close2")[0];
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
}
var left = document.getElementsByClassName("lbutton")[0];
var right = document.getElementsByClassName("rbutton")[0];
left.onclick = function() {
if(index > 0){
index --;
change_image(index);
}
}
right.onclick = function() {
if(index < (pics.length-1)){
index ++;
change_image(index);
}
}
document.onkeyup = function(e) {
switch (e.keyCode) {
case 37: // left key
if(index > 0){
index --;
change_image(index);
break;
}
case 39: // right key
if(index < (pics.length-1)){
index ++;
change_image(index);
}
}
};
AOS.init({
duration: 500,
})
</script>
</body>
</html>