From ba235ac2bdb2d20b8b4dca2070b4ff347fe46114 Mon Sep 17 00:00:00 2001 From: nonmakina Date: Fri, 29 Jan 2021 20:55:23 -0600 Subject: [PATCH] Introduces the youtube embed changes. This is a consolidation of the January youtube.js changes --- js/youtube.js | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/js/youtube.js b/js/youtube.js index 9fe81b60..2eca99ae 100644 --- a/js/youtube.js +++ b/js/youtube.js @@ -24,22 +24,34 @@ onready(function(){ - var do_embed_yt = function(tag) { - $('div.video-container a', tag).click(function() { - var videoID = $(this.parentNode).data('video'); - - $(this.parentNode).html('