Sha256: 5d33aafb634b40fb8f88196a303c6ad85ae1b201e264b80cfa58caeddd8f6bff

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

<script>
    $(function() {
        // Add anchors to headers
        $('article h2, article h3, article h4, article h5').each(function () {
            var url = document.URL.replace(/#.*$/, "") + '#' + $(this).attr('id');
            $(this).append(' <a class="anchor" href="' + url + '">#</a>');
        });
    });
</script>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
documental-0.1.3 _includes/add_anchor.html
documental-0.1.2 _includes/add_anchor.html
documental-0.1.1 _includes/add_anchor.html