réglage sidebar css

This commit is contained in:
armansansd
2022-01-18 13:40:40 +01:00
parent 0ed35bbf6a
commit 0a02c44a75
5 changed files with 26 additions and 5 deletions

View File

@@ -236,9 +236,21 @@ $(function(){
});
//// PAGE POPSU ////
//menu ouvertur sur page event et actu
if($(".page-node-type-evenement").length > 0 || $(".page-node-type-actualite").length > 0){
if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").length > 0 || $(".page-node-type-theme").length > 0 || $(".page-node-type-evenement").length > 0){
$('.views-element-container header').click(function(){
$(this).parent().find(".view-grouping").fadeToggle();
$(this).parent().find(".views-row").fadeToggle();
});
$('.view-grouping-header').click(function(){
$(this).parent().find(".view-grouping-content").slideToggle();
});
}
if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").length > 0 || $(".page-node-type-theme").length > 0 ){
$(".field_ressources_liees article").each(function(){
let title = $(this).find("h2").clone();
@@ -254,7 +266,7 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
$('.view-grouping-header').click(function(){
$(this).parent().find(".view-grouping-content").slideToggle();
})
});
//test hauteur
let hb = $(".block-region-second .body").height();