We can style our UI component with CSS, and adjust the defaults in JS:

{
// Use this if you have a fixed navbar at the top
offsetElem: '.nav-container',
// This is the wrapper for each chunk of content
storyElem: '.story',
// ID of the wrapper around all the progress bars
barsContainer: 'barsContainer',
// Class that is used for each bar in the TOC
barClass: 'toc-storybar',
// Plugin checks for first occurence of this element
// within storyElem to populate the TOC entries
headlineSelector: 'h2',
// Text displayed for for the back to top link
topText: 'Back to top'
}

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

disable

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.