Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
(add project specific) |
(change scrollspy bottom offset) |
||
Line 30: | Line 30: | ||
// 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">'+$(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){ | ||
Line 41: | Line 40: | ||
$('h2[class!="firstHeading"]').has('span.mw-headline').wrap('<div class="page-header"></div>'); | $('h2[class!="firstHeading"]').has('span.mw-headline').wrap('<div class="page-header"></div>'); | ||
- | $('#toc').remove(); | + | //$('#toc').remove(); |
$('body').attr({ | $('body').attr({ | ||
Line 51: | Line 50: | ||
offset: { | offset: { | ||
top: function () { return $(window).width() <= 980 ? 60 : 0}, | top: function () { return $(window).width() <= 980 ? 60 : 0}, | ||
- | bottom: | + | bottom: 50 |
} | } | ||
}); | }); |
Revision as of 14:40, 24 September 2012