Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
m |
m |
||
Line 8: | Line 8: | ||
interval: 3000 | interval: 3000 | ||
}); | }); | ||
- | //for scroll spy | + | |
+ | //for scroll spy | ||
$('#toc').hide(); | $('#toc').hide(); | ||
$('#toc>tbody>tr>td>ul>li.toclevel-1>a').each(function(index){ | $('#toc>tbody>tr>td>ul>li.toclevel-1>a').each(function(index){ | ||
Line 15: | Line 16: | ||
$('h1[class!="firstHeading"]').eq(index).before('<section id="'+$(this).attr('href').slice(1)+'-sec">') | $('h1[class!="firstHeading"]').eq(index).before('<section id="'+$(this).attr('href').slice(1)+'-sec">') | ||
}else{ | }else{ | ||
- | $('h1[class!="firstHeading"]').eq(index).before('</section><section id="'+$(this).attr('href').slice(1)+' | + | $('h1[class!="firstHeading"]').eq(index).before('</section><section id="'+$(this).attr('href').slice(1)+'-sec">') |
} | } | ||
- | |||
- | |||
}); | }); | ||
+ | $('#toc').remove(); | ||
$('body').attr({ | $('body').attr({ |
Revision as of 20:58, 27 August 2012