Team:Warsaw/JSTest2

From 2008.igem.org

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

Revision as of 15:51, 27 October 2008

Gallery Bricks Notebook Team Project Home

Browse by topics

Start dateEnd date