emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: mail@christianmoe.com
Cc: emacs-orgmode@gnu.org
Subject: Re: [html-export question] location with JS.
Date: Wed, 17 Dec 2014 16:01:28 +0100	[thread overview]
Message-ID: <87a92mialz.fsf@gmx.us> (raw)
In-Reply-To: <m2r3vy775x.fsf@christianmoe.com> (Christian Moe's message of "Wed, 17 Dec 2014 14:11:22 +0100")

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

Hi Christian,

Thanks for the insightful comments.  Javascript is an interesting domain;
totally foreign to me, though.

Christian Moe <mail@christianmoe.com> writes:

> (except when the window becomes seriously too small,
> and the year jumps up on top of the other one, but that, I think, has to
> be expected).

This is what I'm trying to get rid of, somehow...  In my full document it
seemed to jump around much more. . .

I think I got it working now by rerunning the script on resize and cloning
the node rather than modifying the original node.  I have no idea if this
is bad.  It works wonderfully in the newest Firefox and Gnome Web.

> A different problem is that the script only picks out every other
> bol-year DIV, as you will soon see if you add more entries with boxes on
> the left. The reason is that getElementsByClassName returns a live
> HTMLCollection that updates according to the document order of the
> elements even as the script changes that order.


> To loop through them, try simply
> var e = elements[0]; // instead of var e = elements[i];

Thanks this is very helpful.

Next step: Proper small caps and make it work well on my phone!


And I faced endless streams of vendor-approved Ikea furniture. . .

[-- Attachment #2: test.org --]
[-- Type: application/vnd.lotus-organizer, Size: 4047 bytes --]

  reply	other threads:[~2014-12-17 15:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-16 17:37 [html-export question] location with JS Rasmus
2014-12-17  9:27 ` Christian Moe
2014-12-17 11:19   ` Rasmus
2014-12-17 13:11     ` Christian Moe
2014-12-17 15:01       ` Rasmus [this message]
2014-12-17 10:29 ` Paul Rudin
2014-12-17 11:38   ` Rasmus

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:

  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=87a92mialz.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@christianmoe.com \


* 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


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).