m |
m |
||
Line 23: | Line 23: | ||
$('#toc').children("ul").attr('id', 'tocnav'); | $('#toc').children("ul").attr('id', 'tocnav'); | ||
$('#tocnav').addClass('nav'); | $('#tocnav').addClass('nav'); | ||
− | $('body').scrollspy({ target: '#toc' | + | $('body').scrollspy({ target: '#toc' }); |
$('#toc').on('activate.bs.scrollspy', function () { | $('#toc').on('activate.bs.scrollspy', function () { | ||
Line 32: | Line 32: | ||
$('#toc').affix({ | $('#toc').affix({ | ||
offset: { | offset: { | ||
− | top: | + | top: 450, |
bottom: function () {return (this.bottom = $('.footer').outerHeight(true) + 100)} | bottom: function () {return (this.bottom = $('.footer').outerHeight(true) + 100)} | ||
} | } |
Revision as of 10:50, 11 October 2016