Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 41: Line 41:
var divs=new Array(days.length);
var divs=new Array(days.length);
var hs=new Array(days.length);
var hs=new Array(days.length);
-
for (var i=0;i<merge.length;i++)
+
 
 +
for (var i=0;i<days.length;i++)
{
{
divs[i]=document.createElement("div");
divs[i]=document.createElement("div");
Line 51: Line 52:
document.getElementById("merg").appendChild(divs[i]);
document.getElementById("merg").appendChild(divs[i]);
fill(days[i]);
fill(days[i]);
 +
}
}
Line 83: Line 85:
var qs=new Querystring();
var qs=new Querystring();
var num=parseInt(qs.get("num", "0"));
var num=parseInt(qs.get("num", "0"));
-
var days=new Array(num);
+
var tgt=new Array(num);
for (var i=0;i<num;i++)
for (var i=0;i<num;i++)
{
{
-
days[i]=qs.get("arg"+i);
+
tgt[i]=qs.get("arg"+i);
}
}
-
if (days.length>0) merge(days);
+
if (tgt.length>0) merge(tgt);

Revision as of 20:43, 25 October 2008

Gallery Bricks Notebook Team Project Home