Team:Berkeley/Notebooks
From 2013.igem.org
(Difference between revisions)
Line 33: | Line 33: | ||
</div> | </div> | ||
+ | <script> | ||
+ | var offset = 54; | ||
+ | $('#navbar li a').click(function(event) { | ||
+ | event.preventDefault(); | ||
+ | $($(this).attr('href'))[0].scrollIntoView(); | ||
+ | scrollBy(0, -offset); | ||
+ | }); | ||
+ | </script> | ||
</html> | </html> |
Revision as of 17:43, 28 October 2013