Anonymous

MediaWiki:Common.js: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 353: Line 353:
     $('.tabber-list-toggle img').toggleClass('back');
     $('.tabber-list-toggle img').toggleClass('back');
     $('.dungeon-map .tabber-vertical .tabber-ul').toggleClass('list-hidden');
     $('.dungeon-map .tabber-vertical .tabber-ul').toggleClass('list-hidden');
});
$('h2').each(function(){
    var span = $(this).find('.mw-headline');
    var edit = $(this).find('.mw-editsection')
    var width = span.width()/4;
    edit.css('margin-left', 'calc(0.5em - '+width+'px)').show();
});
});