Skeleton for Shadowbox implementation #2

Merged
merged 2 commits into from Apr 26, 2012

Conversation

Projects
None yet
2 participants
@radgeek

radgeek commented Apr 26, 2012

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.

Charles Johnson added some commits Apr 26, 2012

energy7 added a commit that referenced this pull request Apr 26, 2012

Merge pull request #2 from radgeek/master
Skeleton for Shadowbox implementation

@energy7 energy7 merged commit 3e7d812 into energy7:master Apr 26, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment