Add .JPG and .jpeg extensions to Magnific Popup lightbox call. Fixes #33
This commit is contained in:
parent
39e4cf57af
commit
db2981d253
3 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
||||
<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>
|
||||
</figure>
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ $(function() {
|
|||
});
|
||||
|
||||
// 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
|
||||
$(document).ready(function() {
|
||||
|
|
2
assets/js/scripts.min.js
vendored
2
assets/js/scripts.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue