Template:SUSTC-Shenzhen/themeJs

From 2014.igem.org

(Difference between revisions)
 
(4 intermediate revisions not shown)
Line 71: Line 71:
   $(document.body).scrollspy({
   $(document.body).scrollspy({
       target: '.bs-docs-sidebar',
       target: '.bs-docs-sidebar',
-
       offset: 70
+
       offset: 71
     });
     });
   setTimeout(function () {
   setTimeout(function () {
Line 81: Line 81:
             var offsetTop      = $sideBar.offset().top
             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