css accueil

This commit is contained in:
2024-03-01 22:50:40 +01:00
parent 6f75dfed66
commit 8cac65c7cf
9 changed files with 111 additions and 78 deletions

View File

@@ -39,4 +39,23 @@
});
// /////////////////
//// ancre dans texte au click parragraphe correspondant arrive en dessous du header
(function($, window) {
var adjustAnchor = function() {
var $anchor = $('#block-quartiers-de-demain-views-block-statics-block-1'),
fixedElementHeight = 350;
if ($anchor.length > 0) {
$('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
}
};
$(window).on('hashchange', function() {
adjustAnchor();
});
})(jQuery, window);