On 21 July 2016 at 08:11, Per Bothner <[email protected]> wrote: > >> No-one's used this feature as far as I know, so I'm tempted to take it >> out until we can be more sure it's what we really want. > > > I've mentioned earlier using JavaScript to generate a table-of-contents > side-bar using Javascript, similar to the Kawa homepage (which is > https://www.gnu.org/software/kawa/ and is currently generated ahead-of-time, > without using JavaScript). > > I went ahead and implemented this for the Kawa epub version. > I wrote some JavaScript that loads the epub table-of-contents > page (in Kawa's case bk01-toc.xhtml) and loads it into a > either an iframe or a frameset, depending on the URL used. > Furthermore, it hides and unhides nodes in the ToC so it > only shows the most interesting links (basically children, > ancestors, and siblings).
I downloaded and tried opening a few of the files included, but I didn't get any of the "smart" behaviour. I tried opening bk01-toc.xhtml, index.xhtml and a couple of others. Is this supposed to work in a regular web browser? I do not have Kawa installed.
