Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
m |
|||
Line 22: | Line 22: | ||
$('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){ | ||
- | $('h1[class!="firstHeading"]').eq(index).before('<section id="'+$(this).attr('href').slice(1)+'-sec">') | + | $('h1[class!="firstHeading"]').has('span.mw-headline').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)+'-sec">') | + | $('h1[class!="firstHeading"]').has('span.mw-headline').eq(index).before('</section><section id="'+$(this).attr('href').slice(1)+'-sec">') |
} | } | ||
}); | }); | ||
- | $('h1[class!="firstHeading"]').wrap('<div class="page-header"></div>'); | + | $('h1[class!="firstHeading"]').has('span.mw-headline').wrap('<div class="page-header"></div>'); |
$('#toc').remove(); | $('#toc').remove(); |
Revision as of 21:30, 27 August 2012