Template:Team:Paris Saclay/simbox

From 2013.igem.org

(Difference between revisions)
Line 72: Line 72:
  alert(molecules[i].curve_show);
  alert(molecules[i].curve_show);
  }
  }
 +
 +
//Create canvas
 +
var canv= document.createElement('canvas');
 +
var ctx= canv.getContext("2d");
 +
canv.id= "simbox_canv"+id;
 +
canv.width= width;
 +
canv.height= height;
 +
sb.appendChild(canv);
   
   
  //Init param box
  //Init param box
Line 85: Line 93:
  paramdiv.innerHTML= reshtmlparamdiv;
  paramdiv.innerHTML= reshtmlparamdiv;
-
 
-
//Create canvas
 
-
var canv= document.createElement('canvas');
 
-
var ctx= canv.getContext("2d");
 
-
canv.id= "simbox_canv"+id;
 
-
canv.width= width;
 
-
canv.height= height;
 
-
sb.appendChild(canv);
 
  return true;
  return true;

Revision as of 19:56, 2 August 2013