Team:TU Delft/Modeling/MFA/Pathways

From 2010.igem.org

(Difference between revisions)
Line 55: Line 55:
</style>
</style>
-
 
-
 
<form id="pathway_form">
<form id="pathway_form">
Line 75: Line 73:
<div id="imgcontainer">
<div id="imgcontainer">
-
<img id="pathwaybackground" src="http://2010.igem.org/wiki/images/7/70/Team_TUDelft_All_fluxes.png">
+
<!-- <img id="pathwaybackground" src="http://2010.igem.org/wiki/images/7/70/Team_TUDelft_All_fluxes.png"> /-->
<img style="display:none" id="pathwayimg" />
<img style="display:none" id="pathwayimg" />
-
 
+
</div>
-
<div style="width: 1px; height: 1px; overflow: hidden">
+
<div style="display: none;">
<img src="http://2010.igem.org/wiki/images/7/70/Team_TUDelft_All_fluxes.png">
<img src="http://2010.igem.org/wiki/images/7/70/Team_TUDelft_All_fluxes.png">
<img src="http://2010.igem.org/wiki/images/1/12/Team_TUDelft_even_growth.png">
<img src="http://2010.igem.org/wiki/images/1/12/Team_TUDelft_even_growth.png">
Line 95: Line 93:
<img src="http://2010.igem.org/wiki/images/d/dd/Team_TUDelft_odd_NOx.png">
<img src="http://2010.igem.org/wiki/images/d/dd/Team_TUDelft_odd_NOx.png">
<img src="http://2010.igem.org/wiki/images/9/91/Team_TUDelft_odd_PHB.png">
<img src="http://2010.igem.org/wiki/images/9/91/Team_TUDelft_odd_PHB.png">
-
</div>
 
-
 
</div>
</div>
Line 106: Line 102:
function updatepathway() {
function updatepathway() {
-
    
+
   if (currentInput == "odd") {
-
   <if currentInput == "even">
+
    currentMid = '9/91';
-
     <if currentOutput == "growth">
+
    if (currentOutput == "growth") {
 +
      currentMid = '5/52';
 +
    }
 +
    if (currentOutput == "H2") {
 +
      currentMid = '8/84';
 +
    }
 +
    if (currentOutput == "isoprene") {
 +
      currentMid = '2/2c';
 +
    }
 +
    if (currentOutput == "NOx") {
 +
      currentMid = 'd/dd';
 +
    }
 +
  }
 +
   if (currentInput == "even") {
 +
    currentMid = 'a/a4';
 +
     if (currentOutput == "growth") {
       currentMid = '1/12';
       currentMid = '1/12';
-
     <elseif currentOutput == "H2">
+
     }
 +
    if (currentOutput == "H2") {
       currentMid = 'e/e0';
       currentMid = 'e/e0';
-
     <elseif currentOutput == "isoprene">
+
     }
 +
    if (currentOutput == "isoprene") {
       currentMid = 'f/f5';
       currentMid = 'f/f5';
-
     <elseif currentOutput == "NOx">
+
     }
 +
    if (currentOutput == "NOx") {
       currentMid = '5/5d';
       currentMid = '5/5d';
-
     <else>
+
     }
-
      currentMid = 'a/a4';
+
  }
-
    </if>
+
   if (currentInput == "gluc") {
-
   <elseif currentInput == "gluc">
+
    currentMid = '2/2b';
-
     <if currentOutput == "growth">
+
     if (currentOutput == "growth") {
       currentMid = '1/1f';
       currentMid = '1/1f';
-
     <elseif currentOutput == "H2">
+
     }
 +
    if (currentOutput == "H2") {
       currentMid = 'c/c0';
       currentMid = 'c/c0';
-
     <elseif currentOutput == "isoprene">
+
     }
 +
    if (currentOutput == "isoprene") {
       currentMid = '6/62';
       currentMid = '6/62';
-
     <elseif currentOutput == "NOx">
+
     }
 +
    if (currentOutput == "NOx") {
       currentMid = '9/9e';
       currentMid = '9/9e';
-
     <else>
+
     }
-
      currentMid = '2/2b';
+
   }
-
    </if>
+
-
  <else>
+
-
    <if currentOutput == "growth">
+
-
      currentMid = '5/52';
+
-
    <elseif currentOutput == "H2">
+
-
      currentMid = '8/84';
+
-
    <elseif currentOutput == "isoprene">
+
-
      currentMid = '2/2c';
+
-
    <elseif currentOutput == "NOx">
+
-
      currentMid = 'd/dd';
+
-
    <else>
+
-
      currentMid = '9/91';
+
-
    </if>
+
-
   </if>
+
   var url = "http://2010.igem.org/wiki/images/" + currentMid + "/Team_TUDelft_" + currentInput + "_" + currentOutput + ".png";
   var url = "http://2010.igem.org/wiki/images/" + currentMid + "/Team_TUDelft_" + currentInput + "_" + currentOutput + ".png";

Revision as of 13:25, 25 October 2010