Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
(3 intermediate revisions not shown) | |||
Line 6: | Line 6: | ||
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | ||
<script type="text/javascript" src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script> | <script type="text/javascript" src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script> | ||
+ | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
Line 21: | Line 22: | ||
$('.toc').hide(); | $('.toc').hide(); | ||
var activeItem = "</html>{{{ActiveNavbar|Home}}}<html>"; | var activeItem = "</html>{{{ActiveNavbar|Home}}}<html>"; | ||
- | if (activeItem.split(',')[0] == "Project"){ | + | /*if (activeItem.split(',')[0] == "Project"){ |
// project sidebar | // project sidebar | ||
console.log('Enter Project sideabr mode'); | console.log('Enter Project sideabr mode'); | ||
- | }else{ | + | }else{*/ |
// 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){ | ||
Line 35: | Line 36: | ||
} | } | ||
}); | }); | ||
- | + | // } | |
$('.toc').remove(); | $('.toc').remove(); | ||
Latest revision as of 17:50, 25 October 2012