mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
27 lines
586 B
JavaScript
27 lines
586 B
JavaScript
(function ($) {
|
|
|
|
$('.lightbox, .gutter').each(function () {
|
|
$(this).magnificPopup({
|
|
delegate: 'a.lb',
|
|
type: 'image',
|
|
closeOnContentClick: false,
|
|
closeBtnInside: false,
|
|
mainClass: 'mfp-with-zoom mfp-img-mobile',
|
|
image: {
|
|
verticalFit: true,
|
|
},
|
|
gallery: {
|
|
enabled: true,
|
|
},
|
|
zoom: {
|
|
enabled: true,
|
|
duration: 300, // don't foget to change the duration also in CSS
|
|
opener: function (element) {
|
|
return element.find('img');
|
|
},
|
|
},
|
|
});
|
|
});
|
|
|
|
}(window.jQuery));
|