Difference between revisions of "MediaWiki:Vector.js"

Jump to navigation Jump to search
62 bytes added ,  14:02, 19 February 2022
no edit summary
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('a');
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