m |
m |
||
Line 31: | Line 31: | ||
<script> | <script> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
− | $('body').scrollspy({ target: '#toc', offset: | + | $('body').scrollspy({ target: '#toc', offset:40 }) |
− | + | /* $('#toc').on('activate.bs.scrollspy', function () { | |
− | + | ||
$('li.active').prevAll().addClass('before'); | $('li.active').prevAll().addClass('before'); | ||
$('li.active').removeClass('before'); | $('li.active').removeClass('before'); | ||
− | $('li.active').nextAll().removeClass('before'); | + | $('li.active').nextAll().removeClass('before');*/ |
}) | }) | ||
Revision as of 11:35, 10 July 2016