From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: Org-Mode Homepage error
Date: Tue, 26 Jul 2011 18:00:34 +0200 [thread overview]
Message-ID: <87vcupdobh.fsf@Rainer.invalid> (raw)
In-Reply-To: 87mxg1ozgc.fsf@gnu.org
Bastien <bzg@altern.org> writes:
> I fail to understand why an additional <div id="preamble">
> should break Sebastian's tool.
> </mode lazybum>
For starters, the title now resides in the preamble, but the script
looks for it in content. This error is easily fixed, but I don't know
if it has further repercussions.
--8<---------------cut here---------------start------------->8---
diff --git a/code/org-info-js/org-info-src.js b/code/org-info-js/org-info-src.js
index 2e49e9c..33faaac 100644
--- a/code/org-info-js/org-info-src.js
+++ b/code/org-info-js/org-info-src.js
@@ -522,6 +522,14 @@ var org_html_manager = {
} else { // be backward compatible
t.BODY = document.getElementsByTagName("body")[0];
}}
+ t.PREA = document.getElementById("preamble");
+ t.POST = document.getElementById("postamble");
+ if(null == t.PREA) {
+ t.PREA = t.BODY;
+ }
+ if(null == t.POST) {
+ t.POST = t.BODY;
+ }
if(! t.WINDOW) {
t.WINDOW = document.createElement("div");
t.WINDOW.style.marginBottom = "40px";
@@ -738,7 +746,7 @@ var org_html_manager = {
// Move the title into the first visible section.
// TODO: show title above everything if FIXED_TOC !!!
- t.TITLE = t.BODY.getElementsByTagName("h1")[0];
+ t.TITLE = t.PREA.getElementsByTagName("h1")[0];
if(t.INNER_TITLE && !t.FIXED_TOC && t.VIEW != t.SLIDE_VIEW) {
t.INNER_TITLE = t.TITLE.cloneNode(true);
/* TODO: this is still based on wrong behaviour of browsers (same id for two elements)
--8<---------------cut here---------------end--------------->8---
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves
next prev parent reply other threads:[~2011-07-26 16:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-25 19:33 Org-Mode Homepage error Renger van Nieuwkoop
2011-07-25 19:42 ` Michael Markert
[not found] ` <2152B3DFC552DE47A0A36CCC93D735310439FF7D@mx01.ecoplan.local>
2011-07-25 20:10 ` Michael Markert
2011-07-25 20:26 ` Sebastien Vauban
2011-07-25 20:30 ` Nick Dokos
2011-07-25 21:29 ` Bastien
2011-07-26 12:36 ` Sebastien Vauban
2011-07-26 15:04 ` Bastien
2011-07-26 16:00 ` Achim Gratz [this message]
2011-07-26 21:19 ` Sebastien Vauban
2011-07-27 17:33 ` Bastien
2011-07-28 18:49 ` Achim Gratz
2011-07-31 17:42 ` Achim Gratz
2011-08-16 20:10 ` Bastien
2011-08-17 15:58 ` Achim Gratz
2011-08-17 16:18 ` Bastien
2011-08-17 16:50 ` Achim Gratz
2011-08-18 7:02 ` 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=87vcupdobh.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.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).