Team:NTU-Taida/Templates/Footer

From 2012.igem.org

(Difference between revisions)
(fix navbar activate)
Line 19: Line 19:
     //for sidebar and scroll spy
     //for sidebar and scroll spy
-
     $('#toc').hide();
+
     $('.toc').hide();
     if ("</html>{{{ActiveNavbar|Home}}}<html>" == "Project"){
     if ("</html>{{{ActiveNavbar|Home}}}<html>" == "Project"){
     // project sidebar
     // project sidebar
Line 34: Line 34:
       });
       });
     }
     }
 +
    $('.toc').remove();
function abbrSubnavText(displayText){
function abbrSubnavText(displayText){
Line 57: Line 58:
       }
       }
     }while (state)
     }while (state)
-
      /*if (i == 0){
 
-
        return arrayAbbrText[0];
 
-
      }else{
 
-
        newDisplayText = ""
 
-
        for (var j=0; j <= i-1; j++){
 
-
          newDisplayText = newDisplayText + arrayAbbrText[j];
 
-
        }
 
-
      }*/
 
       return newDisplayText + ' …';
       return newDisplayText + ' …';
   }else{
   }else{
Line 86: Line 79:
}
}
});
});
-
/*$('body[data-spy="scroll"]').each(function () {
 
-
    var $spy = $(this).scrollspy('refresh');
 
-
    });*/
 
$('body[data-spy="scroll"]').scrollspy('refresh').on('activate',
$('body[data-spy="scroll"]').scrollspy('refresh').on('activate',
function(){
function(){

Revision as of 12:52, 25 September 2012