MediaWiki:Gadget-CCC.js: Unterschied zwischen den Versionen
Admin (Diskussion | Beiträge) Die Seite wurde neu angelegt: „$( function () { $( '.ccc-embed' ).each( function () { var id = $( this ).data( 'video' ); if ( !id ) { return; } var iframe = document.createElement( 'iframe' ); iframe.src = 'https://media.ccc.de/v/' + id + '/oembed'; iframe.width = $( this ).data( 'width' ) || 1024; iframe.height = $( this ).data( 'height' ) || 576; iframe.frameBorder = '0'; iframe.allowFullscreen = true; this.…“ |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 5: | Zeile 5: | ||
var iframe = document.createElement( 'iframe' ); | var iframe = document.createElement( 'iframe' ); | ||
iframe.src = 'https://media.ccc.de/v/' + id + '/oembed'; | iframe.src = 'https://media.ccc.de/v/' + id + '/oembed'; | ||
iframe.width = $( this ).data( 'width' ) || | iframe.width = $( this ).data( 'width' ) || 640; | ||
iframe.height = $( this ).data( 'height' ) || | iframe.height = $( this ).data( 'height' ) || 360; | ||
iframe.frameBorder = '0'; | iframe.frameBorder = '0'; | ||
iframe.allowFullscreen = true; | iframe.allowFullscreen = true; | ||
Version vom 25. August 2026, 21:35 Uhr
$( function () {
$( '.ccc-embed' ).each( function () {
var id = $( this ).data( 'video' );
if ( !id ) { return; }
var iframe = document.createElement( 'iframe' );
iframe.src = 'https://media.ccc.de/v/' + id + '/oembed';
iframe.width = $( this ).data( 'width' ) || 640;
iframe.height = $( this ).data( 'height' ) || 360;
iframe.frameBorder = '0';
iframe.allowFullscreen = true;
this.appendChild( iframe );
} );
} );