energy7/Occupy.net — pull request #2 by radgeek (2012-04-26 06:04:04+00:00)
Title: Skeleton for Shadowbox implementation

Erica,

Potentially of use: these edits should provide a skeleton for a functional Shadowbox setup. Currently this is only set up to do one thing: load the HTML content of the tile that you clicked on into the Shadowbox. The output currently looks terrible because it needs proper styling, but at least now the DOM should be there to style with. This resolves two major issues: before, only some tiles got set up properly to fire a shadowbox (it had to do with whether or not they'd been inserted into the DOM by the time window.load fired); now all tiles fire a Shadowbox; and every Shadowbox gets loaded up with the HTML of the tile that was clicked on (instead of "undefined"). There's a lot of room for developing custom behaviors for different types of tiles (photo, project, info, whatever) -- we just need to add some if-else clauses to the activateTile() function.

Take a look; let me know what you think.