Template:Team:Groningen/Header
From 2010.igem.org
(Difference between revisions)
Joelkuiper (Talk | contribs) |
Joelkuiper (Talk | contribs) |
||
Line 35: | Line 35: | ||
var page = event.path.substring(1); | var page = event.path.substring(1); | ||
- | + | if(page == "") { page = 'home'; } | |
v = $('.lavaLampBottomStyle [rel=' + page + ']').parent(); | v = $('.lavaLampBottomStyle [rel=' + page + ']').parent(); | ||
Line 51: | Line 51: | ||
} else { | } else { | ||
$(".ajaxWrapper").html(""); | $(".ajaxWrapper").html(""); | ||
- | $(".ajaxWrapper").load("https://2010.igem.org/Team:Groningen/" + ucfirst(page) + "?action=render"); | + | $(".ajaxWrapper").load("https://2010.igem.org/Team:Groningen/" + ucfirst(page) + "?action=render", function(data) { |
+ | alert(data); | ||
margin = margin * (pages.length); | margin = margin * (pages.length); | ||
margin = margin * -1; | margin = margin * -1; | ||
$(".tabslider").css("margin-left", margin + "px"); | $(".tabslider").css("margin-left", margin + "px"); | ||
+ | }); | ||
} | } | ||
}); | }); |
Revision as of 12:52, 21 July 2010