diff --git a/startpage.html b/startpage.html index b12a6f6..0279108 100644 --- a/startpage.html +++ b/startpage.html @@ -60,6 +60,20 @@ flex-direction: column; width: 100%; margin: auto; + overflow: auto; + } + + .youtubeEmbed { + width: 100%; + height: 100%; + position:absolute; + border: none; + } + .youtubeEmbedCover { + width: 100%; + height: 100%; + background-color: rgba(250,0,0,.5); + position: absolute; } .section { @@ -488,7 +502,7 @@ -

for reference: cursors

+

for reference: cursors

@@ -537,7 +551,7 @@
todo: -
add youtube iframe support +
add youtube autoplay support
rename stuff. containerSettings -> container | better function names | imageUrl -> mediaUrl | etc. @@ -682,7 +696,7 @@ this.containerSettings.zIndex = numberOfImageContainers + numberOfTextContainers; } - if (imageUrl.includes("youtube.com")) { + if (imageUrl.includes("youtube.com") || imageUrl.includes("youtu.be")) { this.initializeYoutubeContainer(); } else { @@ -737,7 +751,7 @@ "beforeend", ` +
+
+