Template:Team:Paris Saclay/simbox
From 2013.igem.org
(Difference between revisions)
Line 14: | Line 14: | ||
var width= sb.getAttribute('data-width'); | var width= sb.getAttribute('data-width'); | ||
var height= sb.getAttribute('data-height'); | var height= sb.getAttribute('data-height'); | ||
+ | |||
+ | sb.style.width=width+"px"; | ||
+ | sb.style.height=height+"px"; | ||
var canv= document.createElement('canvas'); | var canv= document.createElement('canvas'); | ||
Line 22: | Line 25: | ||
sb.appendChild(canv); | sb.appendChild(canv); | ||
- | + | var paramdiv= document.createElement('div'); | |
+ | sb.appendchild(paramdiv); | ||
+ | paramdiv.innerHTML='lol'; | ||
} | } | ||
Revision as of 18:27, 2 August 2013