Skip to content

Commit

Permalink
Enable image popup on < 500px wide screens
Browse files Browse the repository at this point in the history
  • Loading branch information
jluccisano committed Feb 12, 2017
1 parent a123809 commit b1c286c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions assets/js/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ $(document).ready(function(){

// Magnific-Popup options
$(".image-popup").magnificPopup({
disableOn: function() {
if( $(window).width() < 500 ) {
return false;
}
return true;
},
// disableOn: function() {
// if( $(window).width() < 500 ) {
// return false;
// }
// return true;
// },
type: 'image',
tLoading: 'Loading image #%curr%...',
gallery: {
Expand Down
Loading

0 comments on commit b1c286c

Please sign in to comment.