m |
m |
||
Line 32: | Line 32: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('#toc').children("ul").addClass("nav"); | $('#toc').children("ul").addClass("nav"); | ||
− | $('#toc').children("ul").id | + | $('#toc').children("ul").attr('id', 'tocnav'); |
$('body').scrollspy({ target: '#tocnav', offset:40 }); | $('body').scrollspy({ target: '#tocnav', offset:40 }); | ||
/* $('#toc').on('activate.bs.scrollspy', function () { | /* $('#toc').on('activate.bs.scrollspy', function () { |
Revision as of 12:38, 10 July 2016