From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: tooltips Date: Wed, 15 Jan 2014 23:14:02 +0100 Message-ID: References: <87fvoq61cm.fsf@bzg.ath.cx> <8761plrxp8.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3YhM-0007de-LP for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 17:12:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3YhG-00005Q-7y for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 17:12:32 -0500 Received: from mail-forward4.uio.no ([2001:700:100:10::33]:34175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3YhG-0008PB-14 for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 17:12:26 -0500 Received: from exim by mail-out4.uio.no with local-bsmtp (Exim 4.80.1) (envelope-from ) id 1W3Yge-0000rU-CJ for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 23:11:48 +0100 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rustom Mody Cc: Bastien , emacs-orgmode , Christian Moe 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