Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
m |
|||
Line 23: | Line 23: | ||
$('ul.sub-navlist').append('<li><a href="'+ $(this).attr('href') +'-sec">'+$(this).children('span.toctext').text()+'</a></li>'); | $('ul.sub-navlist').append('<li><a href="'+ $(this).attr('href') +'-sec">'+$(this).children('span.toctext').text()+'</a></li>'); | ||
if(index==0){ | if(index==0){ | ||
- | $(' | + | $('h2[class!="firstHeading"]').has('span.mw-headline').eq(index).before('<section id="'+$(this).attr('href').slice(1)+'-sec">') |
}else{ | }else{ | ||
- | $(' | + | $('h2[class!="firstHeading"]').has('span.mw-headline').eq(index).before('</section><section id="'+$(this).attr('href').slice(1)+'-sec">') |
} | } | ||
}); | }); | ||
- | $(' | + | $('h2[class!="firstHeading"]').has('span.mw-headline').wrap('<div class="page-header"></div>'); |
- | $('#toc').remove(); | + | //$('#toc').remove(); |
$('body').attr({ | $('body').attr({ |
Revision as of 06:33, 1 September 2012