|
@@ -428,9 +428,12 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
|
|
if($(".page-node-type-static").length > 0){
|
|
if($(".page-node-type-static").length > 0){
|
|
$(".field_titre").on("click", function(){
|
|
$(".field_titre").on("click", function(){
|
|
let elem = $(this).find('div:not([class])').html();
|
|
let elem = $(this).find('div:not([class])').html();
|
|
- console.log(elem);
|
|
|
|
$(".block-region-second").find(".field_titre").each(function(){
|
|
$(".block-region-second").find(".field_titre").each(function(){
|
|
let title = $(this).html();
|
|
let title = $(this).html();
|
|
|
|
+
|
|
|
|
+ if($(".field_groupe_documents").length > 0){
|
|
|
|
+ title = $($(title)[2]).html();
|
|
|
|
+ }
|
|
if(title == elem){
|
|
if(title == elem){
|
|
$('html,body').animate({
|
|
$('html,body').animate({
|
|
scrollTop: $(this).offset().top
|
|
scrollTop: $(this).offset().top
|