Thank You 2020: Difference between revisions

Content deleted Content added
Seddon (WMF) (talk | contribs)
No edit summary
Seddon (WMF) (talk | contribs)
No edit summary
Line 1,127:
var testVideo = document.createElement('video');
var vidFrame;
 
var testResult = testVideo.canPlayType('video/webm; codecs="vp8, vorbis"');
if ( testResulttestVideo.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>';
} else {
Line 1,134:
}
$('.video-container').html( vidFrame );
if ( testResult !== 'probably' ) {
$('.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>');
}
}