July 07, 2010
On 7/7/10, Nick Sabalausky <a@a.a> wrote:
> (I'm not sure that JS by
> itself can maintain any state between pages. If it can, that's news to me.

Javascript can set and retreive its own cookies. My homepage uses a javascript gimmick with cookies to change its whole stylesheet. http://arsdnet.net/ bottom of the left menu, needs javascript. Note that the "classic" link removes the sidebar, so probably best not to click it.

Note that it sets a cookie to remember your preference as you move around the site, which is all static html.



IMO, the ideal way for users to choose their own font is to not bother with any special code at all. People who want different fonts can just change their browser settings. If your code says "monospace" and a user says "that font sucks", you're complete in the right (if you ask me) to reply "fix your browser".
July 08, 2010
"Adam Ruppe" <destructionator@gmail.com> wrote in message news:mailman.297.1278538315.24349.digitalmars-d-announce@puremagic.com...
> On 7/7/10, Nick Sabalausky <a@a.a> wrote:
>> (I'm not sure that JS by
>> itself can maintain any state between pages. If it can, that's news to
>> me.
>
> Javascript can set and retreive its own cookies. My homepage uses a javascript gimmick with cookies to change its whole stylesheet. http://arsdnet.net/ bottom of the left menu, needs javascript. Note that the "classic" link removes the sidebar, so probably best not to click it.
>
> Note that it sets a cookie to remember your preference as you move around the site, which is all static html.
>

Interesting, I was wondering about that. I assume that still works if the page is served via "file:///" instead of "http://"?

>
> IMO, the ideal way for users to choose their own font is to not bother with any special code at all. People who want different fonts can just change their browser settings. If your code says "monospace" and a user says "that font sucks", you're complete in the right (if you ask me) to reply "fix your browser".

Can't say I disagree. (Although, if the site tries to use a size or style that the user's chosen monospace font happens to not handle well, then the situation's a little more complex...man, the web sucks...)


July 08, 2010
On 03/07/2010 01:55, Walter Bright wrote:
> David Gileadi was kind enough to spend some time redesigning the look of
> the D web site. A preview of it is up on d-programming-language.org.
> This isn't about the content, just the look/style/feel.
>
> Comments welcome.
>
> Please don't put links to anything other than the front page yet, as the
> organization may change.

Can't say I'm too found of the dark black/grey background around. I think something lighter would be better.

-- 
Bruno Medeiros - Software Engineer
1 2 3 4 5 6 7 8 9 10
Next ›   Last »