Skip to content

Commit e2acad0

Browse files
committed
Removing JS for magnific-popup configuration
1 parent d0a72b1 commit e2acad0

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

_includes/js/main.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,3 @@ $(function() {
5656
$("#drawer").toggleClass("js-hidden");
5757
});
5858
});
59-
60-
// Add lightbox class to all image links
61-
$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup");
62-
63-
// Magnific-Popup options
64-
$(document).ready(function() {
65-
$('.image-popup').magnificPopup({
66-
type: 'image',
67-
tLoading: 'Loading image #%curr%...',
68-
gallery: {
69-
enabled: true,
70-
navigateByImgClick: true,
71-
preload: [0,1] // Will preload 0 - before current, and 1 after the current image
72-
},
73-
image: {
74-
tError: '<a href="%url%">Image #%curr%</a> could not be loaded.',
75-
},
76-
removalDelay: 300, // Delay in milliseconds before popup is removed
77-
// Class that is added to body when popup is open.
78-
// make it unique to apply your CSS animations just to this exact popup
79-
mainClass: 'mfp-fade'
80-
});
81-
});

0 commit comments

Comments
 (0)