xeoncross / jr

Jr. the static, static javascript site generator (you should see this)
Other
759 stars 39 forks source link

Create lightbox from content images #24

Open xeoncross opened 10 years ago

xeoncross commented 10 years ago

Using something like http://codepen.io/gschier/pen/HCoqh we could pre-fill the dom with lightbox images by looking for all the img nodes inside the article after parsing and appending the hidden lightbox elements. We would also have to wrap all img nodes inside a link with the href=#id trigger.