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 {
-
  legend.style.height = "260px";
+
      var legend = document.createElement("DIV");
-
  legend.style.width = "250px";
+
      legend.style.height = "260px";
-
  legend.style.color = "white";
+
      legend.style.width = "250px";
-
  legend.style.opacity = "0.8";
+
      legend.style.color = "white";
-
  legend.style.zIndex = "1";
+
      legend.style.opacity = "0.8";
-
  legend.id = divNetworkSummary;
+
      legend.style.zIndex = "1";
-
  legend.style.position = "absolute";
+
      legend.id = "networkLegend";
-
  legend.top = 10+summary.top+summary.style.height;
+
      legend.style.position = "absolute";
-
  legend.right = title.right;
+
      legend.top = 10+summary.top+summary.style.height;
-
  legend.style.top = legend.top + "px";
+
      legend.right = title.right;
-
  legend.style.right = legend.right + "px";
+
      legend.style.top = legend.top + "px";
-
  legend.style.overflow = "hidden";
+
      legend.style.right = legend.right + "px";
-
  document.getElementById(divnetworkTop).appendChild(legend);
+
      legend.style.overflow = "hidden";
-
  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:blue;float:left;'></div>Topics related to our project</div>";
+
      document.getElementById(divnetworkTop).appendChild(legend);
-
  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 = "<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: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: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:red;float:left;'></div>Topics related to our team</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