Template:SUSTC-Shenzhen/themeJs

From 2014.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
Line 79: Line 79:
         offset: {
         offset: {
           top: function () {
           top: function () {
-
             var offsetTop      = $sideBar.offset().top+70
+
             var offsetTop      = $sideBar.offset().top
             var sideBarMargin  = parseInt($sideBar.children(0).css('margin-top'), 10)
             var sideBarMargin  = parseInt($sideBar.children(0).css('margin-top'), 10)
-
             var navOuterHeight = $('.bs-docs-nav').height()
+
             var navOuterHeight = $('#index-nav-main').height()
             return (this.top = offsetTop - navOuterHeight - sideBarMargin)
             return (this.top = offsetTop - navOuterHeight - sideBarMargin)

Latest revision as of 09:49, 17 October 2014