2019-12-26 05:41:50 +00:00
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
if (typeof $.fn.lightGallery === 'function') {
|
2018-11-11 22:41:07 +00:00
|
|
|
$('.article').lightGallery({ selector: '.gallery-item' });
|
|
|
|
}
|
2019-12-26 05:41:50 +00:00
|
|
|
if (typeof $.fn.justifiedGallery === 'function') {
|
2019-08-06 03:54:24 +00:00
|
|
|
if ($('.justified-gallery > p > .gallery-item').length) {
|
|
|
|
$('.justified-gallery > p > .gallery-item').unwrap();
|
|
|
|
}
|
2018-11-11 22:41:07 +00:00
|
|
|
$('.justified-gallery').justifiedGallery();
|
|
|
|
}
|
2019-12-26 05:41:50 +00:00
|
|
|
});
|