Team:NTNU Trondheim/Templates/Footer
From 2012.igem.org
(Difference between revisions)
Line 44: | Line 44: | ||
- | <!-- Adding classes --> | + | <!--<!-- Adding classes --> |
<script type="text/javascript"> | <script type="text/javascript"> | ||
if (document.URL == "https://2012.igem.org/Team:NTNU_Trondheim") { | if (document.URL == "https://2012.igem.org/Team:NTNU_Trondheim") { | ||
Line 50: | Line 50: | ||
} | } | ||
$('#toc').addClass('well well-small'); | $('#toc').addClass('well well-small'); | ||
- | </script> | + | </script>--> |
<!-- Lazy way out of reformatting all tables --> | <!-- Lazy way out of reformatting all tables --> | ||
Line 64: | Line 64: | ||
return false; | return false; | ||
}); | }); | ||
+ | </script> | ||
+ | |||
+ | <!-- Highlighting active page--> | ||
+ | <script type="text/javascript"> | ||
+ | $(function(){ | ||
+ | $page = jQuery.url.attr("file"); | ||
+ | if(!$page) { | ||
+ | $page = 'index.html'; | ||
+ | } | ||
+ | $('#navigation li a').each(function(){ | ||
+ | var $href = $(this).attr('href'); | ||
+ | if ( ($href == $page) || ($href == '') ) { | ||
+ | $(this).addClass('active'); | ||
+ | } else { | ||
+ | $(this).removeClass('active'); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
</script> | </script> | ||
Revision as of 20:26, 25 September 2012