Thank You 2020: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Seddon (WMF) (talk | contribs) No edit summary |
Seddon (WMF) (talk | contribs) No edit summary |
||
Line 377: | Line 377: | ||
height: 175px; |
height: 175px; |
||
width:100%; |
width:100%; |
||
background-image:url( https://upload.wikimedia.org/wikipedia/donate |
background-image:url( https://upload.wikimedia.org/wikipedia/donate/9/9a/Thank_You_2019_Header.svg ); |
||
background-size:cover; |
background-size:cover; |
||
background-position: -150px center; |
background-position: -150px center; |
||
Line 1,127: | Line 1,127: | ||
var testVideo = document.createElement('video'); |
var testVideo = document.createElement('video'); |
||
var vidFrame; |
var vidFrame; |
||
if ( testVideo.canPlayType('video/webm; codecs="vp8, vorbis"') === 'probably' ) { |
if ( testVideo.canPlayType('video/webm; codecs="vp8, vorbis"') === 'probably' ) { |
||
vidFrame = '<iframe src="https://commons.wikimedia.org/wiki/File:Wikipedia_-_Edit_2019.webm?embedplayer=yes" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" frameborder="0"></iframe>'; |
vidFrame = '<iframe src="https://commons.wikimedia.org/wiki/File:Wikipedia_-_Edit_2019.webm?embedplayer=yes" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" frameborder="0"></iframe>'; |
||
} else { |
} else { |
||
vidFrame = '<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/Rm1LKcHD1VE" allowfullscreen="" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"></iframe>'; |
vidFrame = '<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/Rm1LKcHD1VE" allowfullscreen="" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"></iframe>'; |
||
} |
} |
||
$('.video-container').html( vidFrame ); |
$('.video-container').html( vidFrame ); |
||
$('.video-container').insertAfter( '<div class="frb-inline-disclaimer"> This video is hosted by YouTube, LLC, a third-party service; please see their <a class="cta" href="https://policies.google.com/privacy" title=" privacy policy" target="_blank">privacy policy</a> and <a class="cta" href="https://policies.google.com/terms" title="Terms of Service" target="_blank">terms of service</a>. </div>' ); |
|||
} |
} |