Template:FR2012/Video-test: Difference between revisions

Content deleted Content added
Pgehres (WMF) (talk | contribs)
No edit summary
Pgehres (WMF) (talk | contribs)
No edit summary
 
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'>
//$(document).ready(function(){
// $("div.commons-video").css('display', 'none');
//}); // hide the commons video
 
mw.setConfig( 'EmbedPlayer.RewriteSelector', null );
//$("div.commons-video").css('display', 'none');
 
var playerW = parseInt('</html>{{{width|400}}}<html>');
Line 40 ⟶ 36:
$("div.thumbinner").css('display', 'none');
$("div.commons-video").css('display', 'block');
// $('#mwe_player_0')[0].$interface.css({'width': playerW, 'height':playerH}).find('#mwe_player_0')[0].updateLayout();
// $("div.play-btn-large").click();
$('#mwe_player_0').embedPlayer(function(){
// play the video once ready: