Compare commits

..

2 Commits

Author SHA1 Message Date
ouidade 521c454b4a diaporama home js et css 2024-07-25 10:31:01 +02:00
ouidade 2beab4fef2 diaporama home js et css 2024-07-24 20:40:47 +02:00
2 changed files with 3 additions and 55 deletions

File diff suppressed because one or more lines are too long

View File

@ -297,9 +297,9 @@
if (window.innerWidth <= 600) { if (window.innerWidth <= 600) {
return 1; // Show 1 slide on small screens return 1; // Show 1 slide on small screens
} else if (window.innerWidth <= 900) { } else if (window.innerWidth <= 900) {
return 2; // Show 2 slides on medium screens return 4; // Show 2 slides on medium screens
} else { } else {
return 2; // Show 3 slides on large screens return 4; // Show 3 slides on large screens
} }
} }
@ -455,37 +455,6 @@ observer.observe(document.body, config);
}); });
// $(document).ready(function(){
// $('.config_pages--type--diaporama-home .field_field_images').slick({
// slidesToShow: 3,
// // slidesToScroll: 1,
// dots: false,
// arrows: false,
// centerMode: true,
// adaptiveHeight: true,
// autoplay: true,
// autoplaySpeed: 1500,
// infinite: true,
// // centerPadding: '100px',
// responsive: [
// {
// breakpoint: 810,
// settings: {
// slidesToShow: 1,
// adaptiveHeight: false,
// arrows: true,
// draggable: true,
// centerMode: true,
// autoplay: true,
// autoplaySpeed: 2000,
// }
// }]
// });
// console.log('salut slick home');
// });
////////////////////// start diaporama home swiper ///////////////////////////////// ////////////////////// start diaporama home swiper /////////////////////////////////
$(document).ready(function () { $(document).ready(function () {
@ -501,28 +470,7 @@ observer.observe(document.body, config);
}, },
direction: 'horizontal', direction: 'horizontal',
loop: true, loop: true,
// zoom: {
// maxRatio: 5,
// },
// If we need pagination
// pagination: {
// el: '.swiper-pagination',
// },
// Navigation arrows
// navigation: {
// nextEl: '.swiper-button-next',
// prevEl: '.swiper-button-prev',
// },
// And if we need scrollbar
// scrollbar: {
// el: '.swiper-scrollbar',
// },
}) })
// swiper.autoplay();
}); });
////////////////////// end diaporama home swiper ///////////////////////////////// ////////////////////// end diaporama home swiper /////////////////////////////////