Difference between revisions of "Template:Toulouse/nav"

Line 10: Line 10:
 
     <nav id="mainav" class="fl_right">
 
     <nav id="mainav" class="fl_right">
 
       <ul class="clear">
 
       <ul class="clear">
         <li class="active"><a href="https://2015.igem.org/Team:Toulouse" style="color:rgb(118, 119, 48);"><b>Home</b></a></li>
+
         <li class="drop"><a href="https://2015.igem.org/Team:Toulouse" style="color:rgb(118, 119, 48);"><b>Home</b></a></li>
 
 
 
         <li><a class="drop" href="#"><b>Team</b></a>
 
         <li><a class="drop" href="#"><b>Team</b></a>
Line 53: Line 53:
 
<li><a href="https://2015.igem.org/Team:Toulouse/HP/awareness">Raising awareness</a></li>
 
<li><a href="https://2015.igem.org/Team:Toulouse/HP/awareness">Raising awareness</a></li>
 
             </ul></li>
 
             </ul></li>
         <li><a class="drop" href="https://2015.igem.org/Team:Toulouse/notebook"><b>NoteBook</b></a>
+
         <li><a class="drop" href="https://2015.igem.org/Team:Toulouse/notebook" id="notebook"><b>NoteBook</b></a>
 
<ul>
 
<ul>
 
<li><a href="https://2015.igem.org/Team:Toulouse/notebook/eln">Lab notes</a></li>
 
<li><a href="https://2015.igem.org/Team:Toulouse/notebook/eln">Lab notes</a></li>
Line 63: Line 63:
 
<li><a class="drop" href="#" id="newUrl"><img src= "https://static.igem.org/mediawiki/2015/b/b5/TLSE_france.jpeg"    /></a></li>
 
<li><a class="drop" href="#" id="newUrl"><img src= "https://static.igem.org/mediawiki/2015/b/b5/TLSE_france.jpeg"    /></a></li>
  
<script>
+
<script>
 +
//create link to french page
 
var myurl = window.location.href;
 
var myurl = window.location.href;
 
var frenchLink = myurl+'_fr';
 
var frenchLink = myurl+'_fr';
 
document.getElementById('newUrl').href = frenchLink;
 
document.getElementById('newUrl').href = frenchLink;
  
 +
//set active slot
 +
 +
if (myurl.search("test") != -1){
 +
document.getElementById('notebook').class = "active";
 +
}
 
</script>
 
</script>
  

Revision as of 07:25, 4 August 2015