Template:FR2012/Video-test: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> |
<html> |
||
<div class="thumb tright"> |
<div class="thumb tright"> |
||
<!-- ---------- |
<!-- ---------- --> |
||
<div class="commons-video" style=""> |
<div class="commons-video" style="display:none;"> |
||
</html>[[File:The_Impact_Of_Wikipedia.webm|{{{width|400}}}px]]<html> |
</html>[[File:The_Impact_Of_Wikipedia.webm|{{{width|400}}}px]]<html> |
||
</div> |
</div> |
||
<!-- ---------- --> |
|||
<div class="thumbinner" style="width:</html>{{#expr: {{{width|400}}}+2 }}<html>px;"> |
<div class="thumbinner" style="width:</html>{{#expr: {{{width|400}}}+2 }}<html>px;"> |
||
<img id="video2012" alt="" src="</html>{{filepath:{{{placeholder|Wikipedia_Puzzle_Globe.jpg}}}|{{{width|400}}}}}<html>" width="</html>{{{width|400}}}<html>" class="thumbimage"> |
<img id="video2012" alt="" src="</html>{{filepath:{{{placeholder|Wikipedia_Puzzle_Globe.jpg}}}|{{{width|400}}}}}<html>" width="</html>{{{width|400}}}<html>" class="thumbimage"> |
||
Line 13: | Line 13: | ||
<script type='text/javascript'> |
<script type='text/javascript'> |
||
//$(document).ready(function(){ |
|||
// $("div.commons-video").css('display', 'none'); |
|||
//}); // hide the commons video |
|||
mw.setConfig( 'EmbedPlayer.RewriteSelector', null ); |
mw.setConfig( 'EmbedPlayer.RewriteSelector', null ); |
||
$("div.commons-video").css('display', 'none'); |
//$("div.commons-video").css('display', 'none'); |
||
var playerW = parseInt('</html>{{{width|400}}}<html>'); |
var playerW = parseInt('</html>{{{width|400}}}<html>'); |
||
Line 40: | Line 36: | ||
$("div.thumbinner").css('display', 'none'); |
$("div.thumbinner").css('display', 'none'); |
||
$("div.commons-video").css('display', 'block'); |
$("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(){ |
$('#mwe_player_0').embedPlayer(function(){ |
||
// play the video once ready: |
// play the video once ready: |
Latest revision as of 18:21, 10 December 2012
![](http://upload.wikimedia.org/wikipedia/donate/thumb/8/86/Wikipedia_Puzzle_Globe.jpg/400px-Wikipedia_Puzzle_Globe.jpg)
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