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. | + | canv.width= sb.data-width; |
- | canv.height= sb. | + | canv.height= sb.data-height; |
alert(canv.width); | alert(canv.width); | ||
Line 28: | Line 28: | ||
</script> | </script> | ||
- | <div class="simbox" | + | <div class="simbox" data-width="</html>{{{width}}}<html>" data-height="</html>{{{height}}}<html>" data-load="</html>{{{load}}}<html>"></div> |
</html> | </html> |
Revision as of 18:15, 2 August 2013