toutes les images ne sont pas resize 3
This commit is contained in:
parent
44301d5fd4
commit
9dc1b940dc
|
@ -70,6 +70,7 @@ function initSwiper() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function resizeVerticalImages() {
|
function resizeVerticalImages() {
|
||||||
|
setTimeout(() => {
|
||||||
let verticalImages = document.querySelectorAll('.swiper-slide > img');
|
let verticalImages = document.querySelectorAll('.swiper-slide > img');
|
||||||
for (let img of verticalImages) {
|
for (let img of verticalImages) {
|
||||||
console.log(img.clientHeight > img.clientWidth);
|
console.log(img.clientHeight > img.clientWidth);
|
||||||
|
@ -78,4 +79,5 @@ function resizeVerticalImages() {
|
||||||
img.style.width = "50%";
|
img.style.width = "50%";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}, 200);
|
||||||
}
|
}
|
Loading…
Reference in New Issue