From f56be1f4007c924f4adb1a464aacb36639bab6e1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 8 Aug 2021 20:46:27 +0200 Subject: [PATCH] fd --- files/templates/default.html | 28 +---------------------- files/templates/expanded_video_modal.html | 23 +++++++++++++++++++ files/templates/submission_listing.html | 26 +++++++++++---------- 3 files changed, 38 insertions(+), 39 deletions(-) create mode 100644 files/templates/expanded_video_modal.html diff --git a/files/templates/default.html b/files/templates/default.html index b1be4ede6..276ad50e1 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -453,18 +453,6 @@ // Expand Images on Desktop - $('.expandable-image').click( function(event) { - - if (event.which != 1) { - return - } - event.preventDefault(); - - var url= $(this).data('url'); - - expandDesktopImage(url,url); - }) - function expandDesktopImage(image, link) { // Link text @@ -482,20 +470,6 @@ }; - // Expand Videos on Desktop - - $('.expandable-video').click( function(event) { - - if (event.which != 1) { - return - } - event.preventDefault(); - - var url= $(this).data('url'); - - expandDesktopVideo(url,url); - }) - function expandDesktopVideo(video, link) { // Link text @@ -505,7 +479,7 @@ var inlineVideo = document.getElementById("desktop-expanded-video"); - inlineVideo.src = Video.replace("100w.gif", "giphy.gif"); + inlineVideo.src = Video + "?controls=0"; linkText.href = Video; imgLink.href=Video; diff --git a/files/templates/expanded_video_modal.html b/files/templates/expanded_video_modal.html new file mode 100644 index 000000000..533e42295 --- /dev/null +++ b/files/templates/expanded_video_modal.html @@ -0,0 +1,23 @@ + + + + + +
\ No newline at end of file diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 5abdc16e2..95a064b6b 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -65,21 +65,23 @@
{% if not p.url %} - - - + + + {% elif p.is_image %} - - - +
+ Unable to load image + +
{% elif "streamable.com" in p.url %} - - - +
+ Unable to load video + +
{% else %} - - - + + + {% endif %}