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")/10);
-
if(dpad < 1)
+
if(dpad == NaN)
{
{
     dpad = Math.round($(this)[0].offsetWidth / 10);
     dpad = Math.round($(this)[0].offsetWidth / 10);

Revision as of 14:47, 17 August 2011