Template:Team:Paris Saclay/simbox

From 2013.igem.org

(Difference between revisions)
Line 22: Line 22:
function init_simbox(sb, id)
function init_simbox(sb, id)
{
{
-
alert('l');
 
  //Get parameters
  //Get parameters
  var xmlfile= 'https://2013.igem.org/Team:Paris_Saclay/'+sb.getAttribute('data-load')+'?action=raw&ctype=text/css';
  var xmlfile= 'https://2013.igem.org/Team:Paris_Saclay/'+sb.getAttribute('data-load')+'?action=raw&ctype=text/css';
Line 82: Line 81:
  sb.appendChild(canv);
  sb.appendChild(canv);
   
   
-
//Init param box
 
-
var paramdiv= document.createElement('div');
 
-
sb.appendChild(paramdiv);
 
-
//legend
 
-
var reshtmlparamdiv= '';
 
-
for(var i= 0  ; i < molecules.length ; ++i)
 
-
{
 
-
  if(molecules[i].curve_show)
 
-
  reshtmlparamdiv += '<span style='color:molecules[i].curve_color>'+molecules[i].name+'</span>&nbsp;';
 
-
}
 
-
paramdiv.innerHTML= reshtmlparamdiv;
 
-
 
  return true;
  return true;

Revision as of 19:58, 2 August 2013