Difference between revisions 85591 and 85592 on foundationwiki

<html>
  <style type="text/css">
    h1#firstHeading {
      display: none;
    }
    div#thank-you-video {
      background: #252525;
      margin: -2.8em -1.9em 0 -1.8em;
      padding: 35px 0 20px 0;
    }
    div#thank-you-video div.iframe-content {
      background: #ccc;
      margin: 0 0 0 80px;
      width: 640px;
    }
    div#thank-you-video div.iframe-content img {
      cursor: pointer;
    }
    div#thank-you-video p {
      color: #fff;
      display: block;
      font-size: 13px;
      line-height: 18px;
      margin: 10px 0 0 80px;
      padding: 0;
      width: 640px;
(contracted; show full)      <a href="http://en.wikipedia.org/wiki/Special:UserLogin/signup" title="Get Started">Get Started</a>
    </div>
  </div>
  <script type="text/javascript">
    mw.setConfig( 'EmbedPlayer.RewriteSelector', null );
    var playerW = parseInt('640');
    var playerH = playerW * 0.5625; //aspect ratio
    $("div#thank-you-video div.iframe-content i
nmg").click(function () {
      $(this).replaceWith(
        $("<iframe></iframe>", {
            id : "youtube-video",
            width : playerW,
            height : playerH,
            frameborder : 0,
            allowfullscreen : "1",
            src : "https://www.youtube-nocookie.com/embed/" + "3Knv6D6Thi0" + "?rel=0&amp;autoplay=1&amp;origin=https://donate.wikimedia.org"
        })
      );
    });
    $("a#showcommonsvideo").click(function(event){
      event.preventDefault();
      $("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();
      });
    });
  </script>
</html>