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