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: Wed, 15 Jan 2014 23:14:02 +0100	[thread overview]
Message-ID: <m2lhygevv9.fsf@uio.no> (raw)
In-Reply-To: <CAJ+Teod+_Gxw5L19JOfx9Uf_898GE=VisL62JeWrLb76nks1SQ@mail.gmail.com>


Rustom, Bastien,

Bastien writes:

>> I made a micro screencast for demoing it:
>> http://bzg.fr/u/org-footnotes-jquery.ogv

Thanks, Bastien, that's cool!

Rustom Mody writes:

> Thanks Christian for that.
> Just one small thing -- Can we remove the number?

Sure, try this new version of fntooltip.js:

----------------------

$(document).ready(fntooltips);

function fntooltips() {
    $(".footnum").each(
	function () {
	    $("[href='#" + this.id + "']")
		.attr("title", 
		      $(this).closest("div").find("p").text().trim());
	   }
	)
}

----------------------

The only line that's changed is the one that now goes

  $(this).closest("div").find("p").text().trim());



Yours,
Christian

  reply	other threads:[~2014-01-15 22:12 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       ` tooltips Christian Moe
2014-01-15 16:56         ` tooltips Bastien
2014-01-15 18:25           ` tooltips Rustom Mody
2014-01-15 22:14             ` Christian Moe [this message]
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=m2lhygevv9.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).