Team:Warsaw/JSTest2

From 2008.igem.org

(Difference between revisions)
 
(9 intermediate revisions not shown)
Line 226: Line 226:
for (i in topics)
for (i in topics)
{
{
-
var days=topics[i].split(';');
+
 
-
var ans="";
+
var d=topics[i]; // another dirty IE hack
-
var num=0;
+
//alert (typeof(d));
-
for (var j=0;j<days.length;j++)  
+
if (typeof(d)=="string")
-
{
+
  {
-
if(days[j]!="") ans+="arg"+j+"="+days[j]+String.fromCharCode(38);
+
  //if (d.match(/from\ 2008.igem.org/i)==null) continue;
-
else num=j;
+
  var days=d.split(';');  
-
}
+
  var ans="";
-
ans=codebase+"num="+num+String.fromCharCode(38)+ans+"name="+escape(removeHTMLTags(i));
+
  var num=0;
-
document.getElementById("result").innerHTML+='<a href="'+ans+'">'+i+"</a><br>\n";
+
  for (var j=0;j<days.length;j++)  
-
}
+
  {
 +
  if(days[j]!="") ans+="arg"+j+"="+days[j]+String.fromCharCode(38);
 +
  else num=j;
 +
  }
 +
  ans=codebase+"num="+num+String.fromCharCode(38)+ans+"name="+escape(removeHTMLTags(i));
 +
  document.getElementById("result").innerHTML+='<a href="'+ans+'">'+i+"</a><br>\n";
 +
  }
 +
}
}
}

Latest revision as of 15:57, 27 October 2008

Gallery Bricks Notebook Team Project Home

Browse by topics

Start dateEnd date