MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus decaf-de
Uli (Diskussion | Beiträge) Die Seite wurde neu angelegt: „→Das folgende JavaScript wird für alle Benutzer geladen.: $( function() { var iwlinks = jQuery( 'div.interProject' ); if ( iwlinks.length > 0 ) { var pproject = jQuery( '#p-tb' ).clone().attr( 'id', 'p-project' ).insertAfter( '#p-tb' ); pproject.find( 'h3' ).attr( 'id', 'p-project-label' ).text( 'On other projects' ); pproject.find( 'ul' ).addClass( 'interProject' ).empty().append( iwlinks ); iwlinks.replaceWit…“ |
(kein Unterschied)
|
Aktuelle Version vom 15. Januar 2024, 15:02 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */ $( function() { var iwlinks = jQuery( 'div.interProject' ); if ( iwlinks.length > 0 ) { var pproject = jQuery( '#p-tb' ).clone().attr( 'id', 'p-project' ).insertAfter( '#p-tb' ); pproject.find( 'h3' ).attr( 'id', 'p-project-label' ).text( 'On other projects' ); pproject.find( 'ul' ).addClass( 'interProject' ).empty().append( iwlinks ); iwlinks.replaceWith( function() { return $( '<li></li>' ).addClass( $(this).attr( 'class' ) ).append( $(this).contents() ); }); } });