Team:NTU-Taida/Templates/Footer

From 2012.igem.org

(Difference between revisions)
Line 10: Line 10:
   //for scroll spy
   //for scroll spy
$('#toc>tbody>tr>td>ul>li.toclevel-1>a').each(function(index){$('ul.sub-navlist').append('<li><a href="'+ $(this).attr('href') +'">'+$(this).children('span.toctext').text()+'</a></li>')});
$('#toc>tbody>tr>td>ul>li.toclevel-1>a').each(function(index){$('ul.sub-navlist').append('<li><a href="'+ $(this).attr('href') +'">'+$(this).children('span.toctext').text()+'</a></li>')});
 +
$('.sub-navlist').scrollspy();
   $('#bodyContent').attr({
   $('#bodyContent').attr({
     'data-spy': 'scroll',
     'data-spy': 'scroll',

Revision as of 20:19, 27 August 2012