Template:Team:Bonn:Network
From 2013.igem.org
(Difference between revisions)
Line 127: | Line 127: | ||
networkTitle.innerHTML = titleLong; | networkTitle.innerHTML = titleLong; | ||
if(parents.length) { | if(parents.length) { | ||
+ | var parentsStart = 260 - parents.length*3/2; | ||
+ | var parentsEnd = 280 + parents.length*3/2; | ||
circle({ | circle({ | ||
n:parents, | n:parents, | ||
height:1100, | height:1100, | ||
width:1000, | width:1000, | ||
- | start: | + | start:parentsStart, |
- | end: | + | end:parentsEnd, |
mainnode:node, | mainnode:node, | ||
type:"parent" | type:"parent" | ||
Line 139: | Line 141: | ||
} | } | ||
if(childs.length) { | if(childs.length) { | ||
+ | var childsStart = 80 - childs.length*3/2; | ||
+ | var childsEnd = 100 + childs.length*3/2; | ||
circle({ | circle({ | ||
n:childs, | n:childs, | ||
height:1100, | height:1100, | ||
width:1000, | width:1000, | ||
- | start: | + | start:childsStart, |
- | end: | + | end:childsEnd, |
mainnode:node, | mainnode:node, | ||
type:"child" | type:"child" |
Revision as of 11:05, 27 October 2013