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