Template:Team:Groningen/Header
From 2010.igem.org
(Difference between revisions)
Joelkuiper (Talk | contribs) |
Joelkuiper (Talk | contribs) |
||
Line 10: | Line 10: | ||
} | } | ||
var pages = ["home", "project", "ethics", "modeling", "team", "contact"]; | var pages = ["home", "project", "ethics", "modeling", "team", "contact"]; | ||
- | |||
$(function () { | $(function () { | ||
Line 42: | Line 41: | ||
$(".back").show(); | $(".back").show(); | ||
$(".lavaLampBottomStyle").trigger("move", v); | $(".lavaLampBottomStyle").trigger("move", v); | ||
- | margin = margin * ($.inArray(page, pages)) | + | margin = (margin * ($.inArray(page, pages))) * -1; |
- | + | ||
$(".tabslider").stop().animate({ | $(".tabslider").stop().animate({ | ||
marginLeft: margin + "px" | marginLeft: margin + "px" | ||
Line 55: | Line 53: | ||
$.get(url, function(data) { | $.get(url, function(data) { | ||
$(".ajaxWrapper").html(data); | $(".ajaxWrapper").html(data); | ||
- | margin = margin * (pages.length) | + | margin = (margin * (pages.length)) * -1; |
- | + | ||
$(".tabslider").css("margin-left", margin + "px"); | $(".tabslider").css("margin-left", margin + "px"); | ||
- | + | }); | |
} | } | ||
}); | }); |
Revision as of 21:51, 22 July 2010