I managed to install via npm, but when I set the options, using $('#toc').toc(); I get Uncaught TypeError: $(...).toc is not a function.
The example configures the selectors with <div class="toc" data-toc="h1, h2, h3">, and doesn't use any jQuery at all. Is there another example somewhere I can look at to get this working?
The download links located here http://projects.jga.me/toc/ return 404.
I managed to install via npm, but when I set the options, using
$('#toc').toc();
I getUncaught TypeError: $(...).toc is not a function
.The example configures the selectors with
<div class="toc" data-toc="h1, h2, h3">
, and doesn't use any jQuery at all. Is there another example somewhere I can look at to get this working?