ajustement design

This commit is contained in:
2024-03-05 15:46:58 +01:00
parent 5dc1fc2e6b
commit 01533549d4
8 changed files with 155 additions and 134 deletions

View File

@@ -43,20 +43,20 @@
// //// 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);
// }
// };
(function($, window) {
var adjustAnchor = function() {
var $anchor = $('.sidebar_first_container'),
fixedElementHeight = 350;
if ($anchor.length > 0) {
$('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
}
};
// $(window).on('hashchange', function() {
// adjustAnchor();
// });
$(window).on('hashchange', function() {
adjustAnchor();
});
// })(jQuery, window);
})(jQuery, window);