Template:FR2012/Video-test: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Pgehres (WMF) (talk | contribs)
Created page with "<html> <div class="thumb tright"> <!-- ---------- --> <div class="commons-video" style=""> </html>{{{width|400}}}px<html> </div> <!-- ---..."
 
Pgehres (WMF) (talk | contribs)
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 2:
<div class="thumb tright">
<!-- ---------- -->
<div class="commons-video" style="display:none;">
</html>[[File:The_Impact_Of_Wikipedia.webm|{{{width|400}}}px]]<html>
</div>
Line 13:
 
<script type='text/javascript'>
mw.setConfig( 'EmbedPlayer.RewriteSelector', null );
//$("div.commons-video").css('display', 'none'); // hide the commons video
 
var playerW = parseInt('</html>{{{width|400}}}<html>');
Line 30 ⟶ 31:
);
});
 
$("a#showcommonsvideo").click(function(event){
event.preventDefault();
$("div.thumbinner").css('display', 'none');
$("div.commons-video").css('display', 'block');
$('#mwe_player_0')[0].$interface.cssembedPlayer({'width': playerW, 'height':playerH}).findfunction('#mwe_player_0')[0].updateLayout();{
$("div. // play-btn-large").click(); the video once ready:
$('#mwe_player_0')[0].play();
});
});
 
</script>
</html>

Latest revision as of 18:21, 10 December 2012

This video is not hosted by the Wikimedia Foundation. It is hosted by youtube.com and is subject to the Youtube terms of use and privacy policy. Please do not view the video if you do not agree to their policies. -- If you would prefer to view the video from Wikimedia Commons, click here