I am trying to have basic collapsing/folding functionality for sections in the HTML file that has been exported from org-mode, since the files I want to share are very large. I am using Emacs 26.2 (9.0) and Org 9.1.9 on a Mac. I am not able to get this previous solution to work in 2019.
For example, the following file is converted to HTML here
#+Title+: JS test #+INFOJS_OPT: path:/~ksb/js/org-info.js #+INFOJS_OPT: toc:nil ltoc:nil view:overview mouse:underline #+INFOJS_OPT: home:https://orgmode.org buttons:nil * Chapter 1 ** Section 1 *** Part 1 - csp ** Section 2 - cs2p
I have a freshly-downloaded copy of js/org-info.js.
Uncaught TypeError: Cannot read property 'cloneNode' of undefined at Object.initFromTOC (org-info.js:82) at Object.init (org-info.js:49) at OrgHtmlManagerLoadCheck (org-info.js:289) at <anonymous>:1:1