Template:Team:Paris Saclay/simbox

From 2013.igem.org

(Difference between revisions)
Line 75: Line 75:
  var paramdiv= document.createElement('div');
  var paramdiv= document.createElement('div');
  sb.appendChild(paramdiv);
  sb.appendChild(paramdiv);
-
  //Load list
+
  //legend
 +
var reshtmlparamdiv= '';
  for(var i= 0  ; i < molecules.length ; ++i)
  for(var i= 0  ; i < molecules.length ; ++i)
  {
  {
   if(molecules[i].curve_show)
   if(molecules[i].curve_show)
-
  {
+
   reshtmlparamdiv += '<span style='color:molecules[i].curve_color>'+molecules[i].name+'</span>&nbsp;';
-
   sb.innerHTML += '<span style='color:molecules[i].curve_color>'+molecules[i].name+'</span>&nbsp;';
+
-
  }
+
  }
  }
 +
paramdiv.innerHTML= reshtmlparamdiv;

Revision as of 19:54, 2 August 2013