|
|
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]);
| + | |
− | }
| + | |
− | });
| + | |
| | | |
| | | |