Thursday, 1st December 2022

Image

I've done an advent calendar for Virginia as an amusement, both for her and for myself in the doing of. All the boxes can be opened apart from in December when they have to be opened one after each other, and only when you've reached that day. Clicking an opened box gives a larger image, clicking the penguin closes all the boxes, clicking the polar bear opens them all if it's not December, clicking the Arctic fox gets to this webpage.

There's a YAML file specifying the layout and images and dimensions. A Sinatra app enables editing the layout in a HTML page. More Ruby generates the deployable HTML and images and Javascript code to make the show work. HTML web storage is used to locally record what boxes have been opened in a browser.