Team:ETH Zurich/project/overview

From 2014.igem.org

(Difference between revisions)
Line 24: Line 24:
       })
       })
       var article = $("article."+ID+".complex").html();
       var article = $("article."+ID+".complex").html();
-
       $("article."+ID+".complex").replaceWith(function(i, text){
+
       $("article."+ID+".complex").replaceWith($(this).text() == "Complexify" ? $("article."+ID+".complex").html : $("article."+ID+".simple").html;
-
      return text === "Complexify" ? $("article."+ID+".complex").html : $("article."+ID+".simple").html;
+
       })
       })
     });
     });

Revision as of 15:19, 3 September 2014

iGEM ETH Zurich 2014