code added
Этот коммит содержится в:
+8
-3
@@ -443,7 +443,7 @@
|
||||
totalCount = ele.closest('.image-list').find('.image-item').length;
|
||||
eleIndex = ele.index() + 1;
|
||||
eleImgSrc = ele.find('img').attr('src');
|
||||
console.log(ele)
|
||||
// console.log(ele)
|
||||
let ele_con = ele.find('p').text();
|
||||
$('.image-slider-modal .image-view-list').html('<li class="p-md-5 p-3"><img src="'+eleImgSrc+'" alt="'+ele_con+'" class="w-75 mx-auto"/><p style="position:fixed;bottom:90px;left:14.4%;font-size:1rem;background: rgb(32, 38, 57);padding: 3px 5px;" class="fw-600 text-white slider_post_name">"'+ele_con+'"</p></li>');
|
||||
for (var i = 1; i <= totalCount; i++) {
|
||||
@@ -470,9 +470,9 @@
|
||||
$('.image-slider-modal .thumbnail-list li').removeClass('show');
|
||||
$('.image-slider-modal .thumbnail-list li:nth-child(' + (eleIndex - 1) + ')').addClass('show');
|
||||
eleImgSrc = $('.image-slider-modal .thumbnail-list li:nth-child(' + (eleIndex - 1) + ') img').attr('src');
|
||||
console.log(eleImgSrc);
|
||||
// console.log(eleImgSrc);
|
||||
let eleCon1 = $('.image-slider-modal .thumbnail-list li:nth-child(' + (eleIndex + 1) + ') p').text();
|
||||
console.log(eleCon1)
|
||||
//console.log(eleCon1)
|
||||
$('.image-slider-modal .image-view-list').html('<li class="p-md-5 p-3 text-center"><img src="'+eleImgSrc+'" alt="'+eleCon1+'" class="w-75 mx-auto"/><p style="position:fixed;bottom:90px;left:14.4%;font-size:1rem;background: rgb(32, 38, 57);padding: 3px 5px;" class="fw-600 text-white slider_post_name">"'+eleCon1+'"</p></li>');
|
||||
}
|
||||
}
|
||||
@@ -502,6 +502,11 @@
|
||||
$('.bg-overlay, .image-slider-modal').removeClass('show');
|
||||
}
|
||||
|
||||
// document.querySelector('body','onbeforeunload',(e)=>{
|
||||
// localStorage.removeItem('Isloggedin');
|
||||
// });
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Ссылка в новой задаче
Block a user