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 1,127: | Line 1,127: | ||
var testVideo = document.createElement('video'); |
var testVideo = document.createElement('video'); |
||
var vidFrame; |
var vidFrame; |
||
var disclaimer; |
|||
⚫ | |||
if ( testVideo.canPlayType('video/webm; codecs="vp8, vorbis"') === 'probably' ) { |
if ( testVideo.canPlayType('video/webm; codecs="vp8, vorbis"') === 'probably' ) { |
||
Line 1,138: | Line 1,135: | ||
} |
} |
||
$('.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>' ); |
||
$('.video-container').insertAfter( disclaimer ); |
|||
} |
} |