User:Canadabonk/common.js: Difference between revisions
Content deleted Content added
Canadabonk (talk | contribs) No edit summary |
Canadabonk (talk | contribs) No edit summary |
||
Line 21:
// get contents of toc
const sidetoc = $('.ct-toc');
$('#toc').find('ul').first().clone().appendTo('.ct-toc, #
sidetoc.find('ul').first().wrap('<div class="ct-stickytoc"></div>');
Line 39:
// siderail toc
const railtoc = $('.ct-railtoc');▼
$('#CosmosRail').find('ul').first().wrap('<section class="module ct-railtoc"></section>');
▲ const railtoc = $('.ct-railtoc');
railtoc.prepend('<div><h3>Contents</h3><span class="ct-toc-move">Move to sidetools</span></div>');
|