|
@@ -254,7 +254,7 @@
|
|
if ($(imgs[i]).attr('alt')) {
|
|
if ($(imgs[i]).attr('alt')) {
|
|
let alt = $(imgs[i]).attr('alt')
|
|
let alt = $(imgs[i]).attr('alt')
|
|
let src = $(imgs[i]).attr('src')
|
|
let src = $(imgs[i]).attr('src')
|
|
- $(imgs[i]).parent().html(`<a data-pswp-width="${alt.split(',')[0]}" data-pswp-height="${alt.split(',')[1]}" href="${src}"><img width="${alt.split(',')[0]}" height="${alt.split(',')[0]}" data-magnify="gallery" data-src="${src}" src="${src}" data-href="${src}" "/></a>`)
|
|
|
|
|
|
+ $(imgs[i]).parent().html(`<a data-pswp-width="${alt.split(',')[0]}" data-pswp-height="${alt.split(',')[1]}" href="${src}"><img width="${alt.split(',')[0]}" height="${alt.split(',')[1]}" data-magnify="gallery" data-src="${src}" src="${src}" data-href="${src}" "/></a>`)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var lightbox = new PhotoSwipeLightbox({
|
|
var lightbox = new PhotoSwipeLightbox({
|