Template:Team:Paris Saclay/simbox
From 2013.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
var canv= document.createElement('canvas'); | var canv= document.createElement('canvas'); | ||
canv.id= "simbox_canv"+id; | canv.id= "simbox_canv"+id; | ||
- | canv.width= sb.data-width; | + | canv.width= sb.getAttribute('data-width'); |
- | canv.height= sb.data-height; | + | canv.height= sb.getAttribute('data-height'); |
alert(canv.width); | alert(canv.width); | ||
Revision as of 18:16, 2 August 2013