No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
$( function IconsOasis() { |
$( function IconsOasis() { |
||
− | if ( $( ' |
+ | if ( $( '#icons' ).length ) { |
− | + | if ( mw.config.get( 'skin' ) == 'fandomdesktop' ) { |
|
− | + | $( '.page-header__actions' ).first().append( $( '#icons' ).show() ); |
|
− | + | } else { |
|
⚫ | |||
− | } else { |
||
+ | } |
||
⚫ | |||
− | $( '#icons' ).css( { 'position' : 'absolute', 'bottom' : '-2em' } ).show(); |
||
} |
} |
||
} ); |
} ); |
Latest revision as of 09:29, 5 June 2021
/* Adds icons to page header bottom border
* by: [[User:The 888th Avatar]], adapted to new header by [[User:Thailog]]
*/
$( function IconsOasis() {
if ( $( '#icons' ).length ) {
if ( mw.config.get( 'skin' ) == 'fandomdesktop' ) {
$( '.page-header__actions' ).first().append( $( '#icons' ).show() );
} else {
$( '.page-header__contribution > div' ).first().append( $( '#icons' ).show() );
}
}
} );