page about

This commit is contained in:
armansansd
2021-08-27 23:19:20 +02:00
parent 56254d7711
commit d4ab459ac2
6 changed files with 140 additions and 8 deletions

View File

@@ -201,6 +201,24 @@ if($(".page-node-type-programme").length > 0){
});
}
//page about navigation :
if($(".page-node-type-static").length > 0){
$(".field_titre").on("click", function(){
let elem = $(this).find('div:not([class])').html();
console.log(elem);
$(".block-region-second").find(".field_titre").each(function(){
let title = $(this).html();
if(title == elem){
$('html,body').animate({
scrollTop: $(this).offset().top
}, 'slow');
return false;
}
});
});
}
});