Template:Team:Paris Saclay/simbox
From 2013.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
for(var i=0 ; i < simboxes.length ; ++i) | for(var i=0 ; i < simboxes.length ; ++i) | ||
- | + | init_simbox(simboxes[i], i); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | function init_simbox(sb, id | + | function init_simbox(sb, id) |
{ | { | ||
+ | var xmlfile= "https://2013.igem.org/Team:Paris_Saclay/"+sb.getAttribute('data-load')+"?action=raw&ctype=text/css"; | ||
+ | |||
var canv= document.createElement('canvas'); | var canv= document.createElement('canvas'); | ||
+ | |||
canv.id= "simbox_canv"+id; | canv.id= "simbox_canv"+id; | ||
canv.width= sb.getAttribute('data-width'); | canv.width= sb.getAttribute('data-width'); | ||
canv.height= sb.getAttribute('data-height'); | canv.height= sb.getAttribute('data-height'); | ||
- | |||
sb.appendChild(canvas); | sb.appendChild(canvas); |
Revision as of 18:19, 2 August 2013