| Current Path : /home/users/unlimited/www/facebook.codeskitter.site/admin-panel/assets/js/examples/ |
| Current File : /home/users/unlimited/www/facebook.codeskitter.site/admin-panel/assets/js/examples/lightbox.js |
'use strict';
$(document).ready(function () {
$('.image-popup').magnificPopup({
type: 'image',
zoom: {
enabled: true,
duration: 300,
easing: 'ease-in-out',
opener: function(openerElement) {
return openerElement.is('img') ? openerElement : openerElement.find('img');
}
}
});
var magnificPopupGalleryConfig = {
type: 'image',
gallery: {
enabled: true
},
zoom: {
enabled: true,
duration: 300,
easing: 'ease-in-out',
opener: function(openerElement) {
return openerElement.is('img') ? openerElement : openerElement.find('img');
}
}
};
$('.image-popup-gallery-item').magnificPopup(magnificPopupGalleryConfig);
$('.chat-app-wrapper .chat-app .chat-body .chat-body-messages .message-items .message-item:not(.outgoing-message).message-item-media ul a').magnificPopup(magnificPopupGalleryConfig);
$('.chat-app-wrapper .chat-app .chat-body .chat-body-messages .message-items .message-item.outgoing-message.message-item-media ul a').magnificPopup(magnificPopupGalleryConfig);
});