Template:Team:Groningen/Header

From 2010.igem.org

(Difference between revisions)
Line 47: Line 47:
});
});
-
function updateMask(page) {
 
-
$("#contentWrapper").css('height', $(".textWrapper[rel='"+page+"']").css('height'));
 
-
}
 
$.address.change(function (event) {
$.address.change(function (event) {
Line 63: Line 60:
},   
},   
{duration: 300,  
{duration: 300,  
-
complete: updateMask(page);
+
complete: function() { $("#contentWrapper").css('height', $(".textWrapper[rel='"+page+"']").css('height')); }
-
}}); } else {
+
}); } else {
$(".ajaxWrapper").html("");
$(".ajaxWrapper").html("");
var url = wgServer + "/Team:Groningen/" + ucfirst(page) + "?action=render";
var url = wgServer + "/Team:Groningen/" + ucfirst(page) + "?action=render";
Line 71: Line 68:
margin = (margin * (pages.length)) * -1;
margin = (margin * (pages.length)) * -1;
$(".tabslider").css("margin-left", margin + "px");
$(".tabslider").css("margin-left", margin + "px");
-
updateMask('ajax');
+
$("#contentWrapper").css('height', $(".textWrapper[rel='ajax']").css('height'));
});
});
}
}

Revision as of 16:34, 25 October 2010