[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTML-Info design
From: |
Yuri Khan |
Subject: |
Re: HTML-Info design |
Date: |
Mon, 22 Dec 2014 15:31:41 +0700 |
On Mon, Dec 22, 2014 at 2:12 PM, Richard Stallman <address@hidden> wrote:
> Would it be possible, using a Javascript extension to the browser, to
> get similar behavior from a file of HTML? That is, load a whole
> manual as a single file, then display just one subdivision of it, and
> change to a different subdivision in accord with user commands?
Technically possible. Wrap each node in an <article class="node">
element, style them as article.node { display: none }, then add to a
single node a special class, e.g. <article class="active node">, and
style it as article.active.node { display: block }. The script or
extension would then only need to remove the “active” class from one
node and add it to another.
Performance-wise, this might or might not be a good idea, depending on
the file size. On the plus side, navigation between nodes of the same
file will be near-instant. On the other hand, the browser will need to
read and parse the whole file up front and keep it in process memory
at all times.
- Re: Have you all gone crazy? Was: On being web-friendly and why info must die, (continued)
- Re: Have you all gone crazy? Was: On being web-friendly and why info must die, David Kastrup, 2014/12/21
- Re: Have you all gone crazy? Was: On being web-friendly and why info must die, Sven Axelsson, 2014/12/21
- Re: Have you all gone crazy? Was: On being web-friendly and why info must die, Lennart Borgman, 2014/12/21
- Re: Have you all gone crazy? Was: On being web-friendly and why info must die, David Kastrup, 2014/12/21
- Re: Have you all gone crazy? Was: On being web-friendly and why info must die, Lennart Borgman, 2014/12/21
- Re: Have you all gone crazy? Was: On being web-friendly and why info must die, Lennart Borgman, 2014/12/21
- Re: Have you all gone crazy? Was: On being web-friendly and why info must die, David Kastrup, 2014/12/21
- Re: Have you all gone crazy? Was: On being web-friendly and why info must die, Yuri Khan, 2014/12/21
- Re: Have you all gone crazy? Was: On being web-friendly and why info must die, David Kastrup, 2014/12/22
- HTML-Info design, Richard Stallman, 2014/12/22
- Re: HTML-Info design,
Yuri Khan <=
- Re: HTML-Info design, Achim Gratz, 2014/12/22
- HTML-Info design, Stephen J. Turnbull, 2014/12/22
- Re: HTML-Info design, David Kastrup, 2014/12/22
- Re: HTML-Info design, Nic Ferrier, 2014/12/22
- Re: HTML-Info design, Jan Djärv, 2014/12/22
- Re: HTML-Info design, Lennart Borgman, 2014/12/22
- Re: HTML-Info design, David Kastrup, 2014/12/22
- Re: HTML-Info design, Jan Djärv, 2014/12/22
- Re: HTML-Info design, Lennart Borgman, 2014/12/22
- Re: HTML-Info design, Lennart Borgman, 2014/12/22