Add .JPG and .jpeg extensions to Magnific Popup lightbox call. Fixes #33

This commit is contained in:
Michael Rose 2014-03-14 08:37:12 -04:00
parent 39e4cf57af
commit db2981d253
3 changed files with 4 additions and 4 deletions

View file

@ -33,8 +33,8 @@ Apply the `half` class like so to display two images side by side that share the
And you'll get something that looks like this: And you'll get something that looks like this:
<figure class="half"> <figure class="half">
<a href="http://placehold.it/1200x600.jpg"><img src="http://placehold.it/600x300.jpg"></a> <a href="http://placehold.it/1200x600.JPG"><img src="http://placehold.it/600x300.jpg"></a>
<a href="http://placehold.it/1200x600.jpg"><img src="http://placehold.it/600x300.jpg"></a> <a href="http://placehold.it/1200x600.jpeg"><img src="http://placehold.it/600x300.jpg"></a>
<figcaption>Two images.</figcaption> <figcaption>Two images.</figcaption>
</figure> </figure>

View file

@ -44,7 +44,7 @@ $(function() {
}); });
// Add lightbox class to all image links // Add lightbox class to all image links
$("a[href$='.jpg'],a[href$='.png'],a[href$='.gif']").addClass("image-popup"); $("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup");
// Magnific-Popup options // Magnific-Popup options
$(document).ready(function() { $(document).ready(function() {

File diff suppressed because one or more lines are too long