Team:Peking/drawingcurvetest
From 2013.igem.org
(Difference between revisions)
XingjiePan (Talk | contribs) |
XingjiePan (Talk | contribs) |
||
Line 46: | Line 46: | ||
{ | { | ||
document.getElementById("KphiPlus").src="https://static.igem.org/mediawiki/igem.org/2/2f/Peking2013_DearProf_ArrowUpActivated.png"; | document.getElementById("KphiPlus").src="https://static.igem.org/mediawiki/igem.org/2/2f/Peking2013_DearProf_ArrowUpActivated.png"; | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
document.getElementById("KphiPlus").onmouseup=function() //Kphi plus button up | document.getElementById("KphiPlus").onmouseup=function() //Kphi plus button up | ||
Line 61: | Line 55: | ||
- | document.getElementById("KphiPlus").onclick=function() | + | document.getElementById("KphiPlus").onclick=function() //increase Kphi |
{ | { | ||
- | + | if(Kphi<1000) | |
+ | { | ||
+ | Kphi=Kphi*2; | ||
+ | ctx.clearRect(0,0,c.width,c.height); | ||
+ | DrawCurve(ctx,convasheight,CorXmin,CorXmax,300,0.01,1000,Kphi,ncI); | ||
+ | document.getElementById("KphiShow").innerHTML="K<sub><code>φ</code>R73</sub>="+Kphi.toFixed(1); | ||
+ | } | ||
}; | }; |
Revision as of 12:24, 24 September 2013