User:Jannetta/Test

From 2010.igem.org

(Difference between revisions)
Line 226: Line 226:
<body>
<body>
-
<script type="text/javascript">
 
-
 
-
function ucfirst(str) {
 
-
    var firstLetter = str.substr(0, 1);
 
-
    return firstLetter.toUpperCase() + str.substr(1);
 
-
}
 
-
var pages = ["home", "project", "ethics", "modeling", "team", "contact"];
 
-
 
-
$(function () {
 
-
 
-
    $(".current").removeClass("current");
 
-
    $('.lavaLampBottomStyle [rel=' + $.address.value().substr(1) + ']').parent().addClass("current");
 
-
 
-
    $("#tabs").lavaLamp({
 
-
        fx: "backout",
 
-
        speed: 700,
 
-
        click: function (event, obj) {
 
-
            $.address.value($(obj).find('a').attr('rel'));
 
-
            if ($("#home").length !== 0) {
 
-
                return false;
 
-
            } else {
 
-
                return true;
 
-
            }
 
-
        }
 
-
    });
 
-
});
 
-
 
-
    $.address.change(function (event) {
 
-
        var margin = $(".slide_content").width();
 
-
 
-
        var page = event.path.substring(1);
 
-
        if(page == "") { page = 'home'; }
 
-
 
-
        v = $('.lavaLampBottomStyle [rel=' + page + ']').parent();
 
-
 
-
        if ($.inArray(page, pages) !== -1) {
 
-
            $(".back").show();
 
-
            $(".lavaLampBottomStyle").trigger("move", v);
 
-
            margin = (margin * ($.inArray(page, pages))) * -1;
 
-
            $(".tabslider").stop().animate({
 
-
                marginLeft: margin + "px"
 
-
            },  300
 
-
            );
 
-
 
-
        } else {
 
-
            $(".ajaxWrapper").html("");
 
-
            $(".back").hide();
 
-
            var url = wgServer + "/Team:Groningen/" + ucfirst(page) + "?action=render";
 
-
            $.get(url, function(data) {
 
-
            $(".ajaxWrapper").html(data);
 
-
            margin = (margin * (pages.length)) * -1;
 
-
            $(".tabslider").css("margin-left", margin + "px");
 
-
            });
 
-
        }
 
-
    });
 
-
 
-
 
-
 
-
</script>
 
-
 
<!--[if IE]>
<!--[if IE]>
Line 311: Line 251:
</ul>
</ul>
     </li>
     </li>
-
     <li id="mainProject"><a style="color:black;" href="https://2010.igem.org/Team:Newcastle/Project">Project</a>
+
     <li id="mainProblem"><a style="color:black;" href="https://2010.igem.org/Team:Newcastle/Problem">Project</a>
<ul>
<ul>
-
           <li><a href="https://2010.igem.org/Team:Newcastle/Project">Abstract</a></li>
+
           <li><a href="https://2010.igem.org/Team:Newcastle/problem">Problem</a></li>
           <!--<li><a href="https://2010.igem.org/Team:Newcastle/Project_Highlights">Highlights</a></li>-->
           <!--<li><a href="https://2010.igem.org/Team:Newcastle/Project_Highlights">Highlights</a></li>-->
  <li><a href="https://2010.igem.org/Team:Newcastle/Project_Introduction">Introduction</a></li>
  <li><a href="https://2010.igem.org/Team:Newcastle/Project_Introduction">Introduction</a></li>
Line 325: Line 265:
</ul>
</ul>
     </li>
     </li>
-
   <li id="mainParts"><a style="color:black;" href="https://2010.igem.org/Team:Newcastle/Parts">Parts</a>
+
   <li id="mainSolution"><a style="color:black;" href="https://2010.igem.org/Team:Newcastle/Solution">Solution</a>
       <ul>  
       <ul>  
           <li><a href="https://2010.igem.org/Team:Newcastle/Parts">Parts</a></li>
           <li><a href="https://2010.igem.org/Team:Newcastle/Parts">Parts</a></li>
Line 331: Line 271:
       </ul>
       </ul>
   </li>
   </li>
-
   <li id="mainModeling"><a style="color:black;" href="https://2010.igem.org/Team:Newcastle/HEARTBEAT">HEARTBEAT</a>
+
   <li id="mainModeling"><a style="color:black;" href="https://2010.igem.org/Team:Newcastle/modelling">Modelling</a>
<ul>
<ul>
  <li><a href="https://2010.igem.org/Team:Newcastle/HEARTBEAT">What is HEARTBEAT?</a></li>
  <li><a href="https://2010.igem.org/Team:Newcastle/HEARTBEAT">What is HEARTBEAT?</a></li>
Line 340: Line 280:
</ul>
</ul>
     </li>
     </li>
-
   <li id="mainNotebook"><a style="color:black;" href="https://2010.igem.org/Team:Newcastle/Notebook">Notebook</a>
+
   <li id="mainNotebook"><a style="color:black;" href="https://2010.igem.org/Team:Newcastle/Notebook">Lab Book</a>
<ul>
<ul>
  <li><a href="https://2010.igem.org/Team:Newcastle/Notebook_natural_promoters_overview">Natural Promoters</a></li>
  <li><a href="https://2010.igem.org/Team:Newcastle/Notebook_natural_promoters_overview">Natural Promoters</a></li>
Line 354: Line 294:
</ul>
</ul>
     </li>
     </li>
-
   <li id="mainEucaryopedia"><a class="aEucaryopedia" href="https://2010.igem.org/Team:Newcastle/Eukaryopedia">Eukaryopedia</a></li>
+
   <li id="mainMeetings"><a class="aEucaryopedia" href="https://2010.igem.org/Team:Newcastle/meetings">Meetings</a></li>
-
   <li id="mainSponsors"><a class="aSponsors" href="https://2010.igem.org/Team:Newcastle/Sponsors">Sponsors</a></li>
+
  <li id="mainTimeLine"><a class="aSponsors" href="https://2010.igem.org/Team:Newcastle/time_line">Timeline</a></li>
 +
  <li id="mainOther"><a class="aSponsors" href="https://2010.igem.org/Team:Newcastle/other">Other</a></li>
 +
   <li id="mainSponsors"><a class="aSponsors" href="https://2010.igem.org/Team:Newcastle/sponsors">Sponsors</a></li>
</ul>
</ul>

Revision as of 00:22, 27 July 2010