Alicorn comments on Luminosity (Twilight fanfic) discussion thread - Less Wrong
You are viewing a comment permalink. View the original post to see all comments and the full post content.
You are viewing a comment permalink. View the original post to see all comments and the full post content.
Comments (435)
I like it too, but people have complained. White-on-black will remain the default; I just want to make it possible to switch.
My reason for preferring plain black-on-white: makes it less conspicuous to read at work.
As an interim solution, try http://luminous.elcenia.com/story/luminosity##.html where ## is the chapter number. This is where I upload the files with the text, and then they go wherever else they need to be via file include.
Thanks. I did read you mentioning that trick, but it's good to be reminded.
I see your posts appear via the RSS feed, which currently contains a title and a one sentence summary. If you changed the configuration to include the whole chapter text into the feed, that would neatly obviate the problem.
I'll do a little testing and see if I can make it take file includes there. Pasting would leave the problem that the feed would require separate correction if I fix a typo or something.
Edit: I just tried a test of this and it didn't work. If anyone knows how to make RSS feeds accept file includes, please let me know (it'd be useful for Elcenia, too! HTHT already sends the new comic page through the feed, but that's just an image.)
The best solution would be to put some Javascript links on the page that change the text and background colors when you clicked on them. The downside to this would be that it would revert to default every time you went to a different chapter, though.
That Javascript is something I could reasonably write in ten minutes after I get home from work tonight. I'll do so and post it here unless someone produces a better solution before then.
Well they're all on the same domain, so it should be easy enough to cookie it up.
Thanks! I have, just barely, the coding skills to do this myself, and it was the solution I was planning to use when I got around to it - but it'd take me way more than ten minutes.
This should do it. Put a copy of jquery-1.4.2.min.js in the same directory (jQuery is a Javascript library for keeping browser compatibility bugs at bay).
This stores the color scheme in a cookie, so it's preserved when you move between chapters. The setCookie and getCookie functions came from here. Given the example, this should be pretty easy to extend for things like changing text size and margins, if you are so inclined.
This appears to work perfectly! However, it looks like the default color scheme is black on white, and I'd like it to be the other way around - what do I change to make the black background default?
Also, is there any way for changing the color scheme to bring a different set of navigation buttons in? I made some white ones (not a complete set yet) which would look much nicer than the existing ones on the white background.
That's odd - if I'm understanding it correctly it'll leave the page unchanged unless you click one of the links or have a cookie set. But it's not handling the default case explicitly, so try replacing the $(document).ready section in the code above with this:
To see what first-time visitors would see, clear your cookies. Otherwise it should remember what color it was last time.
Yes. First, move the determination of which images to use into CSS, by making each navigation a div with its own CSS class, and making a style like
Add "class=blackBackground" to the <body> tag. Make CSS classes like this for each of the buttons and each of the background colors. Then in setColorScheme, use
And the reverse, to change the class on the body tag.
In case anyone else is having this problem, I've posted one solution on my blog: Using SSI in XML for RSS
I've had the same thought