Template:SUSTC-Shenzhen/themeJs

From 2014.igem.org

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