Template:Team:Calgary/Main
From 2014.igem.org
(Difference between revisions)
Line 39: | Line 39: | ||
if (target.length == 0) target = $('a[name="' + this.hash.substr(1) + '"]'); | if (target.length == 0) target = $('a[name="' + this.hash.substr(1) + '"]'); | ||
if (target.length == 0) target = $('html'); | if (target.length == 0) target = $('html'); | ||
- | $('html, body').animate({ scrollTop: target.offset().top- | + | $('html, body').animate({ scrollTop: target.offset().top-120 }, 1000); |
return false; | return false; | ||
}); | }); |
Revision as of 12:00, 10 October 2014