From: Sebastian Rose <sebastian_rose@gmx.de>
To: Dov Grobgeld <dov.grobgeld@gmail.com>
Cc: Jeff Horn <jrhorn424@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: org-mode and htmlslidy
Date: Fri, 12 Nov 2010 13:50:59 +0100 [thread overview]
Message-ID: <87aaleyabw.fsf@gmx.de> (raw)
In-Reply-To: <AANLkTi=UwNU=i9kCf8H6=LcyPALvP3GGVPvd254WSW5m@mail.gmail.com> (Dov Grobgeld's message of "Fri, 12 Nov 2010 08:00:30 +0200")
Dov Grobgeld <dov.grobgeld@gmail.com> writes:
> I tried warping s5-org this morning into slidy-org and I finally got it to
> work with one small remaining problem. In the resulting HTML I have:
>
> <div id="outline-container-2" class="outline-2">
>
> which I want to change to:
>
> <div id="outline-container-2" class="class">
>
> What is the best way of changing that? I saw that s5-org is using some
> jquery rewrites of the xml tree. Is that the best way of solving it? Is
> there a possibility of doing this change directly in org-mode without
> javascript?
>
> Thanks!
> Dov
The jQuery way:
#+STYLE: <script type="text/javascript">
#+STYLE: $(document).ready(function(){
#+STYLE: $(div.outline-2).each(function(){
#+STYLE: this.addClass("MY-CLASS");
#+STYLE: this.removeClass("outline-2");})});
#+STYLE: </script>
http://api.jquery.com/browser/ is your friend ;)
HTH,
Sebastian
next prev parent reply other threads:[~2010-11-12 12:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-11 12:48 org-mode and htmlslidy Dov Grobgeld
2010-11-11 13:08 ` Christian Moe
2010-11-11 13:15 ` Dov Grobgeld
2010-11-11 13:17 ` John Hendy
2010-11-11 13:25 ` Dov Grobgeld
2010-11-11 13:38 ` John Hendy
2010-11-11 14:04 ` Dov Grobgeld
2010-11-11 15:02 ` John Hendy
2010-11-11 13:55 ` Eric S Fraga
2010-11-11 15:58 ` Jeff Horn
2010-11-11 21:54 ` Dov Grobgeld
2010-11-12 2:27 ` Jeff Horn
2010-11-12 6:00 ` Dov Grobgeld
2010-11-12 12:50 ` Sebastian Rose [this message]
2010-11-16 16:34 ` Peter Frings
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=87aaleyabw.fsf@gmx.de \
--to=sebastian_rose@gmx.de \
--cc=dov.grobgeld@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jrhorn424@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).