MediaWiki:Gadget-MenuToTabs.js: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(remove checkbox)
Tags: Mobile edit Mobile web edit
(remove new input and h3 elements)
Line 5: Line 5:
       .addClass( 'vectorTabs' )
       .addClass( 'vectorTabs' )
       .css( 'margin-left', '0.5em' )
       .css( 'margin-left', '0.5em' )
      .remove( 'input' )
       .find( 'div.menu > ul' )
       .find( 'div.menu > ul' )
         .unwrap()
         .unwrap()
       .find( 'li > a' )
       .find( 'li > a' )
         .wrap( '<span></span>' );
         .wrap( '<span></span>' );
    $( '#p-cactions' ).find( 'input, h3' ).remove();
   }
   }
});
});

Revision as of 06:53, May 11, 2019

$( function() {
  if ( mw.config.get( 'skin' ) == 'vector' ) {
    $( '#p-cactions' )
      .removeClass( 'vectorMenu' )
      .addClass( 'vectorTabs' )
      .css( 'margin-left', '0.5em' )
      .find( 'div.menu > ul' )
        .unwrap()
      .find( 'li > a' )
        .wrap( '<span></span>' );
    $( '#p-cactions' ).find( 'input, h3' ).remove();
  }
});