Difference between revisions of "Team:TU Darmstadt/Templates/SideBarMenu"

Line 192: Line 192:
  
 
function setNavigation() {
 
function setNavigation() {
    //var path = 'https://2015.igem.org'+window.location.pathname;
 
 
     var path = window.location.href;
 
     var path = window.location.href;
  
Line 206: Line 205:
 
     $('#menuContainer a').each(function () {
 
     $('#menuContainer a').each(function () {
 
         var href = $(this).attr('href');
 
         var href = $(this).attr('href');
         if (href === path.substring(0, href.length)) {
+
         if (href === path.substring(0, href.length) &&
 +
            href !== path) {
 
           $(this).addClass('active');
 
           $(this).addClass('active');
 
         }
 
         }

Revision as of 20:25, 17 September 2015