Skip to content
Snippets Groups Projects
Commit 96fb3296 authored by Rachel Gaubil's avatar Rachel Gaubil
Browse files

[fix] correct offset

parent 13704a10
No related branches found
No related tags found
No related merge requests found
$(function() { $(function() {
$(".m-2").click(function() { $(".m-2").click(function() {
var target = $(this).attr("href").substring(1); var target = $(this).attr("href").substring(1);
$(window).scrollTop($('h3[id="'+target+'"]').offset().top - 70); $(window).scrollTop($('h4[id="'+target+'"]').offset().top - 70);
return false; return false;
}); });
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment