Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
Line 27: | Line 27: | ||
// all other sidebars | // all other sidebars | ||
$('#toc>tbody>tr>td>ul>li.toclevel-1>a').each(function(index){ | $('#toc>tbody>tr>td>ul>li.toclevel-1>a').each(function(index){ | ||
- | $('ul.sub-navlist').append('<li><a href="'+ $(this).attr('href') +'-sec">'+ | + | $('ul.sub-navlist').append('<li><a href="'+ $(this).attr('href') +'-sec">'+ $(this).children('span.toctext').text()+'</a></li>'); |
+ | // abbrSubnavText(); | ||
if(index==0){ | if(index==0){ | ||
$('h2[class!="firstHeading"]').has('span.mw-headline').eq(index).before('<section id="'+$(this).attr('href').slice(1)+'-sec">') | $('h2[class!="firstHeading"]').has('span.mw-headline').eq(index).before('<section id="'+$(this).attr('href').slice(1)+'-sec">') | ||
Line 72: | Line 73: | ||
'data-spy': 'scroll', | 'data-spy': 'scroll', | ||
'data-target': ".my-sidebar", | 'data-target': ".my-sidebar", | ||
- | 'data-offset': ' | + | 'data-offset': '60' |
}); | }); | ||
$('.my-sidebar-nav').affix({ | $('.my-sidebar-nav').affix({ |
Revision as of 12:06, 26 September 2012