Fix toc links

This commit is contained in:
Clément Fournier
2018-06-29 22:33:45 +02:00
parent c4cf90e4cb
commit 40f0c4d59b
2 changed files with 2 additions and 11 deletions

View File

@@ -6,15 +6,6 @@ $( document ).ready(function() {
$('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3,h4' });
/* this offset helps account for the space taken up by the floating toolbar. */
$('#toc').on('click', 'a', function() {
var target = $(this.getAttribute('href'))
, scroll_target = target.offset().top
$(window).scrollTop(scroll_target - 10);
return false
})
});
</script>