Thank You 2020: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
Seddon (WMF) (talk | contribs)
No edit summary
Seddon (WMF) (talk | contribs)
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html><meta name="viewport" content="width=device-width, initial-scale=1"></html><!-- hack: meta tag should really be in the <head> but can't do that -->
<html><meta name="viewport" content="width=device-width, initial-scale=1"></html><!-- hack: meta tag should really be in <head> but can't do that -->
<html><body>
<html><body>
<style>
<style>
Line 925: Line 925:
}
}


.frb-inline-disclaimer {

width:100%;
padding: 4px;
text-align: center;
font-size: 12px;
}
</style>
</style>
<a class="skip-link screen-reader-text" href="#content">Skip to content</a>
<a class="skip-link screen-reader-text" href="#content">Skip to content</a>
Line 1,127: Line 1,132:
var testVideo = document.createElement('video');
var testVideo = document.createElement('video');
var vidFrame;
var vidFrame;

var testResult = testVideo.canPlayType('video/webm; codecs="vp8, vorbis"');
if ( testResult === '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/y2R3WlVpNio" allowfullscreen="" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"></iframe>';
}
}
$('.video-container').html( vidFrame );
$('.video-container').html( vidFrame );

if ( testResult !== 'probably' ) {
if ( testVideo.canPlayType('video/webm; codecs="vp8, vorbis"') !== '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>');
$('.video-container').after('<div class="frb-inline-disclaimer"> This stream 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>');
}
}
}
}
</script>
<script>
</script>
</script>
</body></html>
</body></html>

Latest revision as of 14:54, 18 January 2020

See how imagination becomes reality

Check out the imagination-fueling winners from the international Wiki Loves Earth photography competition

Check it out

Get instant access to knowledge

Get the Wikipedia app today for the quickest way to check a fact and get answers to your questions. It’s free and ad-free.