Team:Warsaw/JSTest2

From 2008.igem.org

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