From: Sebastian Rose <sebastian_rose@gmx.de>
To: lists@manor-farm.org
Cc: emacs-orgmode@gnu.org
Subject: Re: Some Javascript Adventures
Date: Wed, 13 May 2009 15:57:58 +0200 [thread overview]
Message-ID: <87ab5hqf4p.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: <87my9ixvte.fsf@kassiopeya.MSHEIMNETZ> (Sebastian Rose's message of "Tue, 12 May 2009 16:03:25 +0200")
> => --->8----------------------------->8----------------------------->8---
> #+STYLE: <script type="text/javascript" src="jquery-1.3.2.min.js"></script>
> #+STYLE: <script type="text/javascript">
> #+STYLE: <!--/*--><![CDATA[/*><!--*/
> #+STYLE: $(document).ready(
> #+STYLE: function(){
> #+STYLE: $("#text-1 ul").eq(0).find("li").each(
> #+STYLE: function(){if($(this).children().eq(0)){
> #+STYLE: $(this).css({cursor: "pointer"});
> #+STYLE: $(this).bind(
> #+STYLE: "click",
> #+STYLE: function(){
> #+STYLE: if($(this).children().eq(0).is(":visible")) $(this).children().eq(0).slideUp(250);
> #+STYLE: else $(this).children().eq(0).slideDown(250);
> #+STYLE: return false;});}});
Add this line here:
#+STYLE: $("#text-1 ul").eq(0).find("a").bind("click", function(){document.location.href=$(this).attr('href');return false;});
> #+STYLE: $("#text-1 ul").eq(0).find("ul").hide();
> #+STYLE: });
> #+STYLE: /*]]>*///-->
> #+STYLE: </script>
>
>
> * Sitemap
> #+INCLUDE sitemap.org
>
> <= ---8<-----------------------------8<-----------------------------8<---
>
Unfortunately, it's tricky to get jQuery to work in Opera together with
org-info.js (org-info.js works, jQuery doesn't :) ).
Even in Firefox, if you place the jQuery stuff below the org-info.js
stuff, it stops working.
We should realy create a jQuery version of org-info.js...
Sebastian
next prev parent reply other threads:[~2009-05-13 13:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-12 11:42 Some Javascript Adventures Ian Barton
2009-05-12 13:48 ` Sebastian Rose
2009-05-12 13:49 ` Carsten Dominik
2009-05-12 15:51 ` Sebastian Rose
2009-05-13 12:07 ` Carsten Dominik
2009-05-12 14:03 ` Sebastian Rose
2009-05-13 13:57 ` Sebastian Rose [this message]
2009-05-14 12:14 ` Ian Barton
2009-05-15 11:17 ` Sebastian Rose
2009-05-14 12:19 ` Ian Barton
2009-05-14 12:30 ` Carsten Dominik
2009-05-14 18:50 ` Sebastian Rose
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=87ab5hqf4p.fsf@kassiopeya.MSHEIMNETZ \
--to=sebastian_rose@gmx.de \
--cc=emacs-orgmode@gnu.org \
--cc=lists@manor-farm.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).