Template:Team:Bonn:NetworkTop
From 2013.igem.org
(Difference between revisions)
Line 85: | Line 85: | ||
document.getElementById(divnetworkTop).appendChild(summary); | document.getElementById(divnetworkTop).appendChild(summary); | ||
+ | if(document.getElementById("networkLegend")) { | ||
- | var legend = document.createElement("DIV"); | + | } else { |
- | + | var legend = document.createElement("DIV"); | |
- | + | legend.style.height = "260px"; | |
- | + | legend.style.width = "250px"; | |
- | + | legend.style.color = "white"; | |
- | + | legend.style.opacity = "0.8"; | |
- | + | legend.style.zIndex = "1"; | |
- | + | legend.id = "networkLegend"; | |
- | + | legend.style.position = "absolute"; | |
- | + | legend.top = 10+summary.top+summary.style.height; | |
- | + | legend.right = title.right; | |
- | + | legend.style.top = legend.top + "px"; | |
- | + | legend.style.right = legend.right + "px"; | |
- | + | legend.style.overflow = "hidden"; | |
- | + | document.getElementById(divnetworkTop).appendChild(legend); | |
- | + | legend.innerHTML = "<div style='width:250px;font-weight:normal;font-size:100%;' id="legend-project"><div style='height:"+cheight+"px;width:"+cwidth+"px;border-radius:20px;background-color:blue;float:left;'></div>Topics related to our project</div>"; | |
- | + | legend.innerHTML = legend.innerHTML+"<div style='width:250px;font-weight:normal;font-size:100%;'><div style='height:"+cheight+"px;width:"+cwidth+"px;border-radius:20px;background-color:yellow;float:left;'></div>Topics related to background information</div>"; | |
- | + | legend.innerHTML = legend.innerHTML+"<div style='width:250px;font-weight:normal;font-size:100%;'><div style='height:"+cheight+"px;width:"+cwidth+"px;border-radius:20px;background-color:green;float:left;'></div>Topics related to our Human Practice advances</div>"; | |
+ | legend.innerHTML = legend.innerHTML+"<div style='width:250px;font-weight:normal;font-size:100%;'><div style='height:"+cheight+"px;width:"+cwidth+"px;border-radius:20px;background-color:red;float:left;'></div>Topics related to our team</div>"; | ||
+ | } | ||
if(document.getElementById("netNode"+general.mainnode)) { | if(document.getElementById("netNode"+general.mainnode)) { |
Revision as of 22:14, 4 October 2013