Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Skeleton for Shadowbox implementation #2
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.