User:Locke/common.js: Difference between revisions

Want an adless experience? Log in or Create an account.
moved to Common.js
(woo it works!)
(moved to Common.js)
Line 1: Line 1:
var uls = document.getElementById('toc').getElementsByTagName('ul')[0].getElementsByTagName('ul');
 
for(var i=0; i<uls.length; ++i) { uls[i].style.width = uls[i].clientWidth + 1 + "px"; }