User:Canadabonk/common.js: Difference between revisions
Content deleted Content added
Canadabonk (talk | contribs) No edit summary |
Canadabonk (talk | contribs) No edit summary |
||
Line 20: | Line 20: | ||
// get contents of toc |
// get contents of toc |
||
$('#toc').find('ul').first().clone().appendTo('.ct-toc'); |
$('#toc').find('ul').first().clone().wrap('<div class="ct-stickytoc"></div>').appendTo('.ct-toc'); |
||
$('.ct-toc').find('ul').first().wrap('<div class="ct-stickytoc"></div>'); |
//$('.ct-toc').find('ul').first().wrap('<div class="ct-stickytoc"></div>'); |
||
const stickytoc = $('.ct-stickytoc'); |
const stickytoc = $('.ct-stickytoc'); |