Questions tagged [jquery-tocify-js]

A jQuery Table of Contents plugin that can be themed with Twitter Bootstrap or jQueryUI

Docs & Demo

http://gregfranko.com/jquery.tocify.js/

Github

https://github.com/gfranko/jquery.tocify.js

Syntax

$("#toc").tocify();

Preview

enter image description here

10 questions
8
votes
1 answer

How to use tocify with asciidoctor for a dynamic toc?

By default, asciidoctor creates a static toc. This is very cool but for long documents, it would be nice to if the toc could be somewhat more compact and would highlight where in the document the reader currently is. At this point, tocify comes in.…
rec
  • 10,340
  • 3
  • 29
  • 43
4
votes
1 answer

Fixed page header and in-page anchors vs. Tripit Slate

This question is about getting hashed URLs (like mydomain.com/somepage#SomeAnchor) to scroll out from under a fixed page header, when those URLs are jump targets. It's an offshoot of this answered question – but I'm wondering whether anyone has…
1
vote
2 answers

Bootstrap 4.5, Separate Scrollbars, and Make Div Stick to Bottom

I'm trying to organize some elements across 3 columns using Bootstrap 4.5. The center column will have a long body. The right column with have content (2 divs) that should be either stuck to the top / bottom. I'm having exceeding difficulty getting…
ch-pub
  • 1,664
  • 6
  • 29
  • 52
1
vote
1 answer

How can I execute a function after a plugin's scroll animation finishes?

How can I execute a function after a plugin's animation finishes? I'm using the Tocify plugin and customizing its functionality for a project I'm working on. After I click on an entry in the automatically generated Table of Contents, it scrolls to…
Vince
  • 3,962
  • 3
  • 33
  • 58
1
vote
0 answers

JQuery Tocify - Hello world

I'd like to use the tocify jquery script. In this simple page it doesn't work as expected with Firefox 38.0.1. It should display a small table of contents in the #toc div. Generated from the scanned tags in the body. But if I render this page in…
Mark
  • 590
  • 7
  • 17
0
votes
1 answer

how to fix content div height with jquery tocify or bootstrap toc

can anyone suggest if fixing div height is possible with jquery tocify plugin or bootstrap toc class. in both cases I'm able to apply toc(table of content) in my code. but when i click on left plane, entire page starts scrolling. i want that only…
shail
  • 13
  • 2
0
votes
1 answer

Formatting unordered list so it doesn't indent like a paragraph

I am using the jQuery.tocify.js javascript plugin to programmatically generate a table of contents. I am having a bit of a problem, though. The way the plugin operates, it pulls every h1, h2, h3, etc. tag and makes a nested list, while respecting…
nomen
  • 3,626
  • 2
  • 23
  • 40
0
votes
1 answer

jquery tocify wrong order

Iam using Tocify https://github.com/gfranko/jquery.tocify.js to make a TOC on some contents at a site. It works great, however I have run into a problem with the way Tocify is ordering my content. I think the best way to show it, is with this…
Mathias
  • 55
  • 7
0
votes
2 answers

tocify and url with multiple parameters

I am using Tocify to make a TOC for some content on my site. Let's say my site is called www.example.com and I click an element in my TOC. The default option for Tocify is to change my url to www.example.com?elementclicked But my site is…
Mathias
  • 55
  • 7
-1
votes
1 answer

Using href and Tocify toc

I am using Tocify to make a TOC and I'm having some trouble. In this TOC I have: "chapter 1", "chapter 2"... In my site there are some places when I say "See chapter 1". I have to include "a href" to "chapter 1" in my "See chapter 1" html text. But…
mbc
  • 3
  • 1