I saw that Codeshaman has added a NaNoWriMo progress bar to his blog and I liked the idea so much that I swiped it. I have no idea what the mechanics of his bar might be, but the code behind mine will do the following:
- Prior to 1 November, display a countdown to 1 November. Note that I didn’t account for the time difference between Willoughby and my server location (Chicago), so it’ll be an hour off.
- Beginning on 1 November, display a progress bar and a daily target line. The progress bar visually represents the percentage of completion, while the target line displays the ideal word count based on writing 1,667 words per day. Target word count is also displayed numerically beneath the progress bar.
- Upon reaching the overall target word count (50,000), remove the daily target line (and corresponding target word count) and display a message indicating completion.
That’s the theory, anyway. I’ll be the first to admit that this little widget is extremely kludgy. Most of the CSS that makes it work feels like a big, fat, inelegant cheat.
Oh, and of course it doesn’t look quite right when viewed with Internet Explorer. The real kicker is Opera. The version I’ve got (7.0, which I paid for) shifts the whole blasted sidebar about 500 pixels to the right, way off into Never-Neverland. Maybe I should download the latest version. I hear there’s no advertising on the free version these days.
Leave a Reply