Team:UT-Tokyo/Project/Results

From 2011.igem.org

(Difference between revisions)
m
m
Line 35: Line 35:
<div id="top-panel">
<div id="top-panel">
====TBD====
====TBD====
 +
</div>
 +
<html>
 +
<div id="sub-panel"><a id="toggle"><span id="shText">Hide assay 1</span></a></div>
 +
</html>
 +
</style>
-
</div>
+
<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>
<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 2</span></a></div>
</html>
</html>
 +
{{:Team:UT-Tokyo/Templates/EndContent}}
{{:Team:UT-Tokyo/Templates/EndContent}}

Revision as of 11:48, 24 September 2011

Assay 1

TBD

</style>

<script type="text/javascript"> $(function(){

  $("#sub-panel").click(function(){
     $("#top-panel").slideToggle();
     var el = $("#shText");  
     var state = $("#shText").html();
     state = (state == 'Hide' ? 'Show assay2' : 'Hide assay 2');               
     el.replaceWith(state); 
  });

}); </script>


</html>

Assay 2

TBD