Skip to content

Commit

Permalink
added a few tweaks to YouTube lightbox
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhunt committed Sep 1, 2022
1 parent e1aaa60 commit 13c8628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion presets/lightboxyoutube.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"key":"lightboxyoutube","name":"Youtube Lightbox","version":"1.0.0","instructions":"","requirecss":"//cdnjs.cloudflare.com/ajax/libs/featherlight/1.6.1/featherlight.min.css","requirejs":"//cdnjs.cloudflare.com/ajax/libs/featherlight/1.6.1/featherlight.min.js","shim":"featherlight","defaults":"width=160,height=120,videowidth=640,videoheight=480,videoid=7-0lV5qs1Qw","amd":"1","body":"<a href=\"#\" data-featherlight=\"#@@AUTOID@@\"><div class=\"filter_generico_ytl\"><img src=\"https://img.youtube.com/vi/@@videoid@@/hqdefault.jpg\" width=\"@@width@@\" height=\"@@height@@\"/></div></a><div style=\"display: none;\"><div id=\"@@AUTOID@@\"><iframe width=\"@@videowidth@@\" height=\"@@videoheight@@\" src=\"//www.youtube.com/embed/@@videoid@@?rel=0\" frameborder=\"0\" allowfullscreen></iframe></div></div>","bodyend":"","script":"","style":".filter_generico_ytl img{display: block;}\n\t\t\t\t\t.filter_generico_ytl { \n\t\t\t\t\tposition: relative; \n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t}\n\t\t\t\t\t.filter_generico_ytl:after {\n\t\t\t\t\tcontent: \">\";\n\t\t\t\t\t font-size: 20px;\n\t\t\t\t\t line-height: 30px;\n\t\t\t\t\t color: #FFFFFF;\n\t\t\t\t\t text-align: center;\n\t\t\t\t\t position: absolute;\n\t\t\t\t\t top: 40%;\n\t\t\t\t\t left: 40%;\n\t\t\t\t\t width: 20%;\n\t\t\t\t\t height: 32px;\n\t\t\t\t\t z-index: 2;\n\t\t\t\t\t background: #FF0000;\n\t\t\t\t\t border-radius: 8px;\n\t\t\t\t\t pointer-events: none;\n\t\t\t\t\t}","dataset":"","datasetvars":"","alternate":"<iframe width=\"@@width@@\" height=\"@@height@@\" src=\"//www.youtube.com/embed/@@videoid@@\" frameborder=\"0\" allowfullscreen></iframe>","alternateend":""}
{"key":"lightboxyoutube","name":"Youtube Lightbox","instructions":"Display a Youtube thumbnail which will display the video in a lightbox when clicked. Add the YouTube video id (11 chars at end of URL) and optionally any width / height preferences.","requirecss":"//cdnjs.cloudflare.com/ajax/libs/featherlight/1.6.1/featherlight.min.css","requirejs":"//cdnjs.cloudflare.com/ajax/libs/featherlight/1.6.1/featherlight.min.js","shim":"featherlight","defaults":"width=240,height=180,videowidth=600,videoheight=400,videoid=7-0lV5qs1Qw","amd":"1","body":"<a href=\"#\" data-featherlight=\"#@@AUTOID@@\"><div class=\"filter_generico_ytl\"><img src=\"https://img.youtube.com/vi/@@videoid@@/hqdefault.jpg\" width=\"@@width@@\" height=\"@@height@@\"/></div></a><div style=\"display: none;\"><div id=\"@@AUTOID@@\"><iframe width=\"@@videowidth@@\" height=\"@@videoheight@@\" src=\"//www.youtube.com/embed/@@videoid@@?rel=0\" frameborder=\"0\" allowfullscreen></iframe></div></div>","bodyend":"","script":"","style":".filter_generico_ytl img{display: block;}\n\t\t\t\t\t.filter_generico_ytl { \n\t\t\t\t\tposition: relative; \n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t}\n\t\t\t\t\t.filter_generico_ytl:after {\n\t\t\t\t\tcontent: \">\";\n\t\t\t\t\t font-size: 20px;\n\t\t\t\t\t line-height: 30px;\n\t\t\t\t\t color: #FFFFFF;\n\t\t\t\t\t text-align: center;\n\t\t\t\t\t position: absolute;\n\t\t\t\t\t top: 40%;\n\t\t\t\t\t left: 40%;\n\t\t\t\t\t width: 20%;\n\t\t\t\t\t height: 32px;\n\t\t\t\t\t z-index: 2;\n\t\t\t\t\t background: #FF0000;\n\t\t\t\t\t border-radius: 8px;\n\t\t\t\t\t pointer-events: none;\n\t\t\t\t\t}","dataset":"","datasetvars":"","alternate":"<iframe width=\"@@width@@\" height=\"@@height@@\" src=\"//www.youtube.com/embed/@@videoid@@\" frameborder=\"0\" allowfullscreen></iframe>","alternateend":"","version":"1.0.1"}

0 comments on commit 13c8628

Please sign in to comment.