MediaWiki:Common.js: diferenças entre revisões

Created page with "이 자바스크립트 설정은 모든 문서, 모든 사용자에게 적용됩니다.: TOP 버튼: var topButton = document.createElement('div'); topButton.id = 'top-button'; document.body.appendChild(topButton); window.addEventListener('scroll', function (e) { if (window.scrollY > 300) { topButton.classList.add('active'); } else { topButton.classList.remove('active'); } }); topButton.addEventListener('click', function (e) {..."
 
Sem resumo de edição
Linha 257: Linha 257:
// 데스크탑 언어
// 데스크탑 언어
var langDiv = document.getElementById('right-navigation');
var langDiv = document.getElementById('right-navigation');
if(langDiv){
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">' +
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">' +
'<input type="checkbox" id="p-cactions-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-cactions" class="vector-menu-checkbox" aria-labelledby="p-cactions-label">' +
'<input type="checkbox" id="p-cactions-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-cactions" class="vector-menu-checkbox" aria-labelledby="p-cactions-label">' +
Linha 273: Linha 274:
'</nav>';
'</nav>';
langDiv.insertAdjacentHTML('afterbegin', navHTML);
langDiv.insertAdjacentHTML('afterbegin', navHTML);
}