Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 2: Line 2:
<html>
<html>
-
<div id="title"></div>
+
<h1 id="title"></h1>
<div id="merg"></div>
<div id="merg"></div>
Line 40: Line 40:
{
{
document.getElementById("title").innerHTML=title;
document.getElementById("title").innerHTML=title;
-
var divs=new Array(days.length);
+
 
-
var hs=new Array(days.length);
+
for (var i=0;i<days.length;i++)
for (var i=0;i<days.length;i++)
{
{
-
divs[i]=document.createElement("div");
+
var div=document.createElement("div");
-
hs[i]=document.createElement("h1");
+
var h=document.createElement("h3");
-
hs[i].innerHTML=days[i];
+
h.innerHTML=days[i];
-
divs[i].setAttribute("id",days[i]);
+
div.setAttribute("id",days[i]);
-
document.getElementById("merg").appendChild(hs[i]);
+
document.getElementById("merg").appendChild(h);
-
document.getElementById("merg").appendChild(divs[i]);
+
document.getElementById("merg").appendChild(div);
fill(days[i]);
fill(days[i]);

Revision as of 20:58, 25 October 2008

Gallery Bricks Notebook Team Project Home