page about
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user