MediaWiki:Common.js: diferenças entre revisões
Sem resumo de edição |
Sem resumo de edição |
||
| Linha 339: | Linha 339: | ||
}; | }; | ||
// 인터위키 언어 목록 선택자 | // 인터위키 언어 목록 선택자 | ||
const languageLabel = $('#p-lang h3 .vector-menu-heading-label').text().trim(); | |||
const $items = $('.vector-menu-content-list .interlanguage-link a'); | const $items = $('.vector-menu-content-list .interlanguage-link a'); | ||
| Linha 368: | Linha 369: | ||
var navHTML = | var navHTML = | ||
'<nav id="p-cactions" class="mw-portlet mw-portlet-cactions vector-menu-dropdown-noicon vector-menu vector-menu-dropdown" aria-labelledby="p-cactions-label" role="navigation">' + | '<nav id="p-cactions" class="mw-portlet mw-portlet-cactions vector-menu-dropdown-noicon vector-menu vector-menu-dropdown" aria-labelledby="p-cactions-label" role="navigation">' + | ||
'<input type="checkbox" id="p-cactions-checkbox" role="button" aria-haspopup="true" class="vector-menu-checkbox" aria-labelledby="p-cactions-label">' + | |||
'<label id="p-cactions-label" class="vector-menu-heading">' + | |||
'<span class="select-language"></span>' + | |||
'<span class="vector-menu-heading-label">'+ languageLabel + '</span>' + | |||
'</label>' + | |||
'<div class="vector-menu-content">' + | |||
'<ul class="vector-menu-content-list" id="header-lang-list"></ul>' + | |||
'</div>' + | |||
'</nav>'; | '</nav>'; | ||