m |
m |
||
Line 28: | Line 28: | ||
<!-- Menu --> | <!-- Menu --> | ||
<script> | <script> | ||
− | $(document).ready(function(){ | + | /*$(document).ready(function(){ |
var nav = $("#toc"); | var nav = $("#toc"); | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
Line 37: | Line 37: | ||
} | } | ||
}); | }); | ||
− | }); | + | });*/ |
</script> | </script> | ||
Line 51: | Line 51: | ||
$('li.active').removeClass('before'); | $('li.active').removeClass('before'); | ||
$('li.active').nextAll().removeClass('before'); | $('li.active').nextAll().removeClass('before'); | ||
+ | }) | ||
+ | $('#toc').affix({ | ||
+ | offset: { | ||
+ | top: 40, | ||
+ | bottom: function () {return (this.bottom = $('.footer').outerHeight(true))} | ||
+ | } | ||
}) | }) | ||
}); | }); |
Revision as of 16:21, 16 July 2016