0xDECAFBAD

It's all spinning wheels and self-doubt until the first pot of coffee.

Drag the boxes, stretch the lines

Update: A nice mention and ensuing discussion of this has appeared with this article at Lambda the Ultimate. I've killed trackback here due to spam, so I'm tossing this in manually.

It's been awhile since I really sat down and tried knocking something out in the browser with JavaScript / DHTML. There was that Greasemonkey thing I did a little while ago, but that's not quite the same.

So, I suddenly got an urge today to try making a mindmap-ish, boxes-and-lines chart out of some simple nested HTML lists using CSS and unobtrusive JavaScript. I didn't get all that far toward the original goal--but during the course of exploring script.aculo.us, Prototype, and Behaviour,js I came up with something that I think has potential.

It's likely to only work on Firefox and Safari, but check it out and drag the boxes around:

http://www.decafbad.com/2005/06/map-test/

View the source, steal anything worth theft, make fun of what's bad. Oh yeah, and don't mind the ugly background images too much: They were just some random textures I picked out of The Gimp in order to see just how well the transparency on distorted PNGs worked.

Archived Comments