From bea3761810ec1e6427c4a282fc88ec97f4b68723 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 31 Jul 2025 22:20:26 -0400 Subject: [PATCH] youtube embeds are now movable + resizable --- startpage.html | 78 ++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 63 insertions(+), 15 deletions(-) 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", ` +
+
+