emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: Rustom Mody <rustompmody@gmail.com>
Cc: Bastien <bzg@gnu.org>, emacs-orgmode <emacs-orgmode@gnu.org>,
	Christian Moe <mail@christianmoe.com>
Subject: Re: tooltips
Date: Tue, 14 Jan 2014 22:30:14 +0100	[thread overview]
Message-ID: <m2sisqe002.fsf@uio.no> (raw)
In-Reply-To: <CAJ+TeoepMaJXOBSktHXvAS=1YfjuR+846=Y=PQABsUxZa7PG7w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 971 bytes --]


Rustom Mody writes:

> May I have the setup?
> ie where do I put that JS, the invocation/import or whatever of JQuery etc
> [I really dont know any JS!]

I attach a zip file. It expands to a folder containing three files: a
sample Org document, a current version of JQuery, and the code snippet I
posted. Open the Org and export to HTML, you should see very simple
popups when you hover over the footnote markers.

JQuery is a library that makes it easier to get stuff done in
javascript. You may want to get your own at http://jquery.com.

All the Org setup you need to make it work is in the lines:

#+HTML_HEAD: <script src="jquery.js"></script>
#+HTML_HEAD: <script src="fntooltip.js"></script>

On an actual website, you might not have the javascript in the same
folder as the HTML, so you'd need to edit the HTML_HEAD
lines to give the right path to the .js files relative to the HTML
document.

Let me know if this doesn't work or isn't clear.

Yours,
Christian


[-- Attachment #2: fntooltip.zip --]
[-- Type: application/x-zip-compressed, Size: 34057 bytes --]

  reply	other threads:[~2014-01-14 21:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14  7:08 tooltips Rustom Mody
2014-01-14 15:15 ` tooltips Bastien
2014-01-14 17:46   ` tooltips Christian Moe
2014-01-14 18:40     ` tooltips Rustom Mody
2014-01-14 21:30       ` Christian Moe [this message]
2014-01-15 16:56         ` tooltips Bastien
2014-01-15 18:25           ` tooltips Rustom Mody
2014-01-15 22:14             ` tooltips Christian Moe
2014-01-16  1:27               ` tooltips Rustom Mody
2014-01-14 19:03     ` tooltips 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=m2sisqe002.fsf@uio.no \
    --to=mail@christianmoe.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=rustompmody@gmail.com \
    /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).