Rails (Javascript?): Does an outline viewer exist?

I have a large MS Word document organized in outline format.

I exported this document via "Export to compact HTML" command.

I was wondering if anyone knows of a rails plugin or a javascript/jquery
script that would allow a user to open (i.e. expand) and close various
levels of the html the same way that MS Word allows one to do that in
View/Outline.

Ralph Shnelvar wrote in post #969941:

I have a large MS Word document organized in outline format.

I exported this document via "Export to compact HTML" command.

I was wondering if anyone knows of a rails plugin or a javascript/jquery
script that would allow a user to open (i.e. expand) and close various
levels of the html the same way that MS Word allows one to do that in
View/Outline.

Not offhand. But (a) I'm sure something exists, and (b) it wouldn't be
too hard to write it yourself. This is completely client-side, so Rails
doesn't come into it at all.

Best,