Template:Team:Paris Saclay/simbox
From 2013.igem.org
(Difference between revisions)
Line 90: | Line 90: | ||
reshtmlparamdiv += '<span style="font-weight:bold;padding:0.1em 0.3em;color:#FFFFFF;background-color:'+molecules[i].curve_color+';">'+molecules[i].name+'</span> '; | reshtmlparamdiv += '<span style="font-weight:bold;padding:0.1em 0.3em;color:#FFFFFF;background-color:'+molecules[i].curve_color+';">'+molecules[i].name+'</span> '; | ||
} | } | ||
+ | //quantity controls | ||
for(var i= 0 ; i < molecules.length ; ++i) | for(var i= 0 ; i < molecules.length ; ++i) | ||
{ | { | ||
Line 95: | Line 96: | ||
{ | { | ||
reshtmlparamdiv += '<br /><br />'; | reshtmlparamdiv += '<br /><br />'; | ||
- | reshtmlparamdiv += molecules[i].name + ' = <input type="number" min="0" value="'+molecules[i].quantity+' | + | reshtmlparamdiv += molecules[i].name + ' = <input id="simbox_ctl'+i+'" type="number" min="0" value="'+molecules[i].quantity+'"/>'; |
} | } | ||
} | } |
Revision as of 20:13, 2 August 2013