modification - mail 23/08

This commit is contained in:
armansansd
2021-08-24 16:03:41 +02:00
parent b1f6e1637d
commit e6595d6869
8 changed files with 234 additions and 67 deletions

View File

@@ -14,7 +14,7 @@ $(function(){
slidesToScroll: 1,
centerMode: true,
centerPadding: '60px',
infinite: false,
infinite: true,
});
}
@@ -34,6 +34,7 @@ $(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);
@@ -176,6 +177,7 @@ $(function(){
//// PAGE POPSU ////
// projets-block_2
if($(".page-node-type-programme").length > 0){
$(".body").append('<footer><a class="more">Lire la suite</a></footer>');
let elem = "<div class='main_logo'></div>"
$('#projets-block_2').prepend(elem);
@@ -184,9 +186,20 @@ if($(".page-node-type-programme").length > 0){
$(".field_titre").on("click", function(){
let e = $(this).parent().find(".field_texte");
$(e).toggleClass("crop");
$(this).toggleClass("rotate");
});
$(".more").on("click", function(){
$(".body").toggleClass("body_open");
if($('.body_open').length > 0){
$(this).empty().html("Fermer")
}else{
$(this).empty().html("Lire la suite")
}
});
}
});