Template:Team:Valencia Biocampus/Templates/Header

From 2014.igem.org

(Difference between revisions)
Line 57: Line 57:
     <script type="text/javascrip">   
     <script type="text/javascrip">   
-
         if(typeof activeSection === "undefined" )
+
         if(typeof activeSection !== "undefined" ){   
-
             var activeSection = "project";
+
             $("#header-menu li.active").removeClass("active");
-
        $("#header-menu li.active").removeClass("active");
+
            $("#menu_a_"+activeSection).addClass("active");
-
        $("#menu_a_"+activeSection).addClass("active");
+
        }
-
 
+
     </script>
     </script>
</html>
</html>

Revision as of 19:45, 25 August 2014