ancres programme

This commit is contained in:
2024-06-27 16:22:18 +02:00
parent 228c48680b
commit daa76ed341
4 changed files with 74 additions and 22 deletions
+21
View File
@@ -185,5 +185,26 @@ jQuery(document).ready(function($){
});
// /////////////////
//// ancre dans texte au click parragraphe correspondant arrive en dessous du header
// (function($, window) {
// var adjustAnchor = function() {
// var $anchor = $('.block-region-first'),
// fixedElementHeight = 500;
// if ($anchor.length > 0) {
// $('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
// }
// };
// $(window).on('hashchange', function() {
// adjustAnchor();
// });
// });
})(jQuery, window);