23
edits
| (4 intermediate revisions by one other user not shown) | |||
| Line 6: | Line 6: | ||
} | } | ||
var | var toolLinksBase = document.getElementById('p-tb'); | ||
var modeSwitchBase = document. | var toolLinks = toolLinksBase.getElementsByClassName('vector-menu-content-list'); | ||
var modeSwitch = document.createElement(' | var modeSwitchBase = document.createElement('li'); | ||
modeSwitchBase.setAttribute('id', ' | var modeSwitch = document.createElement('span'); | ||
modeSwitchBase.setAttribute('id', 'skin-mode'); | |||
modeSwitch.setAttribute('onclick', 'switchSkin()'); | modeSwitch.setAttribute('onclick', 'switchSkin()'); | ||
| Line 36: | Line 37: | ||
switchSkinShared(); | switchSkinShared(); | ||
modeSwitchBase.appendChild(modeSwitch) | modeSwitchBase.appendChild(modeSwitch); | ||
toolLinks[0].appendChild(modeSwitchBase); | |||