diff --git a/lib/themes/dosomething/paraneue_dosomething/js/tiles.js b/lib/themes/dosomething/paraneue_dosomething/js/tiles.js index c35bf58df..93d9b1d7e 100644 --- a/lib/themes/dosomething/paraneue_dosomething/js/tiles.js +++ b/lib/themes/dosomething/paraneue_dosomething/js/tiles.js @@ -10,4 +10,25 @@ define(function(require) { }); }); + + /** + * This is a temporary fix until the next Neue release! + * @TODO: Remove when Neue 6.0.0-beta5 is merged in! + * + * Replace the `video` tag in a tile with a static image, based on either the `poster` + * attribute of the video, or an included `img` fallback source. + */ + function replaceVideoWithImage() { + var poster = $(this).attr('poster') || $(this).find('img').attr('src'); + $(this).replaceWith($("").attr('src', poster)); + } + + // On Mobile Safari, we need to replace `