This commit is contained in:
armansansd
2022-09-15 16:32:42 +02:00
parent 674dbf8bb7
commit 3843e9fa17
5 changed files with 54 additions and 3 deletions

View File

@@ -428,9 +428,12 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
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($(".field_groupe_documents").length > 0){
title = $($(title)[2]).html();
}
if(title == elem){
$('html,body').animate({
scrollTop: $(this).offset().top