From cf3d6a9beba6b3772534aeef811ad9493e169890 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 7 Sep 2021 00:39:28 +0200 Subject: [PATCH] df --- files/templates/default.html | 19 +++++++++++++++++++ files/templates/expanded_video_modal.html | 7 ++----- files/templates/submission_listing.html | 8 ++++++++ 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/files/templates/default.html b/files/templates/default.html index 97f069014..7d4dc7ce1 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -484,6 +484,25 @@ linkText.textContent = 'View original'; }; + + // Expand Videos on Desktop + + function expandDesktopVideo(video, link) { + + // Link text + + var linkText = document.getElementById("desktop-expanded-video-link"); + var videoLink = document.getElementById("desktop-expanded-video-wrap-link"); + + var inlineVideo = document.getElementById("desktop-expanded-video"); + + inlineVideo.src = video.replace("100w.gif", "giphy.gif"); + linkText.href = video; + videoLink.href=video; + + linkText.textContent = 'View original'; + }; + post_comment=function(fullname){ diff --git a/files/templates/expanded_video_modal.html b/files/templates/expanded_video_modal.html index cb95a85ea..c6afb2603 100644 --- a/files/templates/expanded_video_modal.html +++ b/files/templates/expanded_video_modal.html @@ -1,13 +1,13 @@ -