Template:Team:Groningen/Header
From 2010.igem.org
(Difference between revisions)
Joelkuiper (Talk | contribs) |
Joelkuiper (Talk | contribs) (Undo revision 145256 by Joelkuiper (Talk)) |
||
Line 55: | Line 55: | ||
var page = event.path.substring(1); | var page = event.path.substring(1); | ||
if(page == "") { page = 'home'; } | if(page == "") { page = 'home'; } | ||
+ | |||
+ | if ($.inArray(page, pages) !== -1) { | ||
+ | margin = (margin * ($.inArray(page, pages))) * -1; | ||
+ | $(".tabslider").stop().animate({ | ||
+ | marginLeft: margin + "px" | ||
+ | }, 300 | ||
+ | ); | ||
+ | |||
+ | } else { | ||
$(".ajaxWrapper").html(""); | $(".ajaxWrapper").html(""); | ||
var url = wgServer + "/Team:Groningen/" + ucfirst(page) + "?action=render"; | var url = wgServer + "/Team:Groningen/" + ucfirst(page) + "?action=render"; | ||
Line 62: | Line 71: | ||
$(".tabslider").css("margin-left", margin + "px"); | $(".tabslider").css("margin-left", margin + "px"); | ||
}); | }); | ||
- | + | } | |
}); | }); | ||
</script> | </script> |
Revision as of 14:56, 25 October 2010
We believe in a better world
through synthetic biology