Team:Tsinghua/header

From 2011.igem.org

(Difference between revisions)
Line 38: Line 38:
var dpad = 0;
var dpad = 0;
-
dpad = Math.round($(this).attr("offsetWidth")/10);
+
dpad = Math.round($(this).attr("offsetWidth")/19);
if(isNaN(dpad))
if(isNaN(dpad))
{
{
-
dpad = Math.round($(this)[0].offsetWidth / 10);
+
dpad = Math.round($(this)[0].offsetWidth / 19);
}
}
dpad = 25 - dpad;
dpad = 25 - dpad;

Revision as of 14:51, 17 August 2011