Difference between revisions of "MediaWiki:Vector.js"

Jump to navigation Jump to search
65 bytes added ,  12:19, 6 February 2024
no edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
}
}


var footerLinks = document.getElementById('footer-places');
var toolLinksBase = document.getElementById('p-tb');
var toolLinks = toolLinksBase.getElementsByClassName('vector-menu-content-list');
var modeSwitchBase = document.createElement('li');
var modeSwitchBase = document.createElement('li');
var modeSwitch = document.createElement('a');
var modeSwitch = document.createElement('span');
modeSwitchBase.setAttribute('id', 'footer-places-skin-mode');
modeSwitchBase.setAttribute('id', 'skin-mode');
modeSwitch.setAttribute('onclick', 'switchSkin()');
modeSwitch.setAttribute('onclick', 'switchSkin()');


Line 37: Line 38:
switchSkinShared();
switchSkinShared();
modeSwitchBase.appendChild(modeSwitch);
modeSwitchBase.appendChild(modeSwitch);
footerLinks.appendChild(modeSwitchBase);
toolLinks[0].appendChild(modeSwitchBase);

Navigation menu