resolves #140: adding lightbox to all figures on the page
This adds a lightbox for all figures on a page:
- click on a figure to show it full-page
- click on the figure or the X on the upper right to close it
As requested it doesn't add weight to each page. Instead it uses JavaScript. It runs as-lazy-as-possible, that is: adds DOM elements only when needed. Instead of adding the CSS to doc.css
as suggested in the issue it resolves, I added a separate lightbox.css
as this is symmetric to 06-lightbox.js
Edited by Alexander Schwartz