Template:Team:Bonn:NetworkBottom

From 2013.igem.org

(Difference between revisions)
 
(8 intermediate revisions not shown)
Line 144: Line 144:
     nodeTitle[i].style.width = "120px";
     nodeTitle[i].style.width = "120px";
     nodeTitle[i].style.zIndex = "1";
     nodeTitle[i].style.zIndex = "1";
 +
    nodeTitle[i].style.lineHeight = "15px";
     nodeTitle[i].id = "nodeTitle"+i;
     nodeTitle[i].id = "nodeTitle"+i;
     nodeTitle[i].style.textWeight = "bold";
     nodeTitle[i].style.textWeight = "bold";
Line 175: Line 176:
     var nodeSummary = new Array;
     var nodeSummary = new Array;
     nodeSummary[i] = document.createElement("DIV");
     nodeSummary[i] = document.createElement("DIV");
-
     nodeSummary[i].style.width = "150px";
+
     nodeSummary[i].style.width = "140px";
     nodeSummary[i].style.zIndex = "99";
     nodeSummary[i].style.zIndex = "99";
     nodeSummary[i].id = "nodeSummary"+i;
     nodeSummary[i].id = "nodeSummary"+i;
Line 186: Line 187:
     nodeSummary[i].top = nodeTitle[i].top+parseInt(nodeTitle[i].style.height)+10;
     nodeSummary[i].top = nodeTitle[i].top+parseInt(nodeTitle[i].style.height)+10;
     nodeSummary[i].style.top = nodeSummary[i].top +"px";
     nodeSummary[i].style.top = nodeSummary[i].top +"px";
-
     nodeSummary[i].left = 10;
+
     if(general.type == "child") {
-
     nodeSummary[i].style.left = nodeSummary[i].left+"px";
+
      nodeSummary[i].right = 0;
 +
      nodeSummary[i].style.right = nodeSummary[i].right+"px";
 +
     } else {
 +
        nodeSummary[i].left = 0;
 +
        nodeSummary[i].style.left = nodeSummary[i].left+"px";
 +
      }
     nodeSummary[i].style.color = "white";
     nodeSummary[i].style.color = "white";
     if(general.parent) {
     if(general.parent) {

Latest revision as of 12:17, 27 October 2013