Template:Team:Bonn:Network
From 2013.igem.org
(Difference between revisions)
Line 692: | Line 692: | ||
if(content.childs.length ==0) { | if(content.childs.length ==0) { | ||
height = general.height/2; | height = general.height/2; | ||
- | width = general.width/ | + | width = general.width/4; |
} else { | } else { | ||
- | height = general.height; | + | if(content.childs.length < 5) { |
- | width = general.width; | + | height = general.height/4 *content.childs.length; |
+ | width = general.width/4 * content.childs.length; | ||
+ | } else { | ||
+ | height = general.height; | ||
+ | width = general.width; | ||
+ | } | ||
} | } | ||
node[i] = document.createElement("DIV"); | node[i] = document.createElement("DIV"); |
Revision as of 06:49, 2 October 2013