emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] worg table of contents
Date: Wed, 15 May 2013 13:53:55 -0400	[thread overview]
Message-ID: <282e3e6c4effd2077b1af34748f6662a@mail.rickster.com> (raw)

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

             reply	other threads:[~2013-05-15 17:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15 17:53 Rick Frankel [this message]
2013-05-16  6:19 ` [BUG] worg table of contents Bastien
2013-05-16 21:50   ` Rick Frankel
2013-05-17  6:12     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=282e3e6c4effd2077b1af34748f6662a@mail.rickster.com \
    --to=rick@rickster.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).