Skip to content

Instantly share code, notes, and snippets.

@dougn
Created June 10, 2013 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougn/5746667 to your computer and use it in GitHub Desktop.
Save dougn/5746667 to your computer and use it in GitHub Desktop.
FogBugz Customization to insert HTML5 video player in wiki pages
name: Wiki Embed Video
description: Makes .mp4 and .m4v video attachments HTML5 playable
author: Napoleone, Doug
version: 1.0.0.0
js:
// TODO: Fill this in
if ($('#idEditArticle')) {
var videos = $('a[href$=".m4v"], a[href$=".mp4"]');
$.each(videos, function(i, video) {
$(video).parent().prepend('<video src="'+$(video).attr('href')+'" controls></video><br/>');
});
}
css:
/* body { background-color: red !important; } */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment