Re: [O] tooltips
Christian Moe m...@christianmoe.com writes: Let me know if this doesn't work or isn't clear. It works very well! I made a micro screencast for demoing it: http://bzg.fr/u/org-footnotes-jquery.ogv Thanks for packaging this. -- Bastien
Re: [O] tooltips
On Wed, Jan 15, 2014 at 10:26 PM, Bastien b...@gnu.org wrote: Christian Moe m...@christianmoe.com writes: Let me know if this doesn't work or isn't clear. It works very well! I made a micro screencast for demoing it: http://bzg.fr/u/org-footnotes-jquery.ogv Thanks for packaging this. -- Bastien Thanks Christian for that. Just one small thing -- Can we remove the number? [I tried to look at the js but could not figure out the details and also the debugging model]
Re: [O] tooltips
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
Re: [O] tooltips
On Thu, Jan 16, 2014 at 3:44 AM, Christian Moe wrote: Rustom Mody writes: Thanks Christian for that. Just one small thing -- Can we remove the number? Sure, try this new version of fntooltip.js: Super! Thanks Christian!
Re: [O] tooltips
Hi Rustom, Rustom Mody rustompm...@gmail.com writes: I was wondering if org-mode html generation has some automatic way of generating tooltips. Something along the lines that instead of generating a footnote, a footnote should generate a tooltip. The html would be something like this: !DOCTYPE html html body div title=Hi! Now you see me!hover me/div /body Instead of changing the current HTML, I'd rather go and find a solution where some javascript can display the tooltip. Did you look for this? -- Bastien
Re: [O] tooltips
Bastien writes: Instead of changing the current HTML, I'd rather go and find a solution where some javascript can display the tooltip. E.g.: --- $(document).ready(fntooltips); function fntooltips() { $(.footnum).each( function () { $([href='# + this.id + ']) .attr(title, this.parentNode.parentNode.textContent); } ) } - Tested with JQuery 1.9.1 and a recent Org. Yours, Christian
Re: [O] tooltips
On Tue, Jan 14, 2014 at 11:16 PM, Christian Moe m...@christianmoe.com wrote: Bastien writes: Instead of changing the current HTML, I'd rather go and find a solution where some javascript can display the tooltip. E.g.: --- $(document).ready(fntooltips); function fntooltips() { $(.footnum).each( function () { $([href='# + this.id + ']) .attr(title, this.parentNode.parentNode.textContent); } ) } - Tested with JQuery 1.9.1 and a recent Org. Yours, Christian 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!]
Re: [O] tooltips
Christian Moe m...@christianmoe.com writes: $(document).ready(fntooltips); function fntooltips() { $(.footnum).each( function () { $([href='# + this.id + ']) .attr(title, this.parentNode.parentNode.textContent); } ) } Yes, exactly, thanks! -- Bastien
[O] tooltips
I was wondering if org-mode html generation has some automatic way of generating tooltips. Something along the lines that instead of generating a footnote, a footnote should generate a tooltip. The html would be something like this: !DOCTYPE html html body div title=Hi! Now you see me!hover me/div /body