m |
m |
||
Line 45: | Line 45: | ||
$('#toc').children("ul").addClass("nav"); | $('#toc').children("ul").addClass("nav"); | ||
$('#toc').children("ul").attr('id', 'tocnav'); | $('#toc').children("ul").attr('id', 'tocnav'); | ||
− | $('body').scrollspy({ target: '# | + | $('body').scrollspy({ target: '#toc', offset:40 }); |
$('#toc').on('activate.bs.scrollspy', function () { | $('#toc').on('activate.bs.scrollspy', function () { |
Revision as of 16:14, 16 July 2016