Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 2: Line 2:
<html>
<html>
-
<div id="progress"></div>
+
<div id="title"></div>
<div id="merg"></div>
<div id="merg"></div>
Line 39: Line 39:
function merge(days)
function merge(days)
{
{
 +
document.getElementById("title").innerHTML=title;
var divs=new Array(days.length);
var divs=new Array(days.length);
var hs=new Array(days.length);
var hs=new Array(days.length);
Line 53: Line 54:
}
}
-
 
}
}
Line 69: Line 69:
             if (req.status == 200) {
             if (req.status == 200) {
                 ans=req.responseText;
                 ans=req.responseText;
-
                 document.getElementById(day).innerHTML=ans.substr(ans.search("<start>"),ans.search("<end>")-ans.search("<start>"));
+
                 ans=ans.substr(ans.search("<start>"),ans.search("<end>")-ans.search("<start>"));
 +
                document.getElementById(day).innerHTML=ans;
             }
             }
}  
}  
Line 84: Line 85:
var qs=new Querystring();
var qs=new Querystring();
var num=parseInt(qs.get("num", "0"));
var num=parseInt(qs.get("num", "0"));
 +
var title=qs.get("title");
var tgt=new Array(num);
var tgt=new Array(num);
for (var i=0;i<num;i++)
for (var i=0;i<num;i++)

Revision as of 20:55, 25 October 2008

Gallery Bricks Notebook Team Project Home