Template:Team:Groningen/sandboxHeader

From 2010.igem.org

(Difference between revisions)
 
Line 38: Line 38:
$(document).ready(function() {
$(document).ready(function() {
-
rewriteLinks($("#tab_nav"));
 
$("ul#topnav li").hover(function() {  
$("ul#topnav li").hover(function() {  
$(this).css({ 'background' : '#1376c9 url(http://casualconnect.net/iGEM/topnav_active.gif) repeat-x'});  
$(this).css({ 'background' : '#1376c9 url(http://casualconnect.net/iGEM/topnav_active.gif) repeat-x'});  
Line 72: Line 71:
         }
         }
     });
     });
-
function rewriteLinks(elem) {
 
-
$("a",elem).each(function() {
 
-
var txt = $(this).text();
 
-
var url = this.href;
 
-
 
-
if(this.hash)
 
-
this.href = this.hash;
 
-
else if(txt != "edit")
 
-
this.href = this.href.replace("https://2010.igem.org/Team:TU_Delft/", "#page=");
 
-
 
-
});
 
-
}
 
-
 
</script>
</script>
<div id="overallMask">
<div id="overallMask">
Line 98: Line 84:
<div id="tab_nav">
<div id="tab_nav">
     <ul id="topnav">
     <ul id="topnav">
-
         <li><a href="https://2010.igem.org/Team:Groningen/home">Home</a></li>
+
         <li><a href="https://2010.igem.org/Team:Groningen#/home">Home</a></li>
         <li>
         <li>
-
             <a href="https://2010.igem.org/Team:Groningen/project">Project</a>
+
             <a href="https://2010.igem.org/Team:Groningen#/project">Project</a>
             <span>
             <span>
                 <a href="#">Biofilm</a> |
                 <a href="#">Biofilm</a> |
Line 112: Line 98:
         <li>
         <li>
-
             <a href="https://2010.igem.org/Team:Groningen/human">Human</a>
+
             <a href="https://2010.igem.org/Team:Groningen#/human">Human</a>
             <span>
             <span>
                 <a href="#">Image of Science</a> |
                 <a href="#">Image of Science</a> |
Line 121: Line 107:
         </li>
         </li>
         <li>
         <li>
-
             <a href="https://2010.igem.org/Team:Groningen/modeling">Modelling</a>
+
             <a href="https://2010.igem.org/Team:Groningen#/modeling">Modelling</a>
             <span>
             <span>
                 <a href="#">Biofilm dynamics</a> |
                 <a href="#">Biofilm dynamics</a> |
Line 128: Line 114:
             </span>
             </span>
         </li>
         </li>
-
         <li><a href="https://2010.igem.org/Team:Groningen/team">Team</a></li>
+
         <li><a href="https://2010.igem.org/Team:Groningen#/team">Team</a></li>
-
         <li><a href="https://2010.igem.org/Team:Groningen/contact">Contact</a></li>
+
         <li><a href="https://2010.igem.org/Team:Groningen#/contact">Contact</a></li>
     </ul>
     </ul>
</div>
</div>

Latest revision as of 11:03, 20 August 2010