Difference between revisions of "Template:Toulouse/nav"

Line 9: Line 9:
 
     <!-- ###########NAVIGATION BAR############################################################## -->
 
     <!-- ###########NAVIGATION BAR############################################################## -->
 
      
 
      
<nav id="mainav" class="center">
+
<nav id="mainav" class="fl_right">
 
       <ul class="clear">
 
       <ul class="clear">
 
      
 
      
<!--<div id="logo" class="fl_left">
 
      <h1><a href="https://2015.igem.org/Team:Toulouse">ApiColi</a></h1>
 
    </div>-->
 
 
 
<li ><a href="https://2015.igem.org/Team:Toulouse" id="test" ><b>Home</b></a></li>
+
<li class="drop" id="home"><a href="https://2015.igem.org/Team:Toulouse"><b>Home</b></a></li>
+
+
 
 
 
<li><a class="drop" href="https://2015.igem.org/Team:Toulouse/Team/members/Presentation" id="team"><b>Team</b></a>
 
<li><a class="drop" href="https://2015.igem.org/Team:Toulouse/Team/members/Presentation" id="team"><b>Team</b></a>
Line 31: Line 26:
 
     <li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/context" id="project"><b>Project</b></a>
 
     <li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/context" id="project"><b>Project</b></a>
 
<ul>
 
<ul>
         <li><a href="https://2015.igem.org/Team:Toulouse/project/context">Context & Strategy</a></li>
+
         <li><a href="https://2015.igem.org/Team:Toulouse/project/context">Context</a></li>
 +
<li><a href="https://2015.igem.org/Team:Toulouse/project/strat">Strategy</a></li>
 
<li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/regulation">Regulation</a></li>
 
<li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/regulation">Regulation</a></li>
 
         <li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/attract">Attract</a></li>
 
         <li><a class="drop" href="https://2015.igem.org/Team:Toulouse/project/attract">Attract</a></li>
Line 83: Line 79:
 
// SET ACTIVE  
 
// SET ACTIVE  
  
var activeColor = '#D5DEB6';
+
var activeColor = 'color:rgb(51, 153, 51);';
var element = document.getElementById('test');
+
 
+
 
if (myurl.search("notebook") != -1){
 
if (myurl.search("notebook") != -1){
element = document.getElementById('notebook');}
+
document.getElementById('notebook').style = activeColor;}
 
else{
 
else{
 
if (myurl.search("humanp") != -1){
 
if (myurl.search("humanp") != -1){
element = document.getElementById('humanp');}
+
document.getElementById('humanp').style = activeColor;}
 
else{
 
else{
 
if (myurl.search("issues") != -1){
 
if (myurl.search("issues") != -1){
element =document.getElementById('issues');}
+
document.getElementById('issues').style = activeColor;}
 
else{
 
else{
 
if (myurl.search("achievements") != -1){
 
if (myurl.search("achievements") != -1){
element =document.getElementById('achiev');}
+
document.getElementById('achiev').style = activeColor;}
 
else{
 
else{
 
if (myurl.search("members") != -1){
 
if (myurl.search("members") != -1){
element = document.getElementById('team');}
+
document.getElementById('team').style = activeColor;}
 
else{
 
else{
 
if (myurl.search("project") != -1){
 
if (myurl.search("project") != -1){
element = document.getElementById('project');}
+
document.getElementById('project').style = activeColor;}
 +
else{
 +
document.getElementById('home').style = activeColor;
 +
}
 
}
 
}
 
}
 
}
Line 108: Line 105:
 
}
 
}
 
}
 
}
element.className="set";
 
//element.style.color = activeColor;
 
 
</script>
 
</script>
  

Revision as of 07:36, 10 August 2015