Template:Team:Bonn:Network
From 2013.igem.org
(Difference between revisions)
Line 46: | Line 46: | ||
mainnode:node, | mainnode:node, | ||
type:"parent", | type:"parent", | ||
- | cheight: | + | cheight:7, |
- | cwidth: | + | cwidth:7, |
cradius:0 | cradius:0 | ||
Line 61: | Line 61: | ||
mainnode:node, | mainnode:node, | ||
type:"child", | type:"child", | ||
- | cheight: | + | cheight:7, |
- | cwidth: | + | cwidth:7, |
cradius:0 | cradius:0 | ||
}); | }); | ||
Line 682: | Line 682: | ||
var height = new Array; | var height = new Array; | ||
var width = new Array; | var width = new Array; | ||
+ | var cheight; | ||
+ | var cwidth; | ||
for(var x=0;x<general.n.length;x++) { | for(var x=0;x<general.n.length;x++) { | ||
var i = general.n[x]; | var i = general.n[x]; | ||
Line 708: | Line 710: | ||
node[i] = document.createElement("DIV"); | node[i] = document.createElement("DIV"); | ||
node[i].style.backgroundColor = "white"; | node[i].style.backgroundColor = "white"; | ||
- | node[i].style.height = | + | node[i].style.height = cheight+"px"; |
- | node[i].style.width = | + | node[i].style.width = cwidth+"px"; |
node[i].style.borderRadius = "0px"; | node[i].style.borderRadius = "0px"; | ||
node[i].style.zIndex = "15"; | node[i].style.zIndex = "15"; | ||
Line 842: | Line 844: | ||
mainnode:i, | mainnode:i, | ||
type:"child", | type:"child", | ||
- | cheight: | + | cheight:7, |
- | cwidth: | + | cwidth:7, |
top:node[i].top+general.cheight/2, | top:node[i].top+general.cheight/2, | ||
left:node[i].left+general.cwidth/2, | left:node[i].left+general.cwidth/2, | ||
Line 869: | Line 871: | ||
end:310, | end:310, | ||
mainnode:i, | mainnode:i, | ||
- | cheight: | + | cheight:7, |
- | cwidth: | + | cwidth:7, |
type:"parent", | type:"parent", | ||
top:node[i].top+general.cheight/2, | top:node[i].top+general.cheight/2, |
Revision as of 06:57, 2 October 2013