DC Animated Universe
Register
No edit summary
No edit summary
 
Line 4: Line 4:
   
 
$( function IconsOasis() {
 
$( function IconsOasis() {
if ( $( '.wds-community-header' ).length ) {
+
if ( $( '#icons' ).length ) {
$( '#PageHeader' ).prepend(
+
if ( mw.config.get( 'skin' ) == 'fandomdesktop' ) {
$( '#icons' ).attr( 'style', 'position: absolute;' )
+
$( '.page-header__actions' ).first().append( $( '#icons' ).show() );
);
+
} else {
 
$( '.page-header__contribution > div' ).first().append( $( '#icons' ).show() );
} else {
 
  +
}
$( '.WikiaPageHeader' ).append( $( '#icons' ) );
 
$( '#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() );
    	}
    }
} );