1,124
edits
Line 6: | Line 6: | ||
} | } | ||
var | 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', ' | 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); | ||
toolLinks[0].appendChild(modeSwitchBase); |