Difference between revisions of "Template:ShanghaiTech/Header"

m
m
Line 142: Line 142:
 
     console.log($("#navbar-home"));
 
     console.log($("#navbar-home"));
 
     $("#navbar-home").parent().addClass('active');
 
     $("#navbar-home").parent().addClass('active');
 +
 +
  Toc.init({
 +
  $nav: $('#mytoc'),
 +
  $scope: $('bodyContent')
 +
});
 +
  $('body').scrollspy({
 +
    target: navSelector
 +
  });
 +
 
   });
 
   });
 
   </script>
 
   </script>

Revision as of 06:17, 17 October 2018

ShanghaiTech iGEM