Template:Team:Bonn:Network
From 2013.igem.org
(Difference between revisions)
Line 486: | Line 486: | ||
this.style.backgroundColor = "black"; | this.style.backgroundColor = "black"; | ||
$(".node-"+this.mainnode+"-"+this.type+"-"+this.i).css({"width":"1px","height":"1px"}); | $(".node-"+this.mainnode+"-"+this.type+"-"+this.i).css({"width":"1px","height":"1px"}); | ||
- | if(general.mainnode != "0" | + | if(general.mainnode != "0") { |
- | + | if( general.parentID) { | |
+ | $(".node-"+general.parentID+"-parent-"+general.mainnode).css({"width":"1px","height":"1px"}); | ||
+ | } | ||
} | } | ||
Line 690: | Line 692: | ||
this.style.backgroundColor = "blue"; | this.style.backgroundColor = "blue"; | ||
$(".netNode-"+this.mainnode+"-"+this.i).css({"width":"3px","height":"3px"}); | $(".netNode-"+this.mainnode+"-"+this.i).css({"width":"3px","height":"3px"}); | ||
- | if(general.mainnode | + | if(general.mainnode) { |
- | + | if(general.parentID) { | |
+ | $(".netNode-"+general.parentID+"-"+general.mainnode).css({"width":"3px","height":"3px"}); | ||
+ | } | ||
} | } | ||
}; | }; | ||
Line 706: | Line 710: | ||
this.style.backgroundColor = "black"; | this.style.backgroundColor = "black"; | ||
$(".netNode-"+this.mainnode+"-"+this.i).css({"width":"1px","height":"1px"}); | $(".netNode-"+this.mainnode+"-"+this.i).css({"width":"1px","height":"1px"}); | ||
- | if(general.mainnode != "0" | + | if(general.mainnode != "0") { |
+ | if(general.parentID) { | ||
$(".netNode-"+general.parentID+"-"+general.mainnode).css({"width":"1px","height":"1px"}); | $(".netNode-"+general.parentID+"-"+general.mainnode).css({"width":"1px","height":"1px"}); | ||
+ | } | ||
} | } | ||
}; | }; |
Revision as of 08:54, 1 October 2013