Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 258: Line 258:
var $source = $(sourceSelector);
var $source = $(sourceSelector);
var $content = $source.children('.mw-collapsible-content').first();
var $content = $source.children('.mw-collapsible-content').first();
var $book = $('<div>').addClass('wizlords-mobile-spellbook is-open ' + variantClass);
var $book = $('<div>').addClass('wizlords-mobile-spellbook ' + variantClass);
var $header = $('<div>')
var $header = $('<div>')
.addClass('wizlords-mobile-spellbook-header')
.addClass('wizlords-mobile-spellbook-header')
.attr('role', 'button')
.attr('role', 'button')
.attr('tabindex', '0')
.attr('tabindex', '0')
.attr('aria-expanded', 'true');
.attr('aria-expanded', 'false');
var $body = $('<div>').addClass('wizlords-mobile-spellbook-body');
var $body = $('<div>').addClass('wizlords-mobile-spellbook-body');
var $currentCategory = null;
var $currentCategory = null;