Template:Appeal/Video-Impact/en: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
Line 33: | Line 33: | ||
<html> |
<html> |
||
<script type='text/javascript'> |
|||
var documentWidth = $(document).width(); |
|||
var appealWidth = documentWidth - 638; //static width for now |
|||
var playerW = appealWidth; |
|||
var playerH = playerW * 0.5625; //aspect ratio |
|||
$("#appeal-body").width( appealWidth ); |
|||
$(mw).bind('EmbedPlayerNewPlayer', function( event, embedPlayer ){ |
|||
$( embedPlayer ).bind( 'playerReady', function(){ |
|||
embedPlayer.$interface.css({'width': playerW, 'height':playerH}) |
|||
embedPlayer.updateLayout(); |
|||
// $("div.mediaContainer").css("display", ""); |
|||
}); |
|||
}); |
|||
</script> |
|||
</html> |
</html> |