|
@@ -230,10 +230,12 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
|
|
});
|
|
});
|
|
if(hb < ttp + 30){
|
|
if(hb < ttp + 30){
|
|
$(".block-region-second .body").append('<footer><a class="more">Lire la suite</a></footer>');
|
|
$(".block-region-second .body").append('<footer><a class="more">Lire la suite</a></footer>');
|
|
|
|
+ }else{
|
|
|
|
+ $(".block-region-second .body").addClass("body_open");
|
|
}
|
|
}
|
|
//reteste on windows resize
|
|
//reteste on windows resize
|
|
window.addEventListener('resize', function(){
|
|
window.addEventListener('resize', function(){
|
|
-
|
|
|
|
|
|
+ $(".block-region-second .body").removeClass("body_open");
|
|
let hb = $(".block-region-second .body").height();
|
|
let hb = $(".block-region-second .body").height();
|
|
let ttp = 0;
|
|
let ttp = 0;
|
|
$(".block-region-second .body p").each(function(){
|
|
$(".block-region-second .body p").each(function(){
|
|
@@ -248,7 +250,9 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
|
|
}else{
|
|
}else{
|
|
if($(".block-region-second .body footer").length > 0){
|
|
if($(".block-region-second .body footer").length > 0){
|
|
$(".block-region-second .body footer").remove();
|
|
$(".block-region-second .body footer").remove();
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ $(".block-region-second .body").addClass("body_open");
|
|
}
|
|
}
|
|
|
|
|
|
});
|
|
});
|
|
@@ -262,8 +266,18 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
|
|
$(this).toggleClass("rotate");
|
|
$(this).toggleClass("rotate");
|
|
|
|
|
|
});
|
|
});
|
|
|
|
+ $(".field_equipes").parent().find("h2").on("click", function(){
|
|
|
|
+
|
|
|
|
+ $(this).toggleClass("rotate");
|
|
|
|
+ if($(".field_equipes").is(":visible")){
|
|
|
|
+ $(".field_equipes").fadeOut("slow");
|
|
|
|
+ }else{
|
|
|
|
+ $(".field_equipes").fadeIn("slow");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
|
|
- $(".more").on("click", function(){
|
|
|
|
|
|
+ $(".block-region-second .body").on("click", ".more", function(){
|
|
|
|
|
|
|
|
|
|
$(".body").toggleClass("body_open");
|
|
$(".body").toggleClass("body_open");
|