Team:UT-Tokyo/Project/Results

From 2011.igem.org

(Difference between revisions)
m
m
Line 24: Line 24:
<html>
<html>
<div id="sub-panel"><a id="toggle"><span id="shText">Hide assay 1</span></a></div>
<div id="sub-panel"><a id="toggle"><span id="shText">Hide assay 1</span></a></div>
-
</html>
 
-
 
-
<html>
 
-
<script type="text/javascript">
 
-
$(function(){
 
-
  $("#sub-panel").click(function(){
 
-
      $("#top-panel").slideToggle();
 
-
      var el = $("#shText"); 
 
-
      var state = $("#shText").html();
 
-
      state = (state == 'Hide' ? '<span id="shText">Show assay2</span>' : '<span id="shText">Hide assay 2</span>');             
 
-
      el.replaceWith(state);
 
-
  });
 
-
});
 
-
</script>
 
-
 
-
 
-
</html>
 
-
 
-
==Assay 2==
 
-
 
-
<div id="top-panel">
 
-
====TBD====
 
-
</div>
 
-
<html>
 
-
<div id="sub-panel"><a id="toggle"><span id="shText">Hide assay 2</span></a></div>
 
</html>
</html>
{{:Team:UT-Tokyo/Templates/EndContent}}
{{:Team:UT-Tokyo/Templates/EndContent}}

Revision as of 11:51, 24 September 2011