Sha256: e3c6a202d5d8acb83e9cfb4cb4e0f7cff34a30d14fa8096d4348dad67919f299

Contents?: true

Size: 684 Bytes

Versions: 5

Compression:

Stored size: 684 Bytes

Contents

<!-- this handles the automatic toc. use ## for subheads to auto-generate the on-page minitoc. if you use html tags, you must supply an ID for the heading element in order for it to appear in the minitoc. -->
<script>
$( document ).ready(function() {
  // Handler for .ready() called.

$('#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>

<div id="toc"></div>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
gouy-0.0.4 _includes/toc.html
techbubble-0.1.3 _includes/toc.html
techbubble-0.1.2 _includes/toc.html
techbubble-0.1.1 _includes/toc.html
techbubble-0.1.0 _includes/toc.html