Template:SUSTC-Shenzhen/themeJs

From 2014.igem.org

(Difference between revisions)
Line 26: Line 26:
      
      
       $("nav a").each(function(ind,val){
       $("nav a").each(function(ind,val){
-
         if(val.href===window.location.href) val.href="#";
+
         if(val.href===window.location.href){
 +
          val.href="#";
 +
          val.parent().addClass("active");
       });
       });
      
      

Revision as of 06:49, 22 August 2014