page actualitéS v0

This commit is contained in:
armansansd
2021-07-03 23:00:32 +02:00
parent e1e19caead
commit 42411dd490
8 changed files with 271 additions and 63 deletions

View File

@@ -2,19 +2,21 @@ import 'slick-carousel';
$(function(){
console.log("$ ready !!");
$('.last-news').slick({
slidesToShow: 1,
slidesToScroll: 1,
centerMode: true,
centerPadding: '60px',
});
$('.last-ressources').slick({
slidesToShow: 3,
slidesToScroll: 1,
centerMode: true,
centerPadding: '60px',
infinite: false,
});
if($(".path-frontpage").length > 0){
$('.last-news').slick({
slidesToShow: 1,
slidesToScroll: 1,
centerMode: true,
centerPadding: '60px',
});
$('.last-ressources').slick({
slidesToShow: 3,
slidesToScroll: 1,
centerMode: true,
centerPadding: '60px',
infinite: false,
});
}
$('#centre_de_ressources-block_2 .item-list ul').slick({
slidesToShow: 3,
slidesToScroll: 1,
@@ -22,6 +24,35 @@ $(function(){
centerPadding: '60px',
infinite: false,
});
if($(".path-actus").length > 0){
let elem = $("#actus_blocks-block_2").find("footer").detach();
$("#actus_blocks-block_2").append(elem);
$('#actus_blocks-block_2>div>div').slick({
slidesToShow: 3,
slidesToScroll: 1,
centerMode: false,
centerPadding: '60px',
infinite: false,
});
elem = $("#actus_blocks-block_1").find("footer").detach();
$("#actus_blocks-block_1").append(elem);
$('#actus_blocks-block_1>div>div').slick({
slidesToShow: 3,
slidesToScroll: 1,
centerMode: false,
centerPadding: '60px',
infinite: false,
});
$('#home_blocks-block_3>div>div').slick({
slidesToShow: 3,
slidesToScroll: 1,
centerMode: false,
centerPadding: '60px',
infinite: false,
});
}
// if($('.path-centre-de-ressources').length > 0){