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< | + | |
+ | 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 | + | var tgt=new Array(num); |
for (var i=0;i<num;i++) | for (var i=0;i<num;i++) | ||
{ | { | ||
- | + | tgt[i]=qs.get("arg"+i); | |
} | } | ||
- | if ( | + | if (tgt.length>0) merge(tgt); |
Revision as of 20:43, 25 October 2008
|