Created
June 10, 2013 05:10
-
-
Save dougn/5746667 to your computer and use it in GitHub Desktop.
FogBugz Customization to insert HTML5 video player in wiki pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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