"틀:이미지스와이퍼"의 두 판 사이의 차이
광주문화예술인문스토리플랫폼
| 70번째 줄: | 70번째 줄: | ||
}); | }); | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}); | }); | ||
| + | // 이미지 로딩 실패 시 슬라이드 제거 후 Swiper 업데이트 | ||
| + | document.querySelectorAll('.image-swiper-container .swiper-image').forEach(function(img) { | ||
| + | img.addEventListener('error', function() { | ||
| + | this.closest('.swiper-slide').remove(); | ||
| + | swiper.update(); | ||
| + | }); | ||
| + | }); | ||
</script> | </script> | ||
}} | }} | ||
</includeonly> | </includeonly> | ||