Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some broken showcases due to gfycat shutting down #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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