AdminLTE/plugins/chart.js/docs/gitbook/gitbook-plugin-anchorjs/anchor-style.js
2018-04-22 20:08:03 -04:00

8 lines
220 B
JavaScript

gitbook.events.bind('start', function(e, config) {
anchors.options = config.anchorjs || {};
});
gitbook.events.bind('page.change', function() {
anchors.add(anchors.options.selector || 'h2,h3,h4,h5');
});