Difference between revisions 86607 and 86610 on foundationwiki

<html>
<div class="thumb tright">
<div class="commons-video" style="display:none;">
</html>[[{{{commons|File:The_Impact_Of_Wikipedia.webm}}}|{{{width|400}}}px]]<html>
</div>
<div class="thumbinner" style="width:</html>{{#expr: {{{width|400}}}+2 }}<html>px;">
(contracted; show full)            src : "https://www.youtube-nocookie.com/embed/" + "</html>{{{youtube|3Knv6D6Thi0}}}<html>" + "?rel=0&autoplay=1&origin=wikimediafoundation.org&theme=light&modestbranding=1&color=white"
        })
    );
});

$("a#showcommonsvideo").click(function(event){
    event.preventDefault();
    $("#
youtube-video2012").remove();
    $("div.thumbinner").css('display', 'none');
    $("div.commons-video").css('display', 'block');
    $('#mwe_player_0').embedPlayer(function(){
        // play the video once ready:
        $('#mwe_player_0')[0].play();
    });
});

if( getQuerystring( "commons" ) == "true" ){
    $("div.thumbinner").css('display', 'none');
    $("div.commons-video").css('display', 'block');
    $('#mwe_player_0').embedPlayer();
}
</script>
</html>