Team:TU Delft/Modeling/MFA/Pathways
From 2010.igem.org
(Difference between revisions)
Line 63: | Line 63: | ||
<img id="pathwaybackground" src="http://dl.dropbox.com/u/602630/omixresults/all%20fluxes.png"> | <img id="pathwaybackground" src="http://dl.dropbox.com/u/602630/omixresults/all%20fluxes.png"> | ||
+ | <img style="display:none" id="pathwayimg" /> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | |||
+ | var currentInput = 'even'; | ||
+ | var currentOutput = 'growth'; | ||
+ | |||
+ | function updatepathway() { | ||
+ | var url = "http://dl.dropbox.com/u/602630/omixresults/" + currentInput + "_" + currentOutput + ".png"; | ||
+ | |||
+ | $("#pathwayimg").attr ('src', url); | ||
+ | } | ||
$(function() { | $(function() { | ||
$("input[name='pwinput']").click(function() { | $("input[name='pwinput']").click(function() { | ||
- | + | currentInput = $(this).val(); | |
+ | updatepathway(); | ||
}); | }); | ||
$("input[name='pwout']").click(function() { | $("input[name='pwout']").click(function() { | ||
- | + | currentOutput = $(this).val(); | |
+ | updatepathway(); | ||
}); | }); | ||
+ | |||
+ | updatepathway(); | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 13:54, 29 September 2010