From 1e1773c0479ba774c986a8d4e758dc18031bfc26 Mon Sep 17 00:00:00 2001 From: Sophia Atkinson Date: Sun, 17 Sep 2023 21:51:55 -0700 Subject: [PATCH] Fixed errors and styles Just some tweaks, changed from a standard youtube iframe to a stylized css+js combo that looks better on the page I also fixed compatability issues with older browsers and Safari. --- content/playthrough.md | 10 +++- static/js/youtube.js | 1 + static/site.webmanifest | 4 +- .../assets/css/template-styles.css | 56 ++++++++++++++++++- .../layouts/partials/head.html | 2 +- 5 files changed, 66 insertions(+), 7 deletions(-) create mode 100644 static/js/youtube.js diff --git a/content/playthrough.md b/content/playthrough.md index b890849..2b67481 100644 --- a/content/playthrough.md +++ b/content/playthrough.md @@ -2,8 +2,14 @@ date: "07-10-2021" title: "Playthrough" --- + + + +
--- @@ -35,4 +41,4 @@ title: "Playthrough" [2:01:49](https://youtube.com/watch?v=WxTp-I0O8TU&t=7309s) Credits -*Also in pinned comment and description* +*Also in pinned comment and description* \ No newline at end of file diff --git a/static/js/youtube.js b/static/js/youtube.js new file mode 100644 index 0000000..4715a86 --- /dev/null +++ b/static/js/youtube.js @@ -0,0 +1 @@ +function labnolIframe(e){var t=document.createElement("iframe");t.setAttribute("src","https://www.youtube.com/embed/"+e.dataset.id+"?autoplay=1"),t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","1"),t.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),e.parentNode.replaceChild(t,e)}function initYouTubeVideos(){for(var e=document.querySelectorAll(".youtube-player"),t=0;t + {{ partial "easteregg.html" . }} {{ hugo.Generator }}