js anchor
This commit is contained in:
@@ -144,11 +144,11 @@ jQuery(function($) {
|
|||||||
var $anchor = $('.block-entity-fieldnodefield-textes'),
|
var $anchor = $('.block-entity-fieldnodefield-textes'),
|
||||||
fixedElementHeight = 350;
|
fixedElementHeight = 350;
|
||||||
if ($anchor.length > 0) {
|
if ($anchor.length > 0) {
|
||||||
$('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight}, 250);
|
$('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$(window).on('hashchange load', function() {
|
$(window).on('hashchange', function() {
|
||||||
adjustAnchor();
|
adjustAnchor();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user