Skip to content

Commit

Permalink
Merge pull request #24 from Joehuu/fix-gfycat-showcases
Browse files Browse the repository at this point in the history
Fix some broken showcases due to gfycat shutting down
  • Loading branch information
jsmorley authored Nov 4, 2024
2 parents 6f330e6 + c43670b commit 9a4c63c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
Binary file added source/img/showcase/HowlingATAT.webm
Binary file not shown.
Binary file added source/img/showcase/ZeldaTheme2.webm
Binary file not shown.
Binary file added source/img/showcase/cleanDaftPunk.webm
Binary file not shown.
12 changes: 6 additions & 6 deletions themes/rainmeter-www/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ carousel:

# Showcase gallery
gallery:
- type: 'gfycat'
- type: 'video'
link: https://www.reddit.com/r/Rainmeter/comments/5rg8fp/howling_atat/
thumbnailURL: img/showcase/thumb_HowlingATAT.png
content: BestInsecureHowlermonkey
content: img/showcase/HowlingATAT.webm
title: 'Howling AT-AT'
author: 'Jumats'
- type: 'image'
Expand All @@ -84,10 +84,10 @@ gallery:
content: img/showcase/cyberpunkcoffee.gif
title: 'Cyberpunk Coffee'
author: 'Labr4t'
- type: 'gfycat'
- type: 'video'
link: https://www.reddit.com/r/Rainmeter/comments/5erns9/a_clean_daft_punk_setup_giving_life_back_to_music/
thumbnailURL: img/showcase/thumb_cleanDaftPunk.png
content: GreatShadyAegeancat
content: img/showcase/cleanDaftPunk.webm
title: 'Clean Daft Punk setup'
author: 'The_siderian'
- type: 'video'
Expand All @@ -108,10 +108,10 @@ gallery:
content: img/showcase/geometry.png
title: 'Geometry Rainmeter'
author: 'Iroaseta'
- type: 'gfycat'
- type: 'video'
link: https://www.reddit.com/r/Rainmeter/comments/6gv77s/so_this_is_the_volume2_of_my_zelda_theme/
thumbnailURL: img/showcase/thumb_ZeldaTheme2.png
content: WelldocumentedGlossyAnkolewatusi
content: img/showcase/ZeldaTheme2.webm
title: 'Zelda theme 2.0'
author: 'NicoNoFace'

Expand Down
10 changes: 0 additions & 10 deletions themes/rainmeter-www/layout/_partial/index/gallery.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@
Your browser does not support HTML5 videos.
</video>
<% } %>
<% if (gallery.type === 'gfycat') { %>
<a class="col-12 col-md-4" data-fancybox="gallery" data-src="#video<%=i%>" data-caption="<%= caption %>">
<img data-src="<%- gallery.thumbnailURL %>" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" onload="lzld(this)" alt="<%- gallery.title %> by <%- gallery.author %>">
</a>
<video class="fancybox-video" id="video<%=i%>" loop muted controls>
<source src="https://zippy.gfycat.com/<%- gallery.content %>.webm" type="video/webm">
<source src="https://giant.gfycat.com/<%- gallery.content %>.mp4" type="video/mp4">
Your browser does not support HTML5 videos.
</video>
<% } %>
<% if (gallery.type === 'youtube') { %>
<a class="col-12 col-md-4" data-fancybox="gallery" data-caption="<%= caption %>" href="<%- gallery.content %>&amp;autoplay=1&amp;rel=0&amp;showinfo=0&amp;mute=1">
<img data-src="<%- gallery.thumbnailURL %>" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" onload="lzld(this)" alt="<%- gallery.title %> by <%- gallery.author %>">
Expand Down

0 comments on commit 9a4c63c

Please sign in to comment.