Team:TU Delft/Modeling/MFA/Pathways

From 2010.igem.org

(Difference between revisions)
Line 103: Line 103:
var currentInput = 'even';
var currentInput = 'even';
var currentOutput = 'growth';
var currentOutput = 'growth';
 +
var currentMid = '1/12';
function updatepathway() {
function updatepathway() {
-
   var url = "https://2010.igem.org/Image:Team_TUDelft_" + currentInput + "_" + currentOutput + ".png";
+
 
 +
  <if currentInput == "even">
 +
    <if currentOutput == "growth">
 +
      currentMid = '1/12';
 +
    <elseif currentOutput == "H2">
 +
      currentMid = 'e/e0';
 +
    <elseif currentOutput == "isoprene">
 +
      currentMid = 'f/f5';
 +
    <elseif currentOutput == "NOx">
 +
      currentMid = '5/5d';
 +
    <else>
 +
      currentMid = 'a/a4';
 +
    </if>
 +
  <elseif currentInput == "gluc">
 +
    <if currentOutput == "growth">
 +
      currentMid = '1/1f';
 +
    <elseif currentOutput == "H2">
 +
      currentMid = 'c/c0';
 +
    <elseif currentOutput == "isoprene">
 +
      currentMid = '6/62';
 +
    <elseif currentOutput == "NOx">
 +
      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 = "https://static.igem.org/mediawiki/2010/thumb/" + currentMid + "/Team_TUDelft_" + currentInput + "_" + currentOutput + ".png/520px-Team_TUDelft_" + currentInput + "_" + currentOutput + ".png";
   $("#pathwayimg").attr ('src', url).show();
   $("#pathwayimg").attr ('src', url).show();
}
}

Revision as of 11:11, 23 October 2010