Anyway, a while ago I wrote about Parkie, a micro-webpage I made to calculate which side of the street I should park on.
Recently I updated it to cope with my new parking circumstance, with rules like "first and third Wednesday park on even side, second and fourth Thursday park on odd side". (This is more complex than the rules in Boston which at least always did it on the same day of the week) as well as making it sort of customizable... if one person writes me that it would be useful for them, I'd make it so its config block
{
startMonth:3,
endMonth:10,
restricts: [
{dayOfWeek: 3, nth: 1, avoid: 'odd/our side', gofor: 'even/other side'},
{dayOfWeek: 3, nth: 3, avoid: 'odd/our side', gofor: 'even/other side'},
{dayOfWeek: 4, nth: 2, avoid: 'even/other side', gofor: 'odd/our side'},
{dayOfWeek: 4, nth: 4, avoid: 'even/other side', gofor: 'odd/our side'}
]
}
was readable from the URL, as URLencoded JSON. Until then I have to assume this will only be useful to me and my girlfriend so I won't bother.

So it's Vanilla.js. Besides using console.write(), kind of a forgotten way of constructing a page, The CSS used vviewport percentage widths for the character size, which got me nice, screen-filling (if a bit brutalist) results without fiddling with viewport stuff. (In this case the unit is 1/100 of the screenwidth, so 6 or 7vw would get a nice number of characters in per line.)
No comments:
Post a Comment