Skip to content

Commit f9fd54e

Browse files
committed
Added YouTube embed
1 parent 27597b8 commit f9fd54e

3 files changed

Lines changed: 23 additions & 3 deletions

File tree

css/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ h2{
264264
font-size:1.25em;
265265
}
266266

267+
#videoEmbed{
268+
width: 100%;
269+
height: 0px;
270+
}
271+
267272
@supports (backdrop-filter:blur(5px)){
268273
header{
269274
-webkit-backdrop-filter: blur(5px);

index.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<ul>
3333
<li><a href="#description">Info</a></li>
3434
<li><a href="#schedule">Schedule</a></li>
35+
<li><a href="#videos">Videos</a></li>
3536
<li><a href="#officers">Officers</a></li>
3637
</ul>
3738
</nav>
@@ -79,6 +80,15 @@ <h1>Schedule</h1>
7980
</tbody>
8081
</table>
8182
</section>
83+
<section id="videos">
84+
<h1>Videos</h1>
85+
<p>Watch our recorded lectures on <a href="https://www.youtube.com/channel/UCM_BhJcNcFY5ZKlt6kecCqg">our
86+
YouTube channel</a>!</p>
87+
<iframe id="videoEmbed"
88+
src="https://www.youtube.com/embed/videoseries?list=PLycZCPHqsWVC9YFfcqQ9r1GDZHh81fYlk" frameborder="0"
89+
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
90+
allowfullscreen></iframe>
91+
</section>
8292
<section id="officers">
8393
<h1>Officers</h1>
8494
<div id="people">
@@ -157,7 +167,7 @@ <h1>Officers</h1>
157167
</a>
158168
</p>
159169
</span>
160-
170+
161171

162172
<!-- Hillary -->
163173
<span style="width: 270;" class="person">
@@ -195,4 +205,4 @@ <h1>Questions?</h1>
195205
<script src="js/index.js"></script>
196206
</body>
197207

198-
</html>
208+
</html>

js/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ document.querySelector("#menu-activate").addEventListener("click", () => {
2929
document.querySelectorAll("#hero-img path").forEach(it => {
3030
it.style.strokeDasharray = it.getTotalLength();
3131
it.style.strokeDashoffset = it.getTotalLength();
32-
});
32+
});
33+
34+
let iframe = document.getElementById("videoEmbed");
35+
iframe.onload = () => {
36+
iframe.style.height = iframe.offsetWidth * 0.5625 + "px";
37+
}

0 commit comments

Comments
 (0)