emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] worg table of contents
@ 2013-05-15 17:53 Rick Frankel
  2013-05-16  6:19 ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Rick Frankel @ 2013-05-15 17:53 UTC (permalink / raw)
  To: emacs-orgmode

The table of contents on worg is shown/hidden using the :hover
pseudo-element on the #table-of-contents element.

The problem is that this doesn't work on an ipad (or other touch
device). The following javascript snippet will add a function to show
the toc when it is "clicked", but I'm not sure where to put it (at the
bottom of "preamble.html"?)

#+BEGIN_SRC javascript
document.addEventListener('DOMContentLoaded',function() {
document.getElementById("table-of-contents").onclick = function() {
var elem = document.getElementById("text-table-of-contents");
elem.style.display = elem.style.display == "block" ? "none" : "block";
}
});
#+END_SRC

rick

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-17  6:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-15 17:53 [BUG] worg table of contents Rick Frankel
2013-05-16  6:19 ` Bastien
2013-05-16 21:50   ` Rick Frankel
2013-05-17  6:12     ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).