Template:YouTubeWithCommonsFallback: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 45:
</div><!-- /video-outer-wrapper -->
<script>
function inlineScriptWhenReady() {
/* Wrapper function so waits until jQuery ready - see MediaWiki:Common.js */
videoTemplate.showCommonsVideo = function() {▼
$('.video-youtube').remove();▼
$('.video-placeholder').css('display', 'none');▼
$('.video-commons').css('display', 'block');▼
};▼
$(".video-placeholder").click(function () {
$(this).replaceWith(
Line 70 ⟶ 64:
$("#showcommonsvideo a").click(function(event){
event.preventDefault();
});
if( mw.util.getParamValue( "commons" ) == "true" ){
}
}
▲ $('.video-youtube').remove();
▲ $('.video-placeholder').css('display', 'none');
▲ $('.video-commons').css('display', 'block');
</script>
</html><noinclude><pre>{{YouTubeWithCommonsFallback
|