Difference between revisions of "Team:Bielefeld-CeBiTec/Basic Navbar"

 
(8 intermediate revisions by the same user not shown)
Line 32: Line 32:
  
  
$(window).on('load', function() {
+
 
$story = ["https://2018.igem.org/Team:Bielefeld-CeBiTec",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Motivation"
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Description",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Ferritin",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Accumulation",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Toxicity_Theory",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/siRNA",
+
https://2018.igem.org/Team:Bielefeld-CeBiTec/Design,
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Model",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Parts#!",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Basic_Part",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Composite_Part",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Improve",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Part_Collection",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Results",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Ferritin_Results",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Accumulation_Results",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Toxicity_Results",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/siRNA_Results",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Demonstrate",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/InterLab",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Human_Practices",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Public_Engagement",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Hardware", 
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Software",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Measurement",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Notebook",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Experiments",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Team",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Bielefeld",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/CeBiTec",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Bielefeld-University",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Collaborations",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Attributions",
+
"https://2018.igem.org/Team:Bielefeld-CeBiTec/Partners"];
+
+
$url = window.location.href;
+
if ($url.indexOf("#") > -1) {
+
$url = $url.substring(0, $url.indexOf("#"));
+
}
+
$index = 0;
+
for (i = 0; i < $story.length; i++) {
+
if ($story[i] == $url) {
+
$index = i;
+
i = $story.length;
+
}
+
}
+
if ($index == 0) {
+
$("#page-switch-prev-li").hide();
+
$("#footer-left").html("<p></p>");
+
} else {
+
$("#page-switch-prev").attr("href", $story[$index - 1]);
+
}
+
if ($index == $story.length - 1) {
+
$("#page-switch-next-li").hide();
+
} else {
+
$("#page-switch-next").attr("href", $story[$index + 1]);
+
}
+
});
+
  
  
Line 118: Line 59:
 
             <li>
 
             <li>
 
               <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Description">Overview</a>
 
               <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Description">Overview</a>
             </li><li>
+
             </li>
               <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Design">Design</a>
+
            <li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Toxicity_Theory">Toxicity</a>
 +
            </li>
 +
<li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Accumulation">Accumulation</a>
 +
            </li>
 +
<li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/siRNA">Silencing</a>
 +
            </li>
 +
 
 +
           
 +
<li>
 +
               <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Ferritin">Nanoparticles</a>
 
             </li>
 
             </li>
 
           </ul>
 
           </ul>
Line 127: Line 80:
 
           <a href="#!">Results</a>
 
           <a href="#!">Results</a>
 
           <ul class="nav-dropdown">
 
           <ul class="nav-dropdown">
            <li>
+
<li>
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Parts">Parts</a>
+
            </li><li>
+
 
               <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Results">Results Overview</a>
 
               <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Results">Results Overview</a>
             </li><li>
+
             </li>
 +
<li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Toxicity_Results">Toxicity Results</a>
 +
            </li>
 +
<li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Accumulation_Results">Accumulation Results</a>
 +
            </li>
 +
<li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/siRNA_Results">Silencing Results</a>
 +
            </li>
 +
<li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Ferritin_Results">Nanoparticles Results</a>
 +
            </li>
 +
<li>
 
               <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/InterLab">InterLab</a>
 
               <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/InterLab">InterLab</a>
 
             </li><li>
 
             </li><li>
Line 137: Line 101:
 
             </li>
 
             </li>
 
           </ul>
 
           </ul>
         </li><li>
+
         </li>
 +
 
 +
<li>
 +
          <a href="#!">Parts</a>
 +
          <ul class="nav-dropdown">
 +
            <li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Parts">Parts Overview</a>
 +
            </li><li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Basic_Part">Basic Parts</a>
 +
            </li>
 +
<li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Composite_Part">Composite Parts</a>
 +
            </li>
 +
<li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Part_Collection">Parts Collection</a>
 +
            </li>
 +
<li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Improve">Parts Improvement</a>
 +
            </li>
 +
          </ul>
 +
        </li>
 +
 
 +
<li>
 
           <a href="#!">Human Practices</a>
 
           <a href="#!">Human Practices</a>
 
           <ul class="nav-dropdown">
 
           <ul class="nav-dropdown">
Line 155: Line 141:
 
             </li><li>
 
             </li><li>
 
               <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Measurement">Measurement</a>
 
               <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Measurement">Measurement</a>
 +
            </li>
 +
<li>
 +
              <a href="https://2018.igem.org/Team:Bielefeld-CeBiTec/Design">Product Design</a>
 
             </li>
 
             </li>
 
           </ul>
 
           </ul>

Latest revision as of 03:20, 18 October 2018