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){
-
          //console.log($(this));
 
           $('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: 0
+
           bottom: 50
         }
         }
       });
       });

Revision as of 14:40, 24 September 2012

© This is footer

© This is footer

© This is footer

© This is footer