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(); |
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) | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
return newDisplayText + ' …'; | return newDisplayText + ' …'; | ||
}else{ | }else{ | ||
Line 86: | Line 79: | ||
} | } | ||
}); | }); | ||
- | |||
- | |||
- | |||
$('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