Team:Warsaw/JSTest2

From 2008.igem.org

(Difference between revisions)
Line 108: Line 108:
eday=eday.replace("y","yday");
eday=eday.replace("y","yday");
-
var topics=new Array();
 
 +
var topics=new Array();
function find_topics(day,end_day)
function find_topics(day,end_day)
{
{
Line 141: Line 141:
                 if (day==end_day) {   
                 if (day==end_day) {   
                 document.getElementById("progress").innerHTML="Done";
                 document.getElementById("progress").innerHTML="Done";
-
                 for (i in topics) document.getElementById("result").innerHTML=document.getElementById("result").innerHTML+"<br>"+i+" : "+topics[i];
+
                 create_links(topics);
                 return true;
                 return true;
                 }
                 }
Line 211: Line 211:
}
}
 +
function create_links(topics)
 +
{
 +
for (i in topics)
 +
{
 +
var days=topics[i].split(';');
 +
var ans=codebase;
 +
for (var j=0;j<days.length;j++) if(days[j]!="") ans+="arg"+j+"="+days[j]+String.fromCharCode(38);
 +
ans+="name="+escape(removeHTMLTags(i));
 +
document.getElementById("result").innerHTML+='<a href="'+ans+'">'+i+"</a><br>";
 +
}
 +
}
function and(cond1,cond2)
function and(cond1,cond2)

Revision as of 09:43, 26 October 2008

Gallery Bricks Notebook Team Project Home

Browse by topics

Start dateEnd date
Jump