MediaWiki:Common.js: Difference between revisions
MediaWiki interface page
More actions
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 | 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', ' | .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; | ||